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 }}
<title>{{ .Title }} - {{ .Site.Title }}</title>
{{ $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>
{{ $millironx := resources.Get "graphics/millironx.svg" }}
@ -29,9 +29,9 @@
width="80"
height="24"
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>
&ensp;
<span class="font-small-caps font-serif">Milliron X</span>
@ -93,8 +93,8 @@
<div class="container">
<header class="d-none d-sm-none d-md-block text-center">
<h1 class="font-serif font-small-caps">
<object data="{{ $millironx.Permalink }}">
<img src="{{ $millironx.Permalink }}" alt="Milliron X" />
<object data="{{ $millironx.RelPermalink }}">
<img src="{{ $millironx.RelPermalink }}" alt="Milliron X" />
</object>
&emsp; Milliron X
</h1>
@ -113,7 +113,7 @@
<div class="col-3 align-self-center">
{{ $brandedbull := resources.Get "images/brandedbull.png" }}
{{ $brandedbullsmall := $brandedbull.Resize "x95" }}
<img src="{{ $brandedbullsmall.Permalink }}" height="95rem" />
<img src="{{ $brandedbullsmall.RelPermalink }}" height="95rem" />
</div>
<div class="col-3 align-self-center">
<div
@ -165,7 +165,7 @@
<!-- Font Awesome -->
{{ $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 := resources.Get "scripts/jquery/jquery.min.js" }}
@ -174,14 +174,14 @@
{{ $scrolljs := resources.Get "scripts/scroll-effect.js" | minify }}
{{ $maskjs := resources.Get "scripts/phone-masking.js" | minify }}
{{ $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 -->
{{ $popperjs := resources.Get "scripts/popper/popper.min.js" }}
{{ $twbsjs := resources.Get "scripts/bootstrap/bootstrap.min.js" }}
{{ $ttjs := resources.Get "scripts/tooltip-enable.js" | minify }}
{{ $bootstrapbundle := slice $popperjs $twbsjs $ttjs | resources.Concat "js/bootstrap-bundle.js" | fingerprint }}
<script src="{{ $bootstrapbundle.Permalink }}"></script>
<script src="{{ $bootstrapbundle.RelPermalink }}"></script>
<!-- GoatCounter -->
<script

View file

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

View file

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