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

github.com/wlh320/hugo-theme-hulga.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzilch40 <wlh233@live.com>2020-11-21 15:52:30 +0300
committerzilch40 <wlh233@live.com>2020-11-21 15:52:30 +0300
commit111b9d34e6a5fd6da3a0365bc579d90c9923e5f6 (patch)
tree06592d36597fb3d3eea67d91c51b9550e4406ca5 /layouts/_default/term.html
parent0e32031aeacddd30e1573e2ddac5ce2752a4f8d8 (diff)
change url to absURL
Diffstat (limited to 'layouts/_default/term.html')
-rw-r--r--layouts/_default/term.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
index 714d848..e081039 100644
--- a/layouts/_default/term.html
+++ b/layouts/_default/term.html
@@ -1,5 +1,6 @@
{{ define "main" }}
{{- partial "header.html" . -}}
+{{- $ctx := . -}}
<section class="section">
<div class="container">
<div class="columns">
@@ -8,14 +9,14 @@
{{ if eq .Data.Singular "category" }}
<nav class="breadcrumb is-centered is-medium" aria-label="breadcrumbs">
<ul>
- <li><a href="/categories">{{- i18n "categories" -}}</a></li>
+ <li><a href={{"categories" | absURL}}>{{- i18n "categories" -}}</a></li>
<li class="is-active"><a href="#">{{ .Data.Term }}</a></li>
</ul>
</nav>
{{ else if eq .Data.Singular "tag" }}
<nav class="breadcrumb is-centered is-medium" aria-label="breadcrumbs">
<ul>
- <li><a href="/tags">{{- i18n "tags" -}}</a></li>
+ <li><a href="{{"tags" | absURL }}">{{- i18n "tags" -}}</a></li>
<li class="is-active"><a href="#">{{ .Data.Term }}</a></li>
</ul>
</nav>
@@ -28,7 +29,7 @@
<div class="post-box-tags">
{{ range .}}
<span class="post-tag post-box-tag">
- <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a>
+ <a href="{{ $ctx.Site.BaseURL }}{{ "/tags/" | relLangURL }}{{ . | urlize }}">#{{ . }}</a>
</span>
{{ end }}
</div>
@@ -41,7 +42,7 @@
{{ with .Params.Categories }} ・
{{ range .}}
<span class="post-tag post-box-category">
- <a href="{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
+ <a href="{{ $ctx.Site.BaseURL }}{{ "/categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
</span>
{{ end }}
{{ end }}