diff --git a/layouts/shortcodes/file.html b/layouts/shortcodes/file.html new file mode 100644 index 0000000..1deb478 --- /dev/null +++ b/layouts/shortcodes/file.html @@ -0,0 +1,5 @@ +{{ $path := "/files/" }} +{{ with $.Site.Params.filespath }} {{ $path := ( . ) }}{{ end }} +{{ $numOfParams := ( len .Params ) }} +{{ if eq $numOfParams 1 }} {{ .Get 0 }}{{ end }} +{{ if eq $numOfParams 2 }} {{ .Get 1 }} {{ end }} \ No newline at end of file diff --git a/layouts/shortcodes/rawhtml.html b/layouts/shortcodes/rawhtml.html new file mode 100644 index 0000000..520ec17 --- /dev/null +++ b/layouts/shortcodes/rawhtml.html @@ -0,0 +1,2 @@ + +{{.Inner}} \ No newline at end of file diff --git a/layouts/shortcodes/updated.html b/layouts/shortcodes/updated.html new file mode 100644 index 0000000..b6269f6 --- /dev/null +++ b/layouts/shortcodes/updated.html @@ -0,0 +1,6 @@ +