diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 41e7a9f..4a2431b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,7 +5,12 @@ {{ .Title }} - {{ with .Site.Params.description }}{{ end }} + {{ .Scratch.Set "desc" slice }} + {{ with .Site.Params.description }}{{ $.Scratch.Add "desc" (slice .) }}{{ end }} + {{ with .Site.Params.topics }}{{ $.Scratch.Add "desc" (slice (delimit . " & ")) }}{{ end }} + {{ if gt (len (.Scratch.Get "desc")) 0 }} + + {{ end }} {{ with .Site.Params.author }}{{ end }} {{ $style := resources.Get "style/main.sass" | resources.ToCSS }}