tapestry-cloud / tapestry

PHP static site generator using the plates template system
https://www.tapestry.cloud/
MIT License
32 stars 1 forks source link

Add Category permalink template variable arguments #241

Closed carbontwelve closed 7 years ago

carbontwelve commented 7 years ago

Currently when the category permalink template variable is used e.g. 'blog/{category}/{slug}.html' when a file has more than one category they are concatenated into the url like so: blog/category-a/category-b/filename.html.

The number of categories included in the concatenation should be selectable via a template variable argument much in the same way as Laravel does for validation.

For example {category,1} would limit to just one category being used, while {category,9} would limit up to nine.

carbontwelve commented 7 years ago

This is completed by #242