From f108e5d9f03b22a2da2bf9e68da03c4d7b47b01d Mon Sep 17 00:00:00 2001 From: James Date: Mon, 9 Jul 2018 21:25:52 +1000 Subject: [PATCH] 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" }} -