commit f84be8e41b63c3243ddbcdacafaf319800a9774d parent 732534b3678869b350d533ceb42c286ae82e7545 Author: Luke Smith <Luke Smith> Date: Thu, 23 Jun 2022 07:59:22 -0400 img and icon options Diffstat:
| M | layouts/_default/single.html | | | 4 | ++-- |
| M | layouts/partials/footer.html | | | 2 | +- |
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -1,8 +1,8 @@ {{ partial "header.html" . }} -<header><h1>{{ .Title }}</h1></header> +<header><h1>{{ with .Params.icon }}<img src="/pix/{{ . }}" class=titleimg>{{ end }}{{ .Title }}</h1></header> -<article> +<article>{{ with .Params.img }}<img src="/pix/{{ . }}" class=titleimg>{{ end }} {{ .Content }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html @@ -2,7 +2,7 @@ {{ $tagsLen := len .Params.tags }} {{ if gt $tagsLen 0 }} <div class=taglist> - See related:</br> + See related:<br> {{ range $k, $v := .Params.tags }} {{ $url := printf "tags/%s" (. | urlize | lower) }} <a href="{{ $url | absURL }}">{{ . | title }}</a>