Back to Falco

Github Alert

layouts/shortcodes/github_alert.html

latest474 B
Original Source

{{ $_hugo_config := { "version": 1 } }} {{ $color := .Get "color" | default "primary" }} {{/* Following message will be only displayed if another shortcode set the 'github_error' value to true on the Scratch */}} {{ if $github_error := ( $.Page.Scratch.Get "github_error") }}

{{ with .Get "title" }}

{{ . | safeHTML }}

{{ end }} {{ if eq .Page.File.Ext "md" }} {{ .Inner | markdownify }} {{ else }} {{ .Inner | htmlUnescape | safeHTML }} {{ end }} {{ end }}