-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: add tags to headlines + tag page. (#26)
* Feat: add tags to headlines + tag page. * Test: fix tests and add tests for tags. * Add: Improve base css and tags. * Docs: add changelog.
- Loading branch information
Showing
23 changed files
with
272 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
(defn tags | ||
[] | ||
[:h1 "Tags"]) | ||
[{:keys [site-tags partials]}] | ||
(let [{:keys [head]} partials] | ||
(head | ||
[:body | ||
[:main | ||
[:article | ||
[:div.content | ||
[:h1 "Tags"] | ||
(for [[tag-name tags] site-tags] | ||
[:div | ||
[:h2 {:id tag-name :class "firn-tag-heading"} tag-name] | ||
(for [tag tags] | ||
[:div | ||
[:a {:href (tag :headline-link)} | ||
(tag :from-file) " - " | ||
(tag :from-headline)]])])]]]]))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
151 changes: 0 additions & 151 deletions
151
clojure/resources/firn/_firn_starter/static/css/main.css
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.