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

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>

View file

@ -1,5 +1,5 @@
{{- $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>
<button class="pgpbutton" onclick="encrypt()">Encrypt</button>
<br/>

View file

@ -1,5 +1,5 @@
{{- $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>
<button class="pgpverifybutton" onclick="verify()">Verify</button>
<br/>

View file

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

View file

@ -8,7 +8,7 @@
{{ range $index, $value := .Pages.GroupByDate $listPageDateFormat }}
{{ range .Pages }}
<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 }}
{{ partial "date.html" . }}
</article>