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

github.com/lingxz/er.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlingxz <lingyihuu@gmail.com>2019-08-25 20:51:48 +0300
committerlingxz <lingyihuu@gmail.com>2019-08-25 20:51:48 +0300
commitebdb18610b68d6160652f690c968ce016189d1e8 (patch)
tree5e7f86a11f07e348283beb41ba3577638da5e25f
parent1b57d43cc6568e7d0e84dd2dd952b140b4dadc4b (diff)
Update theme for hugo 0.57 changesHEADmaster
-rw-r--r--layouts/index.html2
-rw-r--r--layouts/partials/header.html2
-rw-r--r--theme.toml2
3 files changed, 3 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html
index bac350f..9847099 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,5 @@
{{ define "main" }}
-{{ $paginator := .Paginate (where .Data.Pages "Type" "in" .Site.Params.mainSections) }}
+{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<main class="center mv4 content-width ph3">
<ul class="list pa0">
{{ range $paginator.Pages }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 3ae224a..9840961 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -2,7 +2,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
{{ partial "open_graph.html" . }}
-{{ .Hugo.Generator }}
+{{ hugo.Generator }}
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600" rel="stylesheet">
<style type="text/css">{{ partial "css/variables.css" . | safeCSS }}</style>
diff --git a/theme.toml b/theme.toml
index b1d9a72..9e61a55 100644
--- a/theme.toml
+++ b/theme.toml
@@ -8,7 +8,7 @@ description = "A clean Hugo theme for blogging"
homepage = "http://github.com/lingxz/er"
tags = ["responsive", "white", "blog"]
features = ["responsive", "blog"]
-min_version = "0.38"
+min_version = "0.57.0"
[author]
name = "Lingyi Hu"