diff options
author | jesselau76 <jesselau76@gmail.com> | 2018-11-20 03:24:42 +0300 |
---|---|---|
committer | jesselau76 <jesselau76@gmail.com> | 2018-11-20 03:24:42 +0300 |
commit | da5ac5d9afa022f503cbee0bdb5473f804c8e6d4 (patch) | |
tree | 92ef16fc7841d810039eedb5a951f43a5eeef1c6 | |
parent | 90e00f89a4f401858d6168ce20a6e4c70e429277 (diff) |
custom header and footer on markdown posts
-rw-r--r-- | layouts/_default/baseof.html | 6 | ||||
-rw-r--r-- | layouts/shortcodes/htmlcode.html | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ffa8f78..9b14356 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -5,6 +5,9 @@ {{ partial "head.html" . }} {{ block "customseo" . }}{{ end }} + {{ with .Params.customheader }} +{{ . | safeHTML }} +{{ end }} </head> <body class="w3-light-grey"> @@ -37,6 +40,9 @@ </div> + {{ with .Params.customfooter }} +{{ . | safeHTML }} +{{ end }} {{ if .Site.Params.socialshare }} {{ partial "socialshare.html" . }} {{ end }} diff --git a/layouts/shortcodes/htmlcode.html b/layouts/shortcodes/htmlcode.html new file mode 100644 index 0000000..fb8cb85 --- /dev/null +++ b/layouts/shortcodes/htmlcode.html @@ -0,0 +1,2 @@ + {{ .Inner | safeHTML }} +
\ No newline at end of file |