diff options
author | vjeantet <valere.jeantet@gmail.com> | 2020-09-23 23:39:42 +0300 |
---|---|---|
committer | vjeantet <valere.jeantet@gmail.com> | 2020-09-23 23:39:42 +0300 |
commit | d1f32ddaf9f51b037f8221460cfba10bdcd2e141 (patch) | |
tree | 03e27aedc0caedccb2b679d49fb4d5ab92da5fd4 /layouts/shortcodes/include.html | |
parent | ee1a0501f9841ea3719dbde8dd542f25982cc826 (diff) |
add checklist kind of pages
Diffstat (limited to 'layouts/shortcodes/include.html')
-rw-r--r-- | layouts/shortcodes/include.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/layouts/shortcodes/include.html b/layouts/shortcodes/include.html new file mode 100644 index 0000000..c099e6e --- /dev/null +++ b/layouts/shortcodes/include.html @@ -0,0 +1,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 }}
\ No newline at end of file |