img and icon options

This commit is contained in:
Luke Smith 2022-06-23 07:59:22 -04:00
parent 732534b367
commit f84be8e41b
2 changed files with 3 additions and 3 deletions

View File

@ -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 }}

View File

@ -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>