diff options
author | jesselau76 <jesselau76@gmail.com> | 2019-08-20 05:34:37 +0300 |
---|---|---|
committer | jesselau76 <jesselau76@gmail.com> | 2019-08-20 05:34:37 +0300 |
commit | 601d63c73760c6df0a2ddfda0d7b050ddc6e0626 (patch) | |
tree | 8f7e05d0f9590774986edc967e3e23880df69252 | |
parent | 2f76a595a9bbd3dbf0714b5244fbd0219f81b517 (diff) |
Use instead of on Hugo 0.57+
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | layouts/partials/head.html | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7194573..953850c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -3,7 +3,7 @@ {{if not .IsHome }} <h1 class="w3-center">{{ .Title | markdownify }}</h1> {{ end }} -{{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }} +{{ $paginator := .Paginate (where .Site.RegularPages "Section" "!=" "") }} {{ if .Site.Params.allliststyle }} <script src="{{ "/js/w3.js" | relURL }}"></script> diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 466508d..0697095 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -3,9 +3,9 @@ {{ if .IsPage }} <meta http-equiv="Cache-Control" content="public" /> {{else}} - <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> - <meta http-equiv="Pragma" content="no-cache" /> - <meta http-equiv="Expires" content="0" /> + <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> + + {{ end }} {{ "<!-- Enable responsiveness on mobile devices -->" | safeHTML }} <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1"> |