mirror of
https://github.com/naoufalzerai/zerai.xyz.git
synced 2025-12-24 22:43:58 +00:00
change theme again :D
This commit is contained in:
16
themes/notepadium/layouts/partials/note-labels.html
Normal file
16
themes/notepadium/layouts/partials/note-labels.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- if or .Params.categories .Params.tags -}}
|
||||
<p class="note labels">
|
||||
{{- range .Params.categories -}}
|
||||
{{- $category := replace . "#" "%23" -}}
|
||||
{{- $category = replace $category "." "%2e" -}}
|
||||
{{- $url := print "/categories/" ($category | urlize) "/" -}}
|
||||
<a class="category" href="{{- $url | relLangURL -}}">{{- . -}}</a>
|
||||
{{- end -}}
|
||||
{{- range .Params.tags -}}
|
||||
{{- $tag := replace . "#" "%23" -}}
|
||||
{{- $tag = replace $tag "." "%2e" -}}
|
||||
{{- $url := print "/tags/" ($tag | urlize) "/" -}}
|
||||
<a class="tag" href="{{- $url | relLangURL -}}">{{- . -}}</a>
|
||||
{{- end -}}
|
||||
</p>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user