-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination #69
Comments
As a workaround, I swapped out the Poole pagination CSS for this: Then edit the layout: diff --git a/layouts/index.html b/layouts/index.html
index ec6d2eb..8ac316e 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,6 +1,6 @@
{{ define "main" -}}
<div class="posts">
-{{ range .Site.RegularPages -}}
+{{ range .Paginator.Pages -}}
<article class="post">
<h1 class="post-title">
<a href="{{ .Permalink }}">{{ .Title }}</a>
@@ -15,4 +15,5 @@
</article>
{{- end }}
</div>
+{{- template "_internal/pagination.html" . }}
{{- end }} |
Also the default list of pages includes posts as well as pages and it seems to be a giant mess. I saw in a different theme (blackburn) that they were instead ranging over this, which makes way more sense, giving us just a list of posts.
|
Not sure what you mean by "posts as well as pages"... but if you want to change the paginator for the home page, you need to use the |
Ah, got that. I didn't realize that posts are not present by default. But is the expectation that the default output of index.html will be: |
If you use |
Stop using deprecated .RSSLink.
Go Hyde uses Poole, which has styling for pagination:
hyde/static/css/poole.css
Lines 354 to 359 in 62d338f
Poole utilizes this pagination for Jekyll:
https://github.com/poole/poole/blob/c0d52e1e/index.html#L22-L33
as does Jekyll Hyde:
https://github.com/poole/hyde/blob/7c7f7550/index.html#L22-L37
but Go Hyde doesnt utilize the pagination:
hyde/layouts/index.html
Lines 1 to 18 in 62d338f
The text was updated successfully, but these errors were encountered: