commit e016ca98b9302423fda9781158760b4f12bddd85
parent 99a3f765e47d4844a3be8253497d2134188da914
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sun, 12 Jul 2020 17:31:09 -0500
Use RelPermalink in headers
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
@@ -2,7 +2,7 @@
<main class="h-entry">
<header>
{{ $timestamp := .Date.Format "2006-01-02T15:04:05Z07:00" }}
- <a class="u-url" href="{{ .Permalink }}">
+ <a class="u-url" href="{{ .RelPermalink }}">
<time class="dt-published" datetime="{{ $timestamp }}">{{ $timestamp }}</time>
</a>{{ partial "language.html" . }}
<span style="float:right;"><a href="{{ "/" | relLangURL }}" class="u-author">⏎</a></span>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
@@ -1,5 +1,5 @@
<header>
{{ $timestamp := .Date.Format "2006-01-02T15:04:05Z07:00" }}
- <a class="u-url" href="{{ .Permalink }}"><time class="dt-published" datetime="{{ $timestamp }}">{{ $timestamp }}</time></a>
+ <a class="u-url" href="{{ .RelPermalink }}"><time class="dt-published" datetime="{{ $timestamp }}">{{ $timestamp }}</time></a>
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
</header>
diff --git a/layouts/partials/language.html b/layouts/partials/language.html
@@ -1,3 +1,3 @@
{{- range (sort .Translations ".Language.LanguageName") -}}
- | <a href="{{ .Permalink | relURL }}">{{ .Language.LanguageName }}</a>
+ | <a href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a>
{{- end -}}