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:
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 }}