use docopt struct instead of map since we already have a struct

This commit is contained in:
Egor Kovetskiy
2021-04-05 07:56:25 +03:00
parent e72577327c
commit 5fd862c450
4 changed files with 79 additions and 65 deletions

View File

@@ -123,14 +123,17 @@ func ExtractMacros(
var (
expr = regexputil.Subexp(reMacroDirective, groups, "expr")
template = regexputil.Subexp(reMacroDirective, groups, "template")
config = regexputil.Subexp(reMacroDirective, groups, "config")
template = regexputil.Subexp(
reMacroDirective,
groups,
"template",
)
config = regexputil.Subexp(reMacroDirective, groups, "config")
macro Macro
)
macro.Template, err = includes.LoadTemplate(template, templates)
if err != nil {
err = karma.Format(err, "unable to load template")

View File

@@ -25,7 +25,7 @@ func ResolvePage(
if meta.Type == "blogpost" {
log.Infof(
nil,
"Blog post will be stored as: %s",
"blog post will be stored as: %s",
meta.Title,
)