Welcome to mirror list, hosted at ThFree Co, Russian Federation.

alert.html « shortcodes « layouts - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5e420ea7b1dd2aaf59ba5994320db8fa1ed60a3c (plain)
1
2
3
4
5
6
7
{{ $_hugo_config := `{ "version": 1 }` }}
<link rel="stylesheet" type="text/css" href='{{ (resources.Get "sass/shortcodes/alert.scss" | toCSS).Permalink }}'>
<div class="alert{{- " " -}}{{- if .IsNamedParams -}}
{{- with .Get "theme" -}}{{.}}{{- else -}}info{{- end -}}
{{- else -}}
	{{- with .Get 0 -}}{{.}}{{- else -}}info{{- end -}}
{{- end -}} " role="alert">{{- .Inner | safeHTML -}}</div>