Comments (9)
Once we have tera2 it should be possible to revamp all the functions to get the paginator but it's far away
from zola.
Even if adding the entire paginator seems not possible, do you think it would be possible to just add paginate_by and paginate_reversed in the serialized section returned by get_section
That would be fine yes
from zola.
get_url
doesn't check whether the path exists as some stuff gets added during the build process.
from zola.
@Keats oh snap, that was my last idea. There are still sitemaps, but I have a grim feeling. All the work on the dynamic PWA cache just got cancelled because there's nowhere to pull pager permalinks from.
from zola.
@Keats what about something like validate_permalink()
since Tera 2 is not happening any time soon?
from zola.
While there is no built-in solution, one could manually extract pagination settings and calculate required page numbers: charlesrocket/halve-z/pull/27
from zola.
Hello,
In order to set up a 'series' feature in a theme, I would need to know if pagination is reversed or not so that I can align series' pages indexes accordingly.
Everything works well in the series itself (which is a section) has I have both section
and paginator
variables.
Nevertheless, in the series' pages, I can just do a get_section
to retrieve the series' section information and I don't have any way to retrieve pagination information.
Unfortunately, applying the workaround just above would not work in my case because my series' section has some content (and not only frontmatter).
Reversing the order of the pages listed in the section when paginate_reversed
(or maybe something more meaningful such as sort_reversed
) is set to true
would work as well for me but I would expect it to have such a huge impact that it doesn't worth it in my opinion.
Even if adding the entire paginator seems not possible, do you think it would be possible to just add paginate_by
and paginate_reversed
in the serialized section returned by get_section
?
zola/components/content/src/ser.rs
Lines 206 to 229 in 051beca
If yes, I can try to tackle it and propose a PR in the weeks to come.
If you would prefer me to open a new issue instead of reusing this one, please tell me.
Thanks for your help and support.
from zola.
That would be fine yes
Thanks for your feedback.
This is my first contribution and I was not able to figure out which branch I should push this modification to (master
or next
).
Is master
dedicated to bug fixing the current version only or should we consider this small evolution to be part of it as well?
Thanks in advance for your help and support.
from zola.
master
is only for docs update, all new features/bug fixes go on the next
branch
from zola.
Related Issues (20)
- Two shortcode problems HOT 3
- Broken shortcodes on 0.19 HOT 10
- Breaking changes documentation for v0.19 (generate_feeds, feed_filenames, path..) HOT 2
- How to iterate through the list of top-level sections HOT 4
- Guide to Deploy to Codeberg Pages
- Feature request: load_data for TSV and other non-comma-separated CSV HOT 2
- How create a frontmatter extra object HOT 1
- `linenos` syntax highlighting is a semantic mess HOT 11
- Variable `config.feed_filename` not found in context while rendering 'section.html' HOT 4
- Feature Request: TLA+ Syntax Highlighting Support
- Live reload not working on Windows HOT 3
- How to change html tags based on whether a variable exist in a page or not. HOT 5
- In Zola templates that extend another template, variables declared at top-level are silently ignored HOT 2
- Confusing error message when trying to import macros in any place other than the start of the template file
- Undocumented or Faulty: linking colocated assets on a slug page through template HOT 3
- Get unrendered page.content in templates HOT 1
- Zola panics if static directory does not exist (with compile_sass = false) HOT 1
- How do I include another markdown file in `docs` markdown file? HOT 2
- Footnotes are not permalinked HOT 1
- Regression introduced in v0.19.0 to config.toml HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zola.