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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Tam <sere@live.hk>2019-08-07 12:37:06 +0300
committerVincent Tam <sere@live.hk>2019-08-07 12:37:06 +0300
commit8b887314e2c7e97f18af63f1b476d4d452cff751 (patch)
tree8b68fc4c393f4e6188a0aa3cbad02c2933000473 /layouts
parent4f59157d5b4da425040df4f771ed8282fa4955e9 (diff)
Remove forward slash for relLangURL
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/terms.html2
-rw-r--r--layouts/blog/single.html2
-rw-r--r--layouts/partials/nav.html10
3 files changed, 7 insertions, 7 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index 7811b8e..bd21a27 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -2,7 +2,7 @@
<div class="container">
<div class="section tags-list">
{{- range $key, $value:= .Data.Terms -}}
- <a class="tag-cloud" href="{{ "/" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }}&nbsp;({{ $value.Count }})</a>
+ <a class="tag-cloud" href="{{ "" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }}&nbsp;({{ $value.Count }})</a>
{{- end -}}
</div>
</div>
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index 53ab6a2..6a7f5b3 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -47,7 +47,7 @@
<p>
Tag{{ if gt $len 1 }}s{{ end }}:
{{ range $index, $tag := .Params.tags }}
- <a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ if ne (add $index 1) $len }},{{ end }}
+ <a href="{{ "tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ if ne (add $index 1) $len }},{{ end }}
{{ end }}
</p>
{{ end }}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 58b5e3e..9f8c722 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -37,7 +37,7 @@
{{ else }}
<!-- use default menu -->
{{ if not $isHome }}
- <a class="navbar-item" href="{{ "/" | relLangURL }}">{{ i18n "nav_main" . }}</a>
+ <a class="navbar-item" href="{{ "" | relLangURL }}">{{ i18n "nav_main" . }}</a>
{{ end }}
{{ with .Site.GetPage "/home" }}
@@ -56,7 +56,7 @@
{{ if eq (os.Stat .File.Dir).Name "projects" }}
<!-- Now for some cool projects -->
{{ if $isHome }}
- <a class="navbar-item" href="{{ printf "/#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
{{ else }}
{{ $pageIsInProjects := eq $.Page.Section "project"}}
{{ if not (and $pageIsInProjects (eq $.Page.Kind "section")) }}
@@ -72,7 +72,7 @@
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
<!-- Let`s show some blog posts -->
{{ if $isHome }}
- <a class="navbar-item" href="{{ printf "/#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ printf "#%s" ( .Title | urlize) | relLangURL }}">{{ .Title }}</a>
{{ else }}
{{ $pageIsInBlog := eq $.Page.Section "blog"}}
{{ if not (and $pageIsInBlog (eq $.Page.Kind "section")) }}
@@ -86,7 +86,7 @@
{{ end }}
{{ end }}
{{ else }}
- <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
{{ end }}
{{ end }}
{{ end }}
@@ -94,7 +94,7 @@
{{ with .Site.GetPage "/home" }}
{{ with .Resources.GetMatch "contact.md" }}
- <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "/#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
+ <a class="navbar-item" href="{{ if $isHome }}#{{ .File.TranslationBaseName }}{{ else }}{{ printf "#%s" (.File.TranslationBaseName | urlize) | relLangURL }}{{ end }}">{{ .Title }}</a>
{{ end }}
{{ end }}