jekyll-paginate-v2
jekyll-paginate-v2 copied to clipboard
Added :language macro for frontmatter YML
With this change, you won't need to create a new file for each locale you need.
Just write: locale: ":language"
And depending on language it will change.
Full example:
---
layout: index
section-type: index
languages:
- en
- es
sitemap:
priority: 1.0
pagination:
enabled: true
locale: ':language'
permalink: '/:num/'
---
I'm using jekyll-language-plugin together with this.
you can use this plugin jekyll-multiple-languages-plugin? the paginate-v2 locales are inconvenient and very limited
Needs to be rebased due to forced backtracking in repo
With this change, you won't need to create a new file for each locale you need.
Just write:
locale: ":language"
And depending on language it will change.
Full example:
--- layout: index section-type: index languages: - en - es sitemap: priority: 1.0 pagination: enabled: true locale: ':language' permalink: '/:num/' ---
I'm using jekyll-language-plugin together with this.
This is very old plugin, try using another version of jekyll-language-plugin if you can. Thanks.