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

@ -29,14 +29,14 @@
<p class="bloglist-date">{{ .Key }}</p> <p class="bloglist-date">{{ .Key }}</p>
{{ range .Pages }} {{ range .Pages }}
<div class="bloglist-item"> <div class="bloglist-item">
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p> <p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
<p class="bloglist-item-tag"> <p class="bloglist-item-tag">
{{ $tag_count := 0 }} {{ $tag_count := 0 }}
{{ range .Params.tags }} {{ range .Params.tags }}
{{ if lt $tag_count 2 }} {{ if lt $tag_count 2 }}
{{ $name := . }} {{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" (. | urlize)) }} {{ with $.Site.GetPage (printf "/tags/%s" (. | urlize)) }}
<span><a href="{{ .Permalink }}">#{{ $name }}</a> </span> <span><a href="{{ .RelPermalink }}">#{{ $name }}</a> </span>
{{ end }} {{ end }}
{{ $tag_count = add $tag_count 1 }} {{ $tag_count = add $tag_count 1 }}
{{ end }} {{ end }}

View file

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

View file

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

View file

@ -3,7 +3,7 @@
<summary>Tags</summary> <summary>Tags</summary>
<ul> <ul>
{{ range .Site.Taxonomies.tags.ByCount }} {{ 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 }} {{ end }}
</ul> </ul>
</details> </details>

View file

@ -4,7 +4,7 @@
{{ range .Param "tags" }} {{ range .Param "tags" }}
{{ $name := . }} {{ $name := . }}
{{ with $.Site.GetPage (printf "/tags/%s" ($name | urlize)) }} {{ 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 }}
{{ end }} {{ end }}
</ul> </ul>

View file

@ -9,4 +9,4 @@
</form> </form>
{{ $webmentionjs := resources.Get "js/webmention.min.js" }} {{ $webmentionjs := resources.Get "js/webmention.min.js" }}
{{ $aliasesCombined := delimit (apply .Aliases "absURL" ".") "|" }} {{ $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>

View file

@ -1,5 +1,5 @@
{{- $openPGP := resources.Get "js/openpgp.min.js" -}} {{- $openPGP := resources.Get "js/openpgp.min.js" -}}
<script src="{{ $openPGP.Permalink }}"></script> <script src="{{ $openPGP.RelPermalink }}"></script>
<textarea id="pgpcleartext" class="pgpform" style="width: 100%; min-height: 10rem;"></textarea> <textarea id="pgpcleartext" class="pgpform" style="width: 100%; min-height: 10rem;"></textarea>
<button class="pgpbutton" onclick="encrypt()">Encrypt</button> <button class="pgpbutton" onclick="encrypt()">Encrypt</button>
<br/> <br/>

View file

@ -1,5 +1,5 @@
{{- $openPGP := resources.Get "js/openpgp.min.js" -}} {{- $openPGP := resources.Get "js/openpgp.min.js" -}}
<script src="{{ $openPGP.Permalink }}"></script> <script src="{{ $openPGP.RelPermalink }}"></script>
<textarea id="pgpsignedtext" class="pgpform" style="width: 100%; min-height: 10rem;"></textarea> <textarea id="pgpsignedtext" class="pgpform" style="width: 100%; min-height: 10rem;"></textarea>
<button class="pgpverifybutton" onclick="verify()">Verify</button> <button class="pgpverifybutton" onclick="verify()">Verify</button>
<br/> <br/>

View file

@ -37,7 +37,7 @@
{{ end }} {{ end }}
<p class="date">{{ .Key }}</p> <p class="date">{{ .Key }}</p>
{{ range .Pages }} {{ range .Pages }}
<p><a href="{{ .Permalink }}">{{ .Title }}</a></p> <p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
{{ end }} {{ end }}
{{ end }} {{ end }}
</div> </div>

View file

@ -8,7 +8,7 @@
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }} {{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
{{ range .Pages }} {{ range .Pages }}
<article class="h-entry"> <article class="h-entry">
<h2 class='title p-name'><a class="u-url" href="{{ .Permalink }}">{{ .Title }}</a></h2> <h2 class='title p-name'><a class="u-url" href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ .Scratch.Set "noDateUpdate" true }} {{ .Scratch.Set "noDateUpdate" true }}
{{ partial "date.html" . }} {{ partial "date.html" . }}
</article> </article>