mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
First pass at new site template
This commit is contained in:
committed by
Chris Cummer
parent
215c7e571f
commit
d872a28cf7
12
_site/themes/docdock/layouts/shortcodes/pagelink.html
Normal file
12
_site/themes/docdock/layouts/shortcodes/pagelink.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ if ne (.Get "spacekey") "" }}
|
||||
<label class="broken" title="lien d'espace cassé">{{.Get "pagename" | htmlUnescape}}</label>
|
||||
{{else}}
|
||||
{{$pages := where .Site.AllPages "Title" (( $.Get "pagename") | htmlUnescape ) }}
|
||||
{{ if eq 0 (len $pages) }}
|
||||
<label class="broken" title="lien cassé">{{.Get "pagename" | htmlUnescape}}</label>
|
||||
{{else}}
|
||||
{{ range $pages }}
|
||||
<a href="{{$.Site.BaseURL}}{{.Params.slug | lower}}">{{$.Inner}}</a>
|
||||
{{end}}
|
||||
{{ end }}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user