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
13
_site/themes/docdock/layouts/shortcodes/icon.html
Normal file
13
_site/themes/docdock/layouts/shortcodes/icon.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ if .IsNamedParams }}
|
||||
{{if not (hasPrefix (.Get "name") "fa-") }}
|
||||
<span class="glyphicon glyphicon-{{.Get "name"}}" {{with .Get "size"}}style="font-size:{{.}}"{{end}} aria-hidden="true"></span>
|
||||
{{else}}
|
||||
<span class="fa {{.Get "name"}}" {{with .Get "size"}}style="font-size:{{.}}"{{end}} aria-hidden="true"></span>
|
||||
{{end}}
|
||||
{{else}}
|
||||
{{if not (hasPrefix (.Get 0) "fa-") }}
|
||||
<span class="glyphicon glyphicon-{{.Get 0}}" aria-hidden="true"></span>
|
||||
{{else}}
|
||||
<span class="fa {{.Get 0}}" aria-hidden="true"></span>
|
||||
{{end}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user