From 275a34b0a25b7610b2123e913c6cf1a1989cdf05 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 9 Jul 2018 21:13:17 +1000 Subject: [PATCH 1/2] Add screenshot renderer --- layouts/screenshots/single.html | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 layouts/screenshots/single.html diff --git a/layouts/screenshots/single.html b/layouts/screenshots/single.html new file mode 100644 index 0000000..b87fa75 --- /dev/null +++ b/layouts/screenshots/single.html @@ -0,0 +1,40 @@ +{{ define "main" }} + +{{ end }} + +{{ define "scripts" }} + + + + +{{ end }} From f108e5d9f03b22a2da2bf9e68da03c4d7b47b01d Mon Sep 17 00:00:00 2001 From: James Date: Mon, 9 Jul 2018 21:25:52 +1000 Subject: [PATCH 2/2] Move per-page CSS to HTML head --- layouts/_default/baseof.html | 7 ++++--- layouts/screenshots/single.html | 5 ++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ad65e06..64cc4ed 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -22,7 +22,8 @@ - + {{- block "css" . }}{{- end }} + {{ if eq (getenv "HUGO_ENV") "PRD" }} @@ -46,7 +47,7 @@ {{- end }} {{ .Render "header" }} - + {{ block "header" . }}{{ end }} {{ $full_width := .Params.FullWidth | default false }} @@ -87,4 +88,4 @@ {{- end }} - \ No newline at end of file + diff --git a/layouts/screenshots/single.html b/layouts/screenshots/single.html index b87fa75..9560686 100644 --- a/layouts/screenshots/single.html +++ b/layouts/screenshots/single.html @@ -28,9 +28,12 @@ {{ end }} +{{ define "css" }} + +{{ end }} + {{ define "scripts" }} -