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

{lang} variable not working inside custom collection link #348

Open
passatgt opened this issue Jul 11, 2017 · 1 comment
Open

{lang} variable not working inside custom collection link #348

passatgt opened this issue Jul 11, 2017 · 1 comment

Comments

@passatgt
Copy link

passatgt commented Jul 11, 2017

Expected behaviour

The following code should generate category archive pages for every language:
localhost:4567/en/category
localhost:4567/hu/category

Actual behaviour

The {lang} variable is not parsed at blog.custom_collections.category.link, so i get category archives without the proper locale

Steps to reproduce the problem

activate :blog do |blog|
  blog.sources = "articles/{lang}/{year}-{month}-{day}-{title}.html"
  blog.permalink = "{lang}/articles/{category}/{title}.html"
  blog.layout = "article"
  blog.custom_collections = {
    category: {
      link: '{lang}/{category}.html',
      template: 'category.html'
    }
  }
end

With two files located in:
source/articles/en/2017-01-01-title-en.html.markdown
source/articles/hu/2017-01-01-title-hu.html.markdown

And both files include category:Something in frontmatter

Additional information

  • Ruby version: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
  • Middleman version: ~> 4.2
  • Middleman Blog version: 4.0.2
  • OS version: macOS 10.12.4
@github-actions github-actions bot added the Stale label Apr 12, 2024
@markets
Copy link
Member

markets commented Apr 15, 2024

ℹ️ This issue is stale because it has been open for more than 90 days with no activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot removed the Stale label Oct 31, 2024
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

No branches or pull requests

2 participants