mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-05-01 00:27:48 +08:00
docs: use shortcode partials #277
This commit is contained in:
parent
925fac5215
commit
def91dddec
@ -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…
x
Reference in New Issue
Block a user