From 453919142daed861c26735fabf0cbe1dc7d06b2e Mon Sep 17 00:00:00 2001 From: Sean Dockray Date: Wed, 9 Sep 2020 23:17:35 +1000 Subject: [PATCH] Preview header --- config/preview/config.toml | 2 ++ themes/sandpoints/layouts/_default/baseof.html | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 config/preview/config.toml diff --git a/config/preview/config.toml b/config/preview/config.toml new file mode 100644 index 0000000..25a7ad1 --- /dev/null +++ b/config/preview/config.toml @@ -0,0 +1,2 @@ +[params] +edit = true \ No newline at end of file diff --git a/themes/sandpoints/layouts/_default/baseof.html b/themes/sandpoints/layouts/_default/baseof.html index ef6c90f..d8c17d2 100644 --- a/themes/sandpoints/layouts/_default/baseof.html +++ b/themes/sandpoints/layouts/_default/baseof.html @@ -1,11 +1,11 @@ {{- $filePath := .File -}} -{{- $gitUrl := .Site.Data.myvars.giturl -}} +{{- $gitUrl := .Site.Params.giturl -}} {{- partial "head.html" . -}} {{ partialCached "css.html" . }} - {{ with .Site.Data.myvars.edit }} + {{ with .Site.Params.edit }}
edit_this add_new_topic @@ -21,4 +21,4 @@ {{- block "main" . }}{{- end }} {{- partial "footer.html" . -}} - + \ No newline at end of file