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

include.html « shortcodes « layouts - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c099e6e8b830d14a22512de19c6d2f6c90da3e81 (plain)
1
2
3
4
5
6
7
8
9
{{$file := .Get 0}}
{{$path :=  printf "%s%s" .Page.File.Dir $file}}
{{ with .Site.GetPage $path }}{{ .Content }}{{else}}
<span style=" border: 4px dashed white;display: block;background-color: red;padding: 1em;color:white; font-size: large;font-weight: bold;text-transform: capitalize;">
	Include : File "{{$path}}" not found !
	<br>
	<small>param was "{{$file}}"</small>
</span>
{{ end }}