change theme again :D

This commit is contained in:
naoufal zerai
2022-08-18 15:20:15 -04:00
parent dee5809c1a
commit 5dba10766d
287 changed files with 28330 additions and 1506 deletions

View File

@@ -0,0 +1,20 @@
{{- $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" -}}
{{- $url = $url | safeURL -}}
{{- if strings.HasPrefix $url "/" -}}{{- $url = $url | relLangURL -}}{{- end -}}
<a class="nav item" href="{{- $url -}}"
{{- if strings.HasPrefix $url "http" -}}target="_blank" rel="noopener noreferrer"
{{- end -}}>{{- .title -}}</a>
{{- end -}}
</nav></div>
{{- end -}}