More switches to RelPermalink

This commit is contained in:
Brandon Rozek 2025-12-06 13:41:09 -05:00
parent fb67108120
commit e253bf878d
No known key found for this signature in database
GPG key ID: DFB0E78F805F4567
10 changed files with 13 additions and 13 deletions

View file

@ -10,7 +10,7 @@
<ul id="footer-nav-sections">
{{ range .Site.Sections }}
{{ if not .Params.hidden }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
</ul>
@ -22,7 +22,7 @@
{{ $sectionPages := where .Site.Pages "Section" "" }}
{{ range $sectionPages }}
{{ if and (not .Params.hidden) (ne .Permalink .Site.BaseURL)}}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
{{ end }}
<li><a href="/support">Support</a></li>

View file

@ -11,5 +11,5 @@
{{ $lunr := resources.Get "js/lunr.js" }}
{{ $search := resources.Get "js/search.js" }}
{{ $lunrPackage := slice $jquery $mark $lunr | resources.Concat "js/lunrPackage.js" | resources.Minify | resources.Fingerprint }}
<script src="{{ $lunrPackage.Permalink }}"></script>
<script src="{{ $search.Permalink }}" async></script>
<script src="{{ $lunrPackage.RelPermalink }}"></script>
<script src="{{ $search.RelPermalink }}" async></script>

View file

@ -3,7 +3,7 @@
<summary>Tags</summary>
<ul>
{{ range .Site.Taxonomies.tags.ByCount }}
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }} ({{ .Count }})</a></li>
<li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }} ({{ .Count }})</a></li>
{{ end }}
</ul>
</details>

View file

@ -4,7 +4,7 @@
{{ range .Param "tags" }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }}
<li><a class="p-category" href="{{ .Permalink }}">{{ $name }}</a></li>
<li><a class="p-category" href="{{ .RelPermalink }}">{{ $name }}</a></li>
{{ end }}
{{ end }}
</ul>

View file

@ -9,4 +9,4 @@
</form>
{{ $webmentionjs := resources.Get "js/webmention.min.js" }}
{{ $aliasesCombined := delimit (apply .Aliases "absURL" ".") "|" }}
<script src="{{ $webmentionjs.Permalink }}" {{ printf "add-urls=%s" $aliasesCombined | safeHTMLAttr }} async></script>
<script src="{{ $webmentionjs.RelPermalink }}" {{ printf "add-urls=%s" $aliasesCombined | safeHTMLAttr }} async></script>