mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +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 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $style := "warning" }}
|
||||
{{- $title := "Arrr! Pirrrates" }}
|
||||
{{- $icon := "skull-crossbones" }}
|
||||
<div class="box notices cstyle {{ $style }}">
|
||||
<div class="box-label"><i class="fa-fw fas fa-{{ $icon }}"></i> {{ $title }}</div>
|
||||
<div class="box-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>
|
||||
</div>
|
||||
{{- partial "shortcodes/notice.html" (dict
|
||||
"context" .
|
||||
"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>"
|
||||
"icon" "skull-crossbones"
|
||||
"style" "warning"
|
||||
"title" "Arrr! Pirrrates"
|
||||
) }}
|
||||
|
||||
{{ $c | safeHTML }}
|
Loading…
Reference in a new issue