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

notice.html « shortcodes « layouts - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d2038dd6b0b901c863a37368f71a32220ab2a293 (plain)
1
2
3
4
5
6
7
8
9
10
{{ $_hugo_config := `{ "version": 1 }` }}

<div class="notices {{ with .Get 0 -}}{{.}}{{else}}primary{{end}}">
	{{with .Params}}
	{{- if len $.Params | eq 2 -}}
	<label>{{- with $.Get 1 -}}{{.}}{{- end -}}</label>
	{{- end -}}
	{{- end -}}
	{{if in  .Inner "\n" }}{{.Inner}}{{else}}<p>{{.Inner}}</p>{{end}}
</div>