diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 159b055a..572133fc 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,7 +1,7 @@ {{- $href := cond (.Destination | not | not) (printf ` href="%s"` .Destination) "" -}} -{{- $targetvalue := partial "paige/func-target.html" (dict "page" .Page "url" .Destination) -}} +{{- $targetValue := partial "paige/func-target.html" (dict "page" .Page "url" .Destination) -}} {{- $title := cond (.Title | not | not) (printf ` title="%s"` .Title) "" -}} -{{- $targetattr := cond ($targetvalue | not | not) (printf ` target="%s"` $targetvalue) "" -}} +{{- $targetAttr := cond ($targetValue | not | not) (printf ` target="%s"` $targetValue) "" -}} -{{- printf `%s` $href $targetattr $title .Text | safeHTML -}} +{{- printf `%s` $href $targetAttr $title .Text | safeHTML -}} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0b0f36bd..47eb5819 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,13 +1,13 @@ {{ $page := . }} -{{ $itemattrs := slice }} +{{ $itemAttrs := slice }} {{ $microdata := $page.Params.paige.page.microdata }} {{ range $k, $v := $microdata }} - {{ $itemattrs = $itemattrs | append (printf `%s="%v"` $k $v) }} + {{ $itemAttrs = $itemAttrs | append (printf `%s="%v"` $k $v) }} {{ end }} -{{ $itemattrs = delimit (sort $itemattrs) " " }} +{{ $itemAttrs = delimit (sort $itemAttrs) " " }} {{ partial "paige/tag-html.html" $page }} @@ -20,7 +20,7 @@
- +
{{ end }} - {{ with $readingtime }} + {{ with $time }}{{ . }} {{ i18n "paige_minutes" . }}
{{ end }}{{ . }}
{{ end }} - {{ if or $authors $date $keywords $readingtime $series }} + {{ if or $authors $date $keywords $time $series }}+
{{ range $i, $term := . -}} {{- $kind := false -}} @@ -47,7 +47,7 @@ {{- $kind = "tag" -}} {{- end -}} - {{- if $textkeywords -}} + {{- if $normal -}} {{- if gt $i 0 }} · {{ end -}} {{ .Title }} @@ -82,11 +82,11 @@ {{ with $date }}
- +
{{ end }} - {{ with $readingtime }} + {{ with $time }}{{ . }} {{ i18n "paige_minutes" . }}
{{ end }}