Improve component rendering styles
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
26
layouts/_default/_markup/render-blockquote.html
Normal file
26
layouts/_default/_markup/render-blockquote.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{{ $emoji := dict
|
||||
"caution" ":exclamation:"
|
||||
"warning" ":warning:"
|
||||
"important" ":information_source:"
|
||||
"tip" ":bulb:"
|
||||
}}
|
||||
{{- if eq .Type "alert" -}}
|
||||
<blockquote class="alert alert-{{ .AlertType }}">
|
||||
<p class="alert-heading">
|
||||
<span class="alert-emoji">
|
||||
{{- transform.Emojify (index $emoji .AlertType) -}}
|
||||
</span>
|
||||
{{ if .AlertTitle }}
|
||||
{{- .AlertTitle -}}
|
||||
{{ else }}
|
||||
{{- .AlertType | title -}}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{- .Text -}}
|
||||
</blockquote>
|
||||
{{- else -}}
|
||||
<blockquote>
|
||||
{{- .Text -}}
|
||||
</blockquote>
|
||||
{{- end -}}
|
||||
{{- /* chomp trailing newline */ -}}
|
Reference in New Issue
Block a user