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
{{ message }}
Repository navigation
As blogger I want to be able to categorize my posts, so that my posts be organized. #5
There are a few things we need in order to get this working:
the code for generating the pages for each category. the snippet below will generate a directory for each category name with an index.html file within it:
(weblorg-route
:name"categories":input-pattern"posts/*.org":input-aggregate#'weblorg-input-aggregate-by-category;; also look at weblorg-input-aggregate-by-category-desc:template"category.html":output"blog/{{ name }}/index.html":url"/blog/{{ name }}")
;; the template will link to the `posts` route with `url_for`.
(weblorg-route
:name"posts":input-pattern"posts/*.org":template"post.html":output"blog/{{ slug }}.html":url"/blog/{{ slug }}.html")
The category.html template present in the templates path (we don't have any themes shipping this file yet 😢)
Activity
clarete commentedon Jan 3, 2021
There are a few things we need in order to get this working:
the code for generating the pages for each category. the snippet below will generate a directory for each category name with an
index.htmlfile within it:The
category.htmltemplate present in thetemplatespath (we don't have any themes shipping this file yet 😢)