refactor: use relative link for hyperlinks

This commit is contained in:
Jimmy Cai
2020-10-31 23:24:58 +01:00
parent d6b0f10241
commit b5645f0180
8 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
{{ range $filtered.GroupByDate "2006" }}
{{ $id := lower (replace .Key " " "-") }}
<div class="archives-group" id="{{ $id }}">
<h2 class="archives-date section-title"><a href="{{ $.Permalink }}#{{ $id }}">{{ .Key }}</a></h2>
<h2 class="archives-date section-title"><a href="{{ $.RelPermalink }}#{{ $id }}">{{ .Key }}</a></h2>
<div class="article-list--compact">
{{ range .Pages }}
{{ partial "article-list/compact" . }}