fix(link): fix tags/categories link bug
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<div class="menu" id="menu-mobile">
|
||||
{{- $currentPage := . -}}
|
||||
{{- range .Site.Menus.main -}}
|
||||
<a class="menu-item" href="{{ .URL | absLangURL }}" title="{{ .Title }}">
|
||||
<a class="menu-item" href="{{ .URL | relLangURL }}" title="{{ .Title }}">
|
||||
{{- .Pre | safeHTML }}{{ .Name -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
@@ -41,9 +41,11 @@
|
||||
<section>
|
||||
{{- with .Params.tags -}}
|
||||
{{- range . -}}
|
||||
<span class="tag">
|
||||
<a href="{{ "tags/" | absURL }}{{ . | urlize }}/"><i class="fas fa-tag fa-fw"></i> {{ . }}</a>
|
||||
</span>
|
||||
<span>
|
||||
<a href="{{ `/tags/` | relLangURL }}{{ urlize .}}">
|
||||
<i class="fas fa-tag fa-fw"></i>{{ . }}
|
||||
</a>
|
||||
</span>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user