mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 08:02:19 +00:00
Switch to RelPermalink to support http/https sites
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
<ul>
|
||||
{{- range .Pages }}
|
||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
||||
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
@@ -23,7 +23,7 @@
|
||||
<img src="{{ $image.RelPermalink}}" class="image is-inline-block">
|
||||
</div>
|
||||
<div class="column">
|
||||
<p><a href="{{ .Permalink }}">{{.Title}}</a> - {{ .Params.author }}<br />
|
||||
<p><a href="{{ .RelPermalink }}">{{.Title}}</a> - {{ .Params.author }}<br />
|
||||
<span class="is-size-6">{{ dateFormat "Jan 2, 2006" .PublishDate }}</span>
|
||||
</p>
|
||||
<p class="is-size-6"><i>{{ .Summary }}</i></p>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<figure class="media-left">
|
||||
<p class="image is-64x64">
|
||||
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) | resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
||||
<img class="is-rounded" src="{{ $avatar.Permalink }}">
|
||||
<img class="is-rounded" src="{{ $avatar.RelPermalink }}">
|
||||
</p>
|
||||
</figure>
|
||||
<div class="media-content">
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
{{ $site := resources.Get "js/site.js" }}
|
||||
{{ $js := slice $site $theme | resources.Concat "js/bundle.js" | resources.Minify }}
|
||||
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
|
||||
<script src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
<script src="{{ $secureJS.RelPermalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ absURL "blog/index.xml" }}" title="{{ .Site.Title }}">
|
||||
<link rel="alternate" type="text/calendar" href="https://api.leighhack.org/events.ics" title="{{ .Site.Title }} Events">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="canonical" href="{{ .RelPermalink }}">
|
||||
|
||||
{{ if .Page.Store.Get "hasMap" }}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.2.0/ol.css">
|
||||
|
||||
Reference in New Issue
Block a user