diff options
author | nonumeros <kaploceh@gmail.com> | 2019-04-05 02:50:14 +0300 |
---|---|---|
committer | nonumeros <kaploceh@gmail.com> | 2019-04-05 02:50:14 +0300 |
commit | 56e2b84d31645eb4c96912b940cf30b189165bc1 (patch) | |
tree | b6640ebf242e4d7871c7c73ad971ed4632b35559 | |
parent | 8e59d01a5bb19e00bad1c4e3adde3b4c88990feb (diff) |
exampleSite created; Next and Prev will be deprecated, use NextPage and PrevPage respectively
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/_default/single.html | 6 |
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 }}">« {{ .Title }}</a></li> {{ end }} - {{ with .Prev }} + {{ with .PrevPage }} <li><a class="previous" href="{{ .URL }}">{{ .Title }} »</a></li> {{ end }} </ul> @@ -39,4 +39,4 @@ {{ partial "fb-script.html" . }} -{{ end }}
\ No newline at end of file +{{ end }} |