mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-12-08 08:20:23 +00:00
More switches to RelPermalink
This commit is contained in:
parent
fb67108120
commit
e253bf878d
10 changed files with 13 additions and 13 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
|
|
@ -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/>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue