Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jesselau76/hugo-w3-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesselau76 <jesselau76@gmail.com>2019-08-20 05:34:37 +0300
committerjesselau76 <jesselau76@gmail.com>2019-08-20 05:34:37 +0300
commit601d63c73760c6df0a2ddfda0d7b050ddc6e0626 (patch)
tree8f7e05d0f9590774986edc967e3e23880df69252
parent2f76a595a9bbd3dbf0714b5244fbd0219f81b517 (diff)
Use instead of on Hugo 0.57+
-rw-r--r--layouts/_default/list.html2
-rw-r--r--layouts/partials/head.html6
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">