Change footnote links to be absolute

This commit is contained in:
Will Faught
2023-09-24 17:05:42 -07:00
parent 8b72c5b694
commit e44ae3da4b

View File

@@ -105,6 +105,9 @@
{{ $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) }}
{{ if and (not $description) (not $title) }}
{{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description" .RelPermalink }}
{{ end }}