mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 09:19:00 +00:00
Create a precontent partial for miscellaneous tasks
This commit is contained in:
parent
2a240ba6a3
commit
bd2d253228
@ -1,5 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
<html lang="{{ .Site.LanguageCode | default "en" }}">
|
||||||
|
{{- partial "precontent.html" . }}
|
||||||
<head>
|
<head>
|
||||||
{{- partial "head.html" . -}}
|
{{- partial "head.html" . -}}
|
||||||
{{- partial "head_extended.html" . -}}
|
{{- partial "head_extended.html" . -}}
|
||||||
|
12
layouts/partials/precontent.html
Normal file
12
layouts/partials/precontent.html
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{{- $admonitionIcons := dict
|
||||||
|
"warning" "exclamation-triangle"
|
||||||
|
"note" "information-circle"
|
||||||
|
"tip" "light-bulb"
|
||||||
|
"caution" "fire"
|
||||||
|
"important" "key" }}
|
||||||
|
{{- range $admonition, $icon := $admonitionIcons }}
|
||||||
|
{{- $res := resources.ExecuteAsTemplate (printf "icons/asciidoctor/%s.svg" $admonition)
|
||||||
|
(dict "id" $icon "name" $admonition)
|
||||||
|
(resources.Get "templates/heroicon.svg") }}
|
||||||
|
{{- $res.Publish }}
|
||||||
|
{{- end }}
|
Loading…
Reference in New Issue
Block a user