Replace every instance of .Permalink with .RelPermalink

Hugo can't figure out how to sort out http vs https, which causes issues
in Chromium-based browsers. Fix that by only using relative links.
This commit is contained in:
Thomas A. Christensen II 2023-02-09 17:30:03 -06:00
parent ff1790746e
commit c875b93617
Signed by: millironx
GPG key ID: 09335146883990B9
3 changed files with 11 additions and 11 deletions

View file

@ -9,7 +9,7 @@
{{ end }} {{ end }}
<title>{{ .Title }} - {{ .Site.Title }}</title> <title>{{ .Title }} - {{ .Site.Title }}</title>
{{ $twbssass := resources.Get "styles/mix-twbs.scss" | resources.ToCSS | minify | resources.PostProcess }} {{ $twbssass := resources.Get "styles/mix-twbs.scss" | resources.ToCSS | minify | resources.PostProcess }}
<link href="{{ $twbssass.Permalink }}" rel="stylesheet" /> <link href="{{ $twbssass.RelPermalink }}" rel="stylesheet" />
</head> </head>
{{ $millironx := resources.Get "graphics/millironx.svg" }} {{ $millironx := resources.Get "graphics/millironx.svg" }}
@ -29,9 +29,9 @@
width="80" width="80"
height="24" height="24"
style="filter: invert(100%)" style="filter: invert(100%)"
data="{{ $millironx.Permalink }}" data="{{ $millironx.RelPermalink }}"
> >
<img src="{{ $millironx.Permalink }}" alt="Milliron X" /> <img src="{{ $millironx.RelPermalink }}" alt="Milliron X" />
</object> </object>
&ensp; &ensp;
<span class="font-small-caps font-serif">Milliron X</span> <span class="font-small-caps font-serif">Milliron X</span>
@ -93,8 +93,8 @@
<div class="container"> <div class="container">
<header class="d-none d-sm-none d-md-block text-center"> <header class="d-none d-sm-none d-md-block text-center">
<h1 class="font-serif font-small-caps"> <h1 class="font-serif font-small-caps">
<object data="{{ $millironx.Permalink }}"> <object data="{{ $millironx.RelPermalink }}">
<img src="{{ $millironx.Permalink }}" alt="Milliron X" /> <img src="{{ $millironx.RelPermalink }}" alt="Milliron X" />
</object> </object>
&emsp; Milliron X &emsp; Milliron X
</h1> </h1>
@ -113,7 +113,7 @@
<div class="col-3 align-self-center"> <div class="col-3 align-self-center">
{{ $brandedbull := resources.Get "images/brandedbull.png" }} {{ $brandedbull := resources.Get "images/brandedbull.png" }}
{{ $brandedbullsmall := $brandedbull.Resize "x95" }} {{ $brandedbullsmall := $brandedbull.Resize "x95" }}
<img src="{{ $brandedbullsmall.Permalink }}" height="95rem" /> <img src="{{ $brandedbullsmall.RelPermalink }}" height="95rem" />
</div> </div>
<div class="col-3 align-self-center"> <div class="col-3 align-self-center">
<div <div
@ -165,7 +165,7 @@
<!-- Font Awesome --> <!-- Font Awesome -->
{{ $fontawesome := resources.Get "scripts/fa-icons.js" | js.Build "js/fontawesome.js" | minify | fingerprint }} {{ $fontawesome := resources.Get "scripts/fa-icons.js" | js.Build "js/fontawesome.js" | minify | fingerprint }}
<script src="{{ $fontawesome.Permalink }}"></script> <script src="{{ $fontawesome.RelPermalink }}"></script>
<!-- JQuery --> <!-- JQuery -->
{{ $jquery := resources.Get "scripts/jquery/jquery.min.js" }} {{ $jquery := resources.Get "scripts/jquery/jquery.min.js" }}
@ -174,14 +174,14 @@
{{ $scrolljs := resources.Get "scripts/scroll-effect.js" | minify }} {{ $scrolljs := resources.Get "scripts/scroll-effect.js" | minify }}
{{ $maskjs := resources.Get "scripts/phone-masking.js" | minify }} {{ $maskjs := resources.Get "scripts/phone-masking.js" | minify }}
{{ $jquerybundle := slice $jquery $jqmaskjs $fittextjs $scrolljs $maskjs | resources.Concat "js/jquery-bundle.js" | fingerprint }} {{ $jquerybundle := slice $jquery $jqmaskjs $fittextjs $scrolljs $maskjs | resources.Concat "js/jquery-bundle.js" | fingerprint }}
<script src="{{ $jquerybundle.Permalink }}"></script> <script src="{{ $jquerybundle.RelPermalink }}"></script>
<!-- Bootstrap --> <!-- Bootstrap -->
{{ $popperjs := resources.Get "scripts/popper/popper.min.js" }} {{ $popperjs := resources.Get "scripts/popper/popper.min.js" }}
{{ $twbsjs := resources.Get "scripts/bootstrap/bootstrap.min.js" }} {{ $twbsjs := resources.Get "scripts/bootstrap/bootstrap.min.js" }}
{{ $ttjs := resources.Get "scripts/tooltip-enable.js" | minify }} {{ $ttjs := resources.Get "scripts/tooltip-enable.js" | minify }}
{{ $bootstrapbundle := slice $popperjs $twbsjs $ttjs | resources.Concat "js/bootstrap-bundle.js" | fingerprint }} {{ $bootstrapbundle := slice $popperjs $twbsjs $ttjs | resources.Concat "js/bootstrap-bundle.js" | fingerprint }}
<script src="{{ $bootstrapbundle.Permalink }}"></script> <script src="{{ $bootstrapbundle.RelPermalink }}"></script>
<!-- GoatCounter --> <!-- GoatCounter -->
<script <script

View file

@ -34,7 +34,7 @@
</div> </div>
<div class="flex-grow-1 px-2"> <div class="flex-grow-1 px-2">
<h3> <h3>
<a href="{{ .Permalink }}"> <a href="{{ .RelPermalink }}">
{{ .Title }} {{ .Title }}
</a> </a>
</h3> </h3>

View file

@ -12,7 +12,7 @@
<div class="row"> <div class="row">
{{ range .Pages }} {{ range .Pages }}
<div class="col-sm-4"> <div class="col-sm-4">
<a href="{{ .Permalink }}"> <a href="{{ .RelPermalink }}">
<img <img
class="img-fluid img-thumbnail rounded" class="img-fluid img-thumbnail rounded"
src="{{ .Params.thumbnail }}" src="{{ .Params.thumbnail }}"