Change footnote links to be absolute
This commit is contained in:
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user