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

github.com/salcan/BeyondNothing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSal Cangeloso <salcan@gmail.com>2019-09-09 00:08:52 +0300
committerSal Cangeloso <salcan@gmail.com>2019-09-09 00:08:52 +0300
commit2931c2abf0964f1053c4776c5288ed3f02a7fe79 (patch)
treef8804973331b99cae7b0fceda1f11aa593a071f0
parentd6f7ff78a78a0cb3ad7795137a529439845d8186 (diff)
breaking changes in Hugo 0.57.0HEADmaster
Minor updates for breaking changes in Hugo 0.58.x
-rw-r--r--layouts/_default/list.html8
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/index.html8
3 files changed, 12 insertions, 8 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 75424b2..2a07748 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -25,18 +25,20 @@
<h1>Tag: {{ .Title }}</h1>
{{ .Content }}
<ul class="list-pages">
- {{ range .Data.Pages }}
+ {{ range .Site.RegularPages }}
<li class="lh-copy"><a href="{{ .Permalink | relURL }}" class="link f5">{{ .Title }}</a> - <time>{{ .Date.Format "January 02, 2006" }}</time></li>
{{ end }}
</ul>
+
+ {{ $paginator := .Paginate ( where .Site.RegularPages "Type" "post" ) 10 }}
</main>
<footer role="contentinfo">
<div class="hr"></div>
<div class="footer-link">
- <a href="mailto:test@test.com" target="_blank">Email</a> / <a href="https://salcangeloso.com">Site</a>
+ <a href="mailto:test@test.com" target="_blank">Email</a> / <a href="https://cloudconfusing.com">Site</a>
</div>
- <div class="copyright">Copyright &copy; 2018</div>
+ <div class="copyright">Copyright &copy; 2019</div>
</footer>
</div>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0015253..4485f77 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -60,9 +60,9 @@
<footer role="contentinfo">
<div class="hr"></div>
<div class="footer-link">
- <a href="/">Home</a> / <a href="mailto:test@test.com" target="_blank">Email</a> / <a href="https://salcangeloso.com">Site</a>
+ <a href="/">Home</a> / <a href="mailto:test@test.com" target="_blank">Email</a> / <a href="https://cloudconfusing.com">Site</a>
</div>
- <div class="copyright">Copyright &copy; 2018</div>
+ <div class="copyright">Copyright &copy; 2019</div>
</footer>
</div>
diff --git a/layouts/index.html b/layouts/index.html
index 66a1be6..3b3f4ed 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -20,20 +20,22 @@
</header>
<main role="main">
-{{ range (where .Data.Pages ".Params.hidefromhome" "!=" "true") }}
+{{ range (where .Site.RegularPages ".Params.hidefromhome" "!=" "true") }}
+
<h2 class="entry-title" itemprop="headline"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>
{{ end }}
+
</main>
<footer role="contentinfo">
<div class="hr"></div>
<div class="footer-link">
- <a href="mailto:test@test.com" target="_blank">Email</a> / <a href="https://salcangeloso.com">Site</a>
+ <a href="mailto:test@test.com" target="_blank">Email</a> / <a href="https://cloudconfusing.com">Site</a>
</div>
- <div class="copyright">Copyright &copy; 2018</div>
+ <div class="copyright">Copyright &copy; 2019</div>
</footer>
</div>