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

How to make paginate work with localize blog? #359

Open
sarunw opened this issue Dec 10, 2017 · 2 comments
Open

How to make paginate work with localize blog? #359

sarunw opened this issue Dec 10, 2017 · 2 comments

Comments

@sarunw
Copy link

sarunw commented Dec 10, 2017

Expected behaviour

page_articles to return paginate based on locale

Actual behaviour

page_articles return every blog

Steps to reproduce the problem

Here are my config

activate :i18n, :mount_at_root => :th # Mount spanish at root instead

activate :blog do |blog|
  # This will add a prefix to all links, template references and source paths
  # blog.prefix = "blog"

  blog.permalink = "{lang}/{title}.html"
  # Matcher for blog source files
  blog.sources = "articles/{lang}/{year}-{month}-{day}-{title}.html"
  blog.taglink = "tag/{tag}.html"
  # blog.layout = "layout"
  # blog.summary_separator = /(READMORE)/
  # blog.summary_length = 250
  # blog.year_link = "{year}.html"
  # blog.month_link = "{year}/{month}.html"
  # blog.day_link = "{year}/{month}/{day}.html"
  # blog.
  default_extension = ".markdown"

  blog.tag_template = "tag.html"
  # blog.calendar_template = "calendar.html"

  # Enable pagination
  blog.paginate = true
  # blog.per_page = 10
  # blog.page_link = "page/{num}"
end

And my dir is like this

source
- articles
  - en
  - th

Additional information

  • Ruby version: 2.4.1
  • Middleman version: 4.2.1
  • Middleman Blog version: 4.0.2
  • OS version: OSX 10.12.6 (16G1036)
@mrtndwrd
Copy link

@sarunw see my comment at #343 to find my rather hacky workaround. Hope it helps you too!

@github-actions github-actions bot added the Stale label Apr 11, 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 30, 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

3 participants