mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 14:32:25 +00:00
Switch to RelPermalink to support http/https sites
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<p>{{ .Params.subtitle }}</p>
|
<p>{{ .Params.subtitle }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<a href="{{ .Permalink }}" class="button is-primary is-medium is-fullwidth has-box-shadow ">Learn More</a>
|
<a href="{{ .RelPermalink }}" class="button is-primary is-medium is-fullwidth has-box-shadow ">Learn More</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{- range .Pages }}
|
{{- range .Pages }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<img src="{{ $image.RelPermalink}}">
|
<img src="{{ $image.RelPermalink}}">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p><a href="{{ .Permalink }}">{{.Title}}</a> - {{ .Params.author }}<br />
|
<p><a href="{{ .RelPermalink }}">{{.Title}}</a> - {{ .Params.author }}<br />
|
||||||
{{ dateFormat "Jan 2, 2006" .PublishDate }}
|
{{ dateFormat "Jan 2, 2006" .PublishDate }}
|
||||||
</p>
|
</p>
|
||||||
<p><i>{{ .Summary }}</i></p>
|
<p><i>{{ .Summary }}</i></p>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) |
|
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) |
|
||||||
resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
||||||
<img src="{{ $avatar.Permalink }}">
|
<img src="{{ $avatar.RelPermalink }}">
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p class="is-size-5 is-italic">This is a post by <b>{{ .Params.author }}</b>.<br />Originally
|
<p class="is-size-5 is-italic">This is a post by <b>{{ .Params.author }}</b>.<br />Originally
|
||||||
|
|||||||
@@ -10,7 +10,8 @@
|
|||||||
<b>Socials:</b>
|
<b>Socials:</b>
|
||||||
{{ $menu_items := add (len .Site.Params.social_links) -1 }}
|
{{ $menu_items := add (len .Site.Params.social_links) -1 }}
|
||||||
{{- range $i, $e := .Site.Params.social_links }}
|
{{- range $i, $e := .Site.Params.social_links }}
|
||||||
<a href="{{ .url | safeURL }}" target="_blank" rel="noopener me" title="{{ .name | humanize }}">{{ .name | humanize }}</a>{{ if lt $i $menu_items }} / {{ end }}
|
<a href="{{ .url | safeURL }}" target="_blank" rel="noopener me" title="{{ .name | humanize }}">{{ .name | humanize
|
||||||
|
}}</a>{{ if lt $i $menu_items }} / {{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -19,4 +20,9 @@
|
|||||||
href="https://www.studiocosmos.co.uk" target="_blank" rel="noopener">COSMOS</a><br>
|
href="https://www.studiocosmos.co.uk" target="_blank" rel="noopener">COSMOS</a><br>
|
||||||
{{ .Site.Title }} is a trading name of {{ .Site.Params.Company }}, registered in England & Wales No. <a
|
{{ .Site.Title }} is a trading name of {{ .Site.Params.Company }}, registered in England & Wales No. <a
|
||||||
href="https://find-and-update.company-information.service.gov.uk/company/{{ .Site.Params.company_number }}">{{
|
href="https://find-and-update.company-information.service.gov.uk/company/{{ .Site.Params.company_number }}">{{
|
||||||
.Site.Params.company_number }}</a></p>
|
.Site.Params.company_number }}</a></p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401"
|
||||||
|
alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
|
||||||
|
</p>
|
||||||
@@ -3,5 +3,3 @@
|
|||||||
|
|
||||||
<link rel="alternate" type="application/rss+xml" href="{{ absURL "blog/index.xml" }}" title="{{ .Site.Title }}">
|
<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="alternate" type="text/calendar" href="https://api.leighhack.org/events.ics" title="{{ .Site.Title }} Events">
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
{{- range .Pages }}
|
{{- range .Pages }}
|
||||||
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<img src="{{ $image.RelPermalink}}" class="image is-inline-block">
|
<img src="{{ $image.RelPermalink}}" class="image is-inline-block">
|
||||||
</div>
|
</div>
|
||||||
<div class="column">
|
<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>
|
<span class="is-size-6">{{ dateFormat "Jan 2, 2006" .PublishDate }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="is-size-6"><i>{{ .Summary }}</i></p>
|
<p class="is-size-6"><i>{{ .Summary }}</i></p>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<figure class="media-left">
|
<figure class="media-left">
|
||||||
<p class="image is-64x64">
|
<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") }}
|
{{ $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>
|
</p>
|
||||||
</figure>
|
</figure>
|
||||||
<div class="media-content">
|
<div class="media-content">
|
||||||
|
|||||||
@@ -17,4 +17,4 @@
|
|||||||
{{ $site := resources.Get "js/site.js" }}
|
{{ $site := resources.Get "js/site.js" }}
|
||||||
{{ $js := slice $site $theme | resources.Concat "js/bundle.js" | resources.Minify }}
|
{{ $js := slice $site $theme | resources.Concat "js/bundle.js" | resources.Minify }}
|
||||||
{{ $secureJS := $js | resources.Fingerprint "sha512" }}
|
{{ $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="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="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" }}
|
{{ if .Page.Store.Get "hasMap" }}
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.2.0/ol.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.2.0/ol.css">
|
||||||
|
|||||||
Reference in New Issue
Block a user