master
Will Faught 5 months ago
parent a587282ee0
commit 33c53e0330

@ -1,6 +1,7 @@
{{- $href := cond (.Destination | not | not) (printf ` href="%s"` .Destination) "" -}} {{- $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) -}}
{{- $targetattr := cond ($targetvalue | not | not) (printf ` target="%s"` $targetvalue) "" -}}
{{- $title := cond (.Title | not | not) (printf ` title="%s"` .Title) "" -}} {{- $title := cond (.Title | not | not) (printf ` title="%s"` .Title) "" -}}
{{- $targetattr := cond ($targetvalue | not | not) (printf ` target="%s"` $targetvalue) "" -}}
{{- printf `<a%s%s%s>%s</a>` $href $targetattr $title .Text | safeHTML -}} {{- printf `<a%s%s%s>%s</a>` $href $targetattr $title .Text | safeHTML -}}

@ -13,6 +13,7 @@
{{ partial "paige/tag-html.html" $page }} {{ partial "paige/tag-html.html" $page }}
{{ partial "paige/tag-head.html" $page }} {{ partial "paige/tag-head.html" $page }}
{{ partial "paige/tag-body.html" $page }} {{ partial "paige/tag-body.html" $page }}
{{ if templates.Exists "partials/paige/body-first.html" }} {{ if templates.Exists "partials/paige/body-first.html" }}
{{ partial "paige/body-first.html" $page }} {{ partial "paige/body-first.html" $page }}
{{ end }} {{ end }}

@ -109,6 +109,7 @@
{{ if and $content $paramlink }} {{ if and $content $paramlink }}
{{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }} {{ $link := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape .Title) $link | safeHTML }} {{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape .Title) $link | safeHTML }}
{{ $content = print $content $footer }} {{ $content = print $content $footer }}

@ -112,6 +112,7 @@
{{ if and $description $paramlink }} {{ if and $description $paramlink }}
{{ $pagelink := or (.Param "paige.feed.page_link" | markdownify) "⏎" }} {{ $pagelink := or (.Param "paige.feed.page_link" | markdownify) "⏎" }}
{{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape $title) $pagelink | safeHTML }} {{ $footer := printf `<p><a href="%s" title="%s">%s</a></p>` .Permalink (htmlEscape $title) $pagelink | safeHTML }}
{{ $description = print $description $footer }} {{ $description = print $description $footer }}

@ -33,8 +33,9 @@
{{ end }} {{ end }}
{{ $color := $page.Param "paige.color" | default "#0d6efd" }} {{ $color := $page.Param "paige.color" | default "#0d6efd" }}
{{ $colorscheme := $page.Param "paige.color_scheme" | default "auto" }} {{ $colorScheme := $page.Param "paige.color_scheme" | default "auto" }}
{{ $context := dict "color" $color "color_scheme" $colorscheme }}
{{ $context := dict "color" $color "color_scheme" $colorScheme }}
{{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap/paige.scss" "page" $page "sass" true "template" true "context" $context) }} {{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap/paige.scss" "page" $page "sass" true "template" true "context" $context) }}
{{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap-icons/bootstrap-icons.css" "page" $page) }} {{ partial "paige/tag-link.html" (dict "href" "css/paige/bootstrap-icons/bootstrap-icons.css" "page" $page) }}

Loading…
Cancel
Save