Add a first version of tags

parent 8572697f
Pipeline #5826 passed with stage
in 9 minutes
......@@ -244,6 +244,13 @@
(perun/rss :filterer #(is-of-type? % "posts")
:filename "rss.xml")
;; XXX: Tags atm are not enforced to be valid URLs
;; This could be fixed by writing proper tags in the posts or by
;; building a new feature within Perun.
(perun/tags :renderer 'ok.index/render
:filterer #(is-of-type? % "posts")
:out-dir "public/tags")
;;(notify)
;;(print-meta)
(sass)
......
......@@ -7,7 +7,6 @@ tags:
- coding
- ctags
- exuberant ctags
- id- e
- minibuf
- omni completion
- pep 8
......
......@@ -110,7 +110,9 @@
[:ul {:itemprop "keywords"}
(category-section post)
(for [tag (separated-tags post)]
[:li.tag tag])]])
[:li.tag
[:a {:href (str "/tags/" tag ".html")}
tag]])]])
(defn full-post [post]
[:div
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment