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

Calendar and tag pages without .html aren't rendered within layout automatically #375

Open
a2ikm opened this issue Jan 21, 2020 · 1 comment

Comments

@a2ikm
Copy link

a2ikm commented Jan 21, 2020

Expected behaviour

Even if year_link, month_link, day_link and tag_link don't end with .html, their pages are rendered within layout automatically like article pages.

Actual behaviour

These calendar and tag pages are not rendered within layout.
If layout: some_layout_name option is specified in their templates, they are rendered within layout.

I guess, article pages inherit blog_options.layout at here, but calendar and tag pages don't. Additionally, pages without .html don't match with extensions_with_layout at here. So explicit layout option is required.

Steps to reproduce the problem

I uploaded a sample project to reproduce it at https://github.com/a2ikm/middleman-blog-test.
Its config.rb have chages against default like this:

diff --git a/config.rb b/config.rb
index a373af1..a30c7aa 100644
--- a/config.rb
+++ b/config.rb
@@ -24,16 +24,16 @@
   # This will add a prefix to all links, template references and source paths
   # blog.prefix = "blog"
 
-  # blog.permalink = "{year}/{month}/{day}/{title}.html"
+  blog.permalink = "{year}/{month}/{day}/{title}"
   # Matcher for blog source files
   # blog.sources = "{year}-{month}-{day}-{title}.html"
-  # blog.taglink = "tags/{tag}.html"
+  blog.taglink = "tags/{tag}"
   # 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.year_link = "{year}"
+  blog.month_link = "{year}/{month}"
+  blog.day_link = "{year}/{month}/{day}"
   # blog.default_extension = ".markdown"
 
   blog.tag_template = "tag.html"

Additional information

  • Ruby version: 2.6.5
  • Middleman version: 4.3.5
  • Middleman Blog version: 4.0.3
  • OS version: OS X 10.14
@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

2 participants