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

github.com/bul-ikana/hugo-cards.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Aguirre <bul-ikana@users.noreply.github.com>2019-09-01 04:56:09 +0300
committerGitHub <noreply@github.com>2019-09-01 04:56:09 +0300
commit8d2fbfaca92ae8ebe90ba2c5380cfc3b8b109727 (patch)
treeb6640ebf242e4d7871c7c73ad971ed4632b35559
parent8e59d01a5bb19e00bad1c4e3adde3b4c88990feb (diff)
parent56e2b84d31645eb4c96912b940cf30b189165bc1 (diff)
Merge pull request #3 from nonumeros/master
exampleSite themesDir added; Next and Prev will be deprecated, use NextPage a…
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/_default/single.html6
2 files changed, 4 insertions, 3 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index c8a9302..21252c6 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -2,6 +2,7 @@ baseurl = "http://example.org/"
languageCode = "en-us"
title = "Hugo Cards"
theme = "hugo-cards"
+themesDir = "../.."
paginate = 6
[params]
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index bbb6775..116b1f4 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -22,10 +22,10 @@
<div class="row">
<ul class="pager">
- {{ with .Next }}
+ {{ with .NextPage }}
<li><a class="next" href="{{ .URL }}">&laquo; {{ .Title }}</a></li>
{{ end }}
- {{ with .Prev }}
+ {{ with .PrevPage }}
<li><a class="previous" href="{{ .URL }}">{{ .Title }} &raquo;</a></li>
{{ end }}
</ul>
@@ -39,4 +39,4 @@
{{ partial "fb-script.html" . }}
-{{ end }} \ No newline at end of file
+{{ end }}