Initial check-in after refactoring to use Hugo site generator with ReLearn template. HTTP Status Codes page not done--nor adwords added.
This commit is contained in:
10
themes/relearn/layouts/shortcodes/include.html
Normal file
10
themes/relearn/layouts/shortcodes/include.html
Normal file
@ -0,0 +1,10 @@
|
||||
{{- $file := .Get "file" | default (.Get 0) }}
|
||||
{{- $showFirstHeading := .Get "showfirstheading" | default (.Get 1) | default true }}
|
||||
{{- if eq (printf "%T" $showFirstHeading) "string" }}
|
||||
{{- $showFirstHeading = (eq $showFirstHeading "true") }}
|
||||
{{- end }}
|
||||
{{- if not $showFirstHeading }}<div class="include hide-first-heading">{{ end }}
|
||||
|
||||
{{ $file | readFile | safeHTML }}
|
||||
|
||||
{{- if not $showFirstHeading }}</div>{{ end }}
|
||||
Reference in New Issue
Block a user