Some checks failed
Blowfish Docs Deploy / build (push) Has been cancelled
Blowfish Docs Deploy / deploy (push) Has been cancelled
Test Build / Build Example Site (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled
Update Hugo version / updateBlowfish (push) Has been cancelled
Delete exampleSite Add initial content, images & docker-compose.yml Use extend-head.html for analytics Set remote url to gitea.novicelab.io Remove original .git due to "shallow update not allowed" error
11 lines
487 B
HTML
11 lines
487 B
HTML
{{- /* Avoid extra whitespace */ -}}
|
|
{{- /* https://discourse.gohugo.io/t/55399/5 */ -}}
|
|
{{- $icon := resources.Get (printf "icons/%s.svg" ($.Get 0)) -}}
|
|
{{- if $icon -}}
|
|
<span class="relative inline-block align-text-bottom icon">
|
|
{{- strings.Replace $icon.Content "\n" "" | safeHTML -}}
|
|
</span>
|
|
{{- else -}}
|
|
{{- errorf `icon shortcode: resource "%s" not found. Check the path is correct or remove the shortcode: %s` (printf "icons/%s.svg" ($.Get 0)) .Position -}}
|
|
{{- end -}}
|