mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 23:09:47 +00:00
Remove forward slash for relLangURL
This commit is contained in:
parent
4f59157d5b
commit
8b887314e2
3 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="section tags-list">
|
<div class="section tags-list">
|
||||||
{{- range $key, $value:= .Data.Terms -}}
|
{{- range $key, $value:= .Data.Terms -}}
|
||||||
<a class="tag-cloud" href="{{ "/" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }} ({{ $value.Count }})</a>
|
<a class="tag-cloud" href="{{ "" | relLangURL }}{{ $.Data.Plural | urlize }}/{{ $key | urlize }}">{{ $key }} ({{ $value.Count }})</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<p>
|
<p>
|
||||||
Tag{{ if gt $len 1 }}s{{ end }}:
|
Tag{{ if gt $len 1 }}s{{ end }}:
|
||||||
{{ range $index, $tag := .Params.tags }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<!-- use default menu -->
|
<!-- use default menu -->
|
||||||
{{ if not $isHome }}
|
{{ if not $isHome }}
|
||||||
<a class="navbar-item" href="{{ "/" | relLangURL }}">{{ i18n "nav_main" . }}</a>
|
<a class="navbar-item" href="{{ "" | relLangURL }}">{{ i18n "nav_main" . }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ with .Site.GetPage "/home" }}
|
{{ with .Site.GetPage "/home" }}
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
{{ if eq (os.Stat .File.Dir).Name "projects" }}
|
{{ if eq (os.Stat .File.Dir).Name "projects" }}
|
||||||
<!-- Now for some cool projects -->
|
<!-- Now for some cool projects -->
|
||||||
{{ if $isHome }}
|
{{ 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 }}
|
{{ else }}
|
||||||
{{ $pageIsInProjects := eq $.Page.Section "project"}}
|
{{ $pageIsInProjects := eq $.Page.Section "project"}}
|
||||||
{{ if not (and $pageIsInProjects (eq $.Page.Kind "section")) }}
|
{{ if not (and $pageIsInProjects (eq $.Page.Kind "section")) }}
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
|
{{ else if eq (os.Stat .File.Dir).Name "blog" }}
|
||||||
<!-- Let`s show some blog posts -->
|
<!-- Let`s show some blog posts -->
|
||||||
{{ if $isHome }}
|
{{ 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 }}
|
{{ else }}
|
||||||
{{ $pageIsInBlog := eq $.Page.Section "blog"}}
|
{{ $pageIsInBlog := eq $.Page.Section "blog"}}
|
||||||
{{ if not (and $pageIsInBlog (eq $.Page.Kind "section")) }}
|
{{ if not (and $pageIsInBlog (eq $.Page.Kind "section")) }}
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ 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 }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
|
|
||||||
{{ with .Site.GetPage "/home" }}
|
{{ with .Site.GetPage "/home" }}
|
||||||
{{ with .Resources.GetMatch "contact.md" }}
|
{{ 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 }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue