Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-11-01 01:24:58 +0300
committerJimmy Cai <jimmehcai@gmail.com>2020-11-01 01:24:58 +0300
commitb5645f018017aad99b2266659c53bb7950277c79 (patch)
tree070a73eff5a5f6e96cb4ffdfa71c4812a4fe904f /layouts/partials/article/components/details.html
parentd6b0f102410f25df5c97c640824a4184491559a8 (diff)
refactor: use relative link for hyperlinks
Diffstat (limited to 'layouts/partials/article/components/details.html')
-rw-r--r--layouts/partials/article/components/details.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html
index 32d7f37..7650704 100644
--- a/layouts/partials/article/components/details.html
+++ b/layouts/partials/article/components/details.html
@@ -7,7 +7,7 @@
{{ if and $image.exists $image.resource }}
{{- $imageRaw := $image.resource | resources.Fingerprint "md5" -}}
{{- $20x := $imageRaw.Fill "20x20 smart" -}}
- <a href="{{ .Permalink }}"
+ <a href="{{ .RelPermalink }}"
class="color-tag"
data-image="{{ $20x.RelPermalink }}"
data-key="{{ $context.Slug }}"
@@ -15,14 +15,14 @@
{{ .LinkTitle }}
</a>
{{ else }}
- <a href="{{ .Permalink }}">{{ .LinkTitle }}</a>
+ <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
{{ end }}
</header>
{{ end }}
<h2 class="article-title">
- <a href="{{ .Permalink }}">
+ <a href="{{ .RelPermalink }}">
{{- .Title -}}
</a>
</h2>