From c7f9de35346042cc15ef010f7d8d14480ed4f8ec Mon Sep 17 00:00:00 2001 From: jesselau76 Date: Wed, 6 Mar 2019 22:38:32 +1300 Subject: set no cache for homepage, categories and tags --- layouts/partials/head.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ca40640..e8bc5c4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,10 +1,17 @@ - +{{ if .IsPage }} + +{{else}} + + + +{{ end }} {{ "" | safeHTML }} {{ .Hugo.Generator }} {{ if .IsHome }} + {{ $.Scratch.Set "theTitle" .Site.Title }} {{else}} {{ $.Scratch.Add "theTitle" .Title}} -- cgit v1.2.3