Skip to content
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

Added :language macro for frontmatter YML #159

Open
wants to merge 53 commits into
base: master
Choose a base branch
from

Conversation

z3nth10n
Copy link

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.

ibrado and others added 30 commits February 8, 2018 11:32
Adding note about gitlab in readme
@antwal
Copy link

antwal commented May 27, 2019

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

@sverrirs
Copy link
Owner

sverrirs commented Feb 8, 2020

Needs to be rebased due to forced backtracking in repo

@antwal
Copy link

antwal commented Sep 19, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants