Simplify
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
{{ $subpages = $subpages | first $limit }}
|
||||
{{ end }}
|
||||
|
||||
{{ $titles := slice ($page.Title | markdownify) }}
|
||||
{{ $titles := slice (markdownify $page.Title) }}
|
||||
|
||||
{{ range .Ancestors }}
|
||||
{{ $titles = $titles | append (.Title | markdownify) }}
|
||||
{{ $titles = $titles | append (markdownify .Title) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $title := delimit $titles " · " }}
|
||||
@@ -89,7 +89,7 @@
|
||||
<webMaster>{{ . }}</webMaster>
|
||||
{{ end }}
|
||||
|
||||
{{ range $subpage := $subpages }}
|
||||
{{ range $subpages }}
|
||||
<item>
|
||||
{{ $author := "" }}
|
||||
{{ $authors := partial "paige/func-authors.html" . }}
|
||||
@@ -123,8 +123,8 @@
|
||||
{{ $description = .Description | markdownify }}
|
||||
{{ end }}
|
||||
|
||||
{{ $description = $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 = $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 = 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 }}
|
||||
{{ $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 }}
|
||||
|
||||
{{ if and (not $description) (not $title) }}
|
||||
{{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description. The rss output requires a title or description. Either set the page's title or description parameters, or disable the rss output." .RelPermalink }}
|
||||
|
Reference in New Issue
Block a user