diff --git a/posts/dyalog-apl-competition-2020-phase-1.org b/posts/dyalog-apl-competition-2020-phase-1.org index f6db812..a9185ba 100644 --- a/posts/dyalog-apl-competition-2020-phase-1.org +++ b/posts/dyalog-apl-competition-2020-phase-1.org @@ -2,6 +2,7 @@ title: "Dyalog APL Problem Solving Competition 2020 — Phase I" subtitle: "Annotated Solutions" date: 2020-08-02 +tags: programming, apl toc: true --- diff --git a/posts/dyalog-apl-competition-2020-phase-2.org b/posts/dyalog-apl-competition-2020-phase-2.org index 9ac4c3b..eff618a 100644 --- a/posts/dyalog-apl-competition-2020-phase-2.org +++ b/posts/dyalog-apl-competition-2020-phase-2.org @@ -2,6 +2,7 @@ title: "Dyalog APL Problem Solving Competition 2020 — Phase II" subtitle: "Annotated Solutions" date: 2020-08-02 +tags: programming, apl toc: true --- diff --git a/posts/ginibre-ensemble.org b/posts/ginibre-ensemble.org index f5f993a..0c1b3fb 100644 --- a/posts/ginibre-ensemble.org +++ b/posts/ginibre-ensemble.org @@ -1,6 +1,7 @@ --- title: "Random matrices from the Ginibre ensemble" date: 2019-03-20 +tags: maths, linear algebra, statistics, julia, visualization --- ** Ginibre ensemble and its properties diff --git a/posts/hierarchical-optimal-transport-for-document-classification.org b/posts/hierarchical-optimal-transport-for-document-classification.org index b0eac1e..143d148 100644 --- a/posts/hierarchical-optimal-transport-for-document-classification.org +++ b/posts/hierarchical-optimal-transport-for-document-classification.org @@ -1,6 +1,7 @@ --- title: "Reading notes: Hierarchical Optimal Transport for Document Representation" date: 2020-04-05 +tags: paper, machine learning, optimal transport, nlp toc: true --- diff --git a/posts/iclr-2020-notes.org b/posts/iclr-2020-notes.org index 673c575..2ee570c 100644 --- a/posts/iclr-2020-notes.org +++ b/posts/iclr-2020-notes.org @@ -1,6 +1,7 @@ --- title: "ICLR 2020 Notes: Speakers and Workshops" date: 2020-05-05 +tags: conference, machine learning, reinforcement learning, nlp toc: true --- diff --git a/posts/ising-apl.org b/posts/ising-apl.org index 7b1ad81..23c252c 100644 --- a/posts/ising-apl.org +++ b/posts/ising-apl.org @@ -2,6 +2,7 @@ title: Ising model simulation in APL date: 2018-03-05 tags: ising simulation montecarlo apl +tags: apl, statistics, visualization toc: true --- diff --git a/posts/ising-model.org b/posts/ising-model.org index 4ee0c32..87c7918 100644 --- a/posts/ising-model.org +++ b/posts/ising-model.org @@ -2,7 +2,7 @@ title: Ising model simulation author: Dimitri Lozeve date: 2018-02-05 -tags: ising visualization simulation montecarlo +tags: statistics, visualization, clojure toc: true --- diff --git a/posts/lie-theory.org b/posts/lie-theory.org index 4958795..a9a0b2b 100644 --- a/posts/lie-theory.org +++ b/posts/lie-theory.org @@ -1,6 +1,7 @@ --- title: "Learning some Lie theory for fun and profit " date: 2020-11-14 +tags: maths, linear algebra, dynamical systems toc: false --- diff --git a/posts/lsystems.org b/posts/lsystems.org index a6f16e7..5058562 100644 --- a/posts/lsystems.org +++ b/posts/lsystems.org @@ -2,7 +2,7 @@ title: Generating and representing L-systems author: Dimitri Lozeve date: 2018-01-18 -tags: lsystems visualization algorithms haskell +tags: visualization, haskell toc: true --- diff --git a/posts/online-analysis-of-medical-time-series.org b/posts/online-analysis-of-medical-time-series.org index b1def3b..c21fef2 100644 --- a/posts/online-analysis-of-medical-time-series.org +++ b/posts/online-analysis-of-medical-time-series.org @@ -1,6 +1,7 @@ --- title: "Online Analysis of Medical Time Series" date: 2020-11-17 +tags: paper, statistics, medical, time series toc: false --- diff --git a/posts/operations-research-references.org b/posts/operations-research-references.org index 3cf6ea7..fd0194c 100644 --- a/posts/operations-research-references.org +++ b/posts/operations-research-references.org @@ -1,6 +1,7 @@ --- title: "Operations Research and Optimization: where to start?" date: 2020-05-27 +tags: maths, operations research, optimization, optimal transport toc: true --- diff --git a/posts/peano.org b/posts/peano.org index 4dd4159..17a45f0 100644 --- a/posts/peano.org +++ b/posts/peano.org @@ -1,6 +1,7 @@ --- title: "Peano Axioms" date: 2019-03-18 +tags: maths, foundations toc: true --- diff --git a/posts/quaternions.org b/posts/quaternions.org index 9b0eb5f..3be2c84 100644 --- a/posts/quaternions.org +++ b/posts/quaternions.org @@ -1,6 +1,7 @@ --- title: "Quaternions: what are they good for?" date: 2020-11-09 +tags: maths, dynamical systems toc: false --- diff --git a/posts/reinforcement-learning-1.org b/posts/reinforcement-learning-1.org index cb3e863..bbb6420 100644 --- a/posts/reinforcement-learning-1.org +++ b/posts/reinforcement-learning-1.org @@ -1,6 +1,7 @@ --- title: "Quick Notes on Reinforcement Learning" date: 2018-11-21 +tags: machine learning, reinforcement learning --- * Introduction diff --git a/posts/self-learning-chatbots-destygo.org b/posts/self-learning-chatbots-destygo.org index d51a012..5bdb499 100644 --- a/posts/self-learning-chatbots-destygo.org +++ b/posts/self-learning-chatbots-destygo.org @@ -1,6 +1,7 @@ --- title: "Mindsay: Towards Self-Learning Chatbots" date: 2019-04-06 +tags: chatbots, nlp, machine learning, reinforcement learning --- Last week I made a presentation at the [[https://www.meetup.com/Paris-NLP/][Paris NLP Meetup]], on how we diff --git a/site.hs b/site.hs index e1aba74..9366a87 100644 --- a/site.hs +++ b/site.hs @@ -42,6 +42,22 @@ main = hakyll $ do match "csl/*" $ compile cslCompiler + tags <- buildTags "posts/*" (fromCapture "tags/*.html") + + tagsRules tags $ \tag pattern -> do + let title = "Posts tagged \"" ++ tag ++ "\"" + route idRoute + compile $ do + posts <- recentFirst =<< loadAll pattern + let ctx = constField "title" title + <> listField "posts" (postCtxWithTags tags) (return posts) + <> defaultContext + + makeItem "" + >>= loadAndApplyTemplate "templates/tag.html" ctx + >>= loadAndApplyTemplate "templates/default.html" ctx + >>= relativizeUrls + match "posts/*" $ do route $ setExtension "html" compile $ do @@ -49,9 +65,9 @@ main = hakyll $ do toc <- getMetadataField underlying "toc" customPandocCompiler (toc == Just "yes" || toc == Just "true") >>= return . fmap demoteHeaders - >>= loadAndApplyTemplate "templates/post.html" postCtx + >>= loadAndApplyTemplate "templates/post.html" (postCtxWithTags tags) >>= saveSnapshot "content" - >>= loadAndApplyTemplate "templates/default.html" postCtx + >>= loadAndApplyTemplate "templates/default.html" (postCtxWithTags tags) >>= relativizeUrls match (fromList ["contact.org", "cv.org", "skills.org", "projects.org"]) $ do @@ -114,6 +130,9 @@ postCtx = dateField "date" "%B %e, %Y" `mappend` defaultContext +postCtxWithTags :: Tags -> Context String +postCtxWithTags tags = tagsField "tags" tags <> postCtx + feedCtx :: Context String feedCtx = postCtx <> bodyField "description" diff --git a/templates/default.html b/templates/default.html index 123b020..42d006e 100644 --- a/templates/default.html +++ b/templates/default.html @@ -44,6 +44,9 @@
$endif$ $endif$ + $if(tags)$ + + $endif$ $endif$ diff --git a/templates/tag.html b/templates/tag.html new file mode 100644 index 0000000..58ec89e --- /dev/null +++ b/templates/tag.html @@ -0,0 +1 @@ +$partial("templates/post-list.html")$