You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is different from the current behavior which only allows setting the permalink on regular templates but not layout templates (if I’m not mistaken). Currently, you would need to set the same permalink pattern (i.e. permalink: "{{ page.fileSlug }}/index.html") on all templates to achieve the above.
The text was updated successfully, but these errors were encountered:
kleinfreund
changed the title
Feature: Specify permalink in template layout
Feature: Specify permalink pattern in template layouts
May 12, 2018
I want to specify a permalink pattern in a template layout like this:
layout.njk:
Then, templates in
./content
using the layout template from above (i.e.layout.njk
) would all end up with transformed permalinks:This is different from the current behavior which only allows setting the permalink on regular templates but not layout templates (if I’m not mistaken). Currently, you would need to set the same permalink pattern (i.e.
permalink: "{{ page.fileSlug }}/index.html"
) on all templates to achieve the above.The text was updated successfully, but these errors were encountered: