blob: 2fd80127e77e417d6fceaf673e83c3ac4bca344d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{{$file := .Get 0}}
{{ with .Page.File }}
{{ $path := printf "%s%s" .Dir $file}}
{{ with $.Site.GetPage $path }}{{ .Page.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 }}
{{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 : Current page file does not exist !
<br>
<small>param was "{{$file}}"</small>
</span>
{{end}}
|