mirror of
https://github.com/naoufalzerai/zerai.xyz.git
synced 2025-12-24 22:43:58 +00:00
layout ok
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
{{- $nav := . -}}
|
||||
{{- if or $nav.showCategories $nav.showTags $nav.custom -}}
|
||||
<div class="nav wrap"><nav class="nav">
|
||||
{{- if $nav.showCategories -}}
|
||||
<a class="nav item" href="{{- `/categories/` | relLangURL -}}">{{- T "Categories" -}}</a>
|
||||
{{- end -}}
|
||||
{{- if $nav.showTags -}}
|
||||
<a class="nav item" href="{{- `/tags/` | relLangURL -}}">{{- T "Tags" -}}</a>
|
||||
{{- end -}}
|
||||
{{- range $nav.custom -}}
|
||||
{{- $url := replace .url "#" "%23" -}}
|
||||
{{- $url = replace $url "." "%2e" -}}
|
||||
@@ -16,5 +10,11 @@
|
||||
{{- if strings.HasPrefix $url "http" -}}target="_blank" rel="noopener noreferrer"
|
||||
{{- end -}}>{{- .title -}}</a>
|
||||
{{- end -}}
|
||||
{{- if $nav.showCategories -}}
|
||||
<a class="nav item" href="{{- `/categories/` | relLangURL -}}">{{- T "Categories" -}}</a>
|
||||
{{- end -}}
|
||||
{{- if $nav.showTags -}}
|
||||
<a class="nav item" href="{{- `/tags/` | relLangURL -}}">{{- T "Tags" -}}</a>
|
||||
{{- end -}}
|
||||
</nav></div>
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user