|
|
@ -97,7 +97,7 @@
|
|
|
|
<item>
|
|
|
|
<item>
|
|
|
|
{{ $author := "" }}
|
|
|
|
{{ $author := "" }}
|
|
|
|
{{ $authors := partial "paige/func-authors.html" . }}
|
|
|
|
{{ $authors := partial "paige/func-authors.html" . }}
|
|
|
|
{{ $description := partial "paige/func-content.html" $subpage }}
|
|
|
|
{{ $content := partial "paige/func-content.html" $subpage }}
|
|
|
|
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
|
|
|
|
{{ $external := and .Params.link (not (.Param "paige.feeds.disable_link")) | not | not }}
|
|
|
|
{{ $guid := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") (cond (.Params.id | not) .RelPermalink .Params.id) }}
|
|
|
|
{{ $guid := printf "tag:%s,%s:%s" (urls.Parse site.BaseURL).Host (.PublishDate.Format "2006-01-02") (cond (.Params.id | not) .RelPermalink .Params.id) }}
|
|
|
|
{{ $published := .PublishDate.Format $date }}
|
|
|
|
{{ $published := .PublishDate.Format $date }}
|
|
|
@ -105,7 +105,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
{{ $link := cond $external .Params.link .Permalink }}
|
|
|
|
{{ $link := cond $external .Params.link .Permalink }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $description = partial "paige/func-minify.html" (dict "content" $description) }}
|
|
|
|
{{ $content = partial "paige/func-minify.html" (dict "content" $content) }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $authors }}
|
|
|
|
{{ with $authors }}
|
|
|
|
{{ $primary := index . 0 }}
|
|
|
|
{{ $primary := index . 0 }}
|
|
|
@ -117,26 +117,26 @@
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if and $description $external }}
|
|
|
|
{{ if and $content $external }}
|
|
|
|
{{ $text := or (.Param "paige.feeds.page_link" | markdownify) "⏎" }}
|
|
|
|
{{ $text := or (.Param "paige.feeds.page_link" | markdownify) "⏎" }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $footer := printf `<p><a href="%s">%s</a></p>` .Permalink $text | safeHTML }}
|
|
|
|
{{ $footer := printf `<p><a href="%s">%s</a></p>` .Permalink $text | safeHTML }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $description = print $description $footer }}
|
|
|
|
{{ $content = print $content $footer }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ if not $description }}
|
|
|
|
{{ if not $content }}
|
|
|
|
{{ $description = .Description | markdownify }}
|
|
|
|
{{ $content = .Description | markdownify }}
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $description = replaceRE `<a href="#fn:(\d+)" class="footnote-ref" role="doc-noteref">` (printf `<a href="%s#fn:$1" class="footnote-ref" role="doc-noteref">` .Permalink) $description }}
|
|
|
|
{{ $content = replaceRE `<a href="#fn:(\d+)" class="footnote-ref" role="doc-noteref">` (printf `<a href="%s#fn:$1" class="footnote-ref" role="doc-noteref">` .Permalink) $content }}
|
|
|
|
{{ $description = replaceRE `<a href="#fnref:(\d+)" class="footnote-backref" role="doc-backlink">` (printf `<a href="%s#fnref:$1" class="footnote-backref" role="doc-backlink">` .Permalink) $description }}
|
|
|
|
{{ $content = replaceRE `<a href="#fnref:(\d+)" class="footnote-backref" role="doc-backlink">` (printf `<a href="%s#fnref:$1" class="footnote-backref" role="doc-backlink">` .Permalink) $content }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $author }}
|
|
|
|
{{ with $author }}
|
|
|
|
<author>{{ . }}</author>
|
|
|
|
<author>{{ . }}</author>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ with $description }}
|
|
|
|
{{ with $content }}
|
|
|
|
<description><![CDATA[{{ . }}]]></description>
|
|
|
|
<description><![CDATA[{{ . }}]]></description>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
|
|