mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
Update links to relative permalinks
This commit is contained in:
parent
6d6ab217c1
commit
e75ecbb866
@ -17,7 +17,7 @@
|
|||||||
{{- range .Pages -}}
|
{{- range .Pages -}}
|
||||||
<li class="post--list">
|
<li class="post--list">
|
||||||
<date class="post--list__date">{{ .PublishDate.Format "2006-01-02" }}</date>
|
<date class="post--list__date">{{ .PublishDate.Format "2006-01-02" }}</date>
|
||||||
<a class="post--list__title" aria-label="{{ .Title }}" href="{{ .Permalink }}">{{ .Title }}</a>
|
<a class="post--list__title" aria-label="{{ .Title }}" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -3,13 +3,13 @@
|
|||||||
{{- if hugo.IsProduction }}
|
{{- if hugo.IsProduction }}
|
||||||
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
|
{{ $highlighter = $highlighter | resources.Minify | resources.Fingerprint }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link rel="stylesheet" href="{{ $highlighter.Permalink }}"/>
|
<link rel="stylesheet" href="{{ $highlighter.RelPermalink }}"/>
|
||||||
|
|
||||||
{{ $asciidoctorTabs := resources.Get "css/asciidoctor-tabs.css" | resources.ToCSS }}
|
{{ $asciidoctorTabs := resources.Get "css/asciidoctor-tabs.css" | resources.ToCSS }}
|
||||||
<link rel="stylesheet" href="{{ $asciidoctorTabs.Permalink }}"/>
|
<link rel="stylesheet" href="{{ $asciidoctorTabs.RelPermalink }}"/>
|
||||||
|
|
||||||
{{ $asciidoctorTabsJS := resources.Get "js/asciidoctor-tabs.js" }}
|
{{ $asciidoctorTabsJS := resources.Get "js/asciidoctor-tabs.js" }}
|
||||||
<script defer src="{{ $asciidoctorTabsJS.Permalink }}"></script>
|
<script defer src="{{ $asciidoctorTabsJS.RelPermalink }}"></script>
|
||||||
|
|
||||||
{{- /* medium-zoom */ -}}
|
{{- /* medium-zoom */ -}}
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.7/dist/medium-zoom.min.js"></script>
|
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.7/dist/medium-zoom.min.js"></script>
|
||||||
|
@ -14,7 +14,7 @@ Otherwise, we take the pages of a section. */ -}}
|
|||||||
{{- range $paginator.Pages }}
|
{{- range $paginator.Pages }}
|
||||||
<article class="post--list">
|
<article class="post--list">
|
||||||
<time class="post--list__date" datetime="{{ .PublishDate.Format "2006-01-02" }}">{{ .PublishDate.Format "2006-01-02" }}</time>
|
<time class="post--list__date" datetime="{{ .PublishDate.Format "2006-01-02" }}">{{ .PublishDate.Format "2006-01-02" }}</time>
|
||||||
<a class="post--list__title" href="{{ .Permalink }}" aria-label="{{ .Title }}">{{ .Title }}</a></h1>
|
<a class="post--list__title" href="{{ .RelPermalink | relURL }}" aria-label="{{ .Title }}">{{ .Title }}</a></h1>
|
||||||
</article>
|
</article>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
Reference in New Issue
Block a user