mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
docs: use shortcode partials #277
This commit is contained in:
parent
925fac5215
commit
def91dddec
1 changed files with 7 additions and 9 deletions
|
@ -98,14 +98,12 @@
|
||||||
{{- $c = replaceRE "(src|href)=\"([^\"]*?)/pir/([^\"]*?.files/[^\"]*?\")" "${1}=\"${2}/${3}" $c }}
|
{{- $c = replaceRE "(src|href)=\"([^\"]*?)/pir/([^\"]*?.files/[^\"]*?\")" "${1}=\"${2}/${3}" $c }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- $style := "warning" }}
|
{{- partial "shortcodes/notice.html" (dict
|
||||||
{{- $title := "Arrr! Pirrrates" }}
|
"context" .
|
||||||
{{- $icon := "skull-crossbones" }}
|
"content" "<p>Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff.</p>"
|
||||||
<div class="box notices cstyle {{ $style }}">
|
"icon" "skull-crossbones"
|
||||||
<div class="box-label"><i class="fa-fw fas fa-{{ $icon }}"></i> {{ $title }}</div>
|
"style" "warning"
|
||||||
<div class="box-content">
|
"title" "Arrr! Pirrrates"
|
||||||
<p>Fello' pirrates, be awarrre some featurrres may not work fer us in this trrranslat'n. Like table of rrramblings, some Merrrmaids and stuff.</p>
|
) }}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ $c | safeHTML }}
|
{{ $c | safeHTML }}
|
Loading…
Reference in a new issue