jekyll-paginate-v2 icon indicating copy to clipboard operation
jekyll-paginate-v2 copied to clipboard

Added :language macro for frontmatter YML

Open z3nth10n opened this issue 5 years ago • 3 comments

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.

z3nth10n avatar Mar 20 '19 04:03 z3nth10n

you can use this plugin jekyll-multiple-languages-plugin? the paginate-v2 locales are inconvenient and very limited

antwal avatar May 27 '19 11:05 antwal

Needs to be rebased due to forced backtracking in repo

sverrirs avatar Feb 08 '20 00:02 sverrirs

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.

antwal avatar Sep 19 '20 14:09 antwal