From 5e8bdd702080701109e7e506c73f4793cdc47a78 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 12 Sep 2019 22:41:07 +0000 Subject: [PATCH] tagging support --- blog/OVE-20190623-0001.md | 4 ++++ ...ter-to-those-that-bullied-me-2018-06-16.markdown | 2 ++ blog/atom-as-vim-2014-11-18.markdown | 5 ++++- blog/beauty-in-ugly-2018-04-23.markdown | 4 +++- blog/beego-2014-11-28.markdown | 3 +++ blog/brain-fmri-to-3d-model-2019-08-23.markdown | 3 +++ blog/career-advice-2019-06-18.markdown | 2 ++ ...cinemaquestria-orchestration-2015-03-13.markdown | 2 ++ blog/coding-on-an-ipad-2018-04-14-2018.markdown | 4 +++- blog/coming-out-2015-12-01.markdown | 2 ++ blog/crazy-experiment-2017-01-09.markdown | 3 +++ blog/creators-code-2018-09-18.markdown | 3 +++ ...cation-notice-elemental-ircd-2019-02-11.markdown | 2 ++ blog/dev-2014-10-24.markdown | 2 ++ blog/farewell-email-heroku-2019-03-08.markdown | 3 +++ ...-from-nim-for-fun-and-profit-2015-12-20.markdown | 4 ++++ blog/h-language-2019-06-30.markdown | 3 +++ blog/how-send-email-nim-2019-08-28.markdown | 3 +++ blog/land-1-syscalls-file-io-2018-06-18.markdown | 2 ++ blog/let-it-snow-2018-12-17.markdown | 2 ++ blog/life-update-2019-05-16.markdown | 4 +++- blog/lokahi-2018-02-08.markdown | 5 +++++ blog/mr-beast-postmodern-gold-2019-06-05.markdown | 4 ++++ blog/rss-feed-generation-2017-03-29.markdown | 3 +++ blog/sorting-time-2018-08-26.markdown | 4 ++++ blog/the-cult-of-kubernetes-2019-09-07.markdown | 4 ++++ blog/v-vaporware-2019-06-23.markdown | 3 +++ ...ebassembly-talk-video-posted-2019-08-15.markdown | 2 ++ cmd/site/html.go | 13 ++++++++++++- templates/blogpost.html | 5 +++++ 30 files changed, 100 insertions(+), 5 deletions(-) diff --git a/blog/OVE-20190623-0001.md b/blog/OVE-20190623-0001.md index 2817f92..62ed4dd 100644 --- a/blog/OVE-20190623-0001.md +++ b/blog/OVE-20190623-0001.md @@ -1,6 +1,10 @@ --- title: "OVE-20190623-0001" date: 2019-06-24 +tags: + - v + - security + - release --- # OVE-20190623-0001 diff --git a/blog/a-letter-to-those-that-bullied-me-2018-06-16.markdown b/blog/a-letter-to-those-that-bullied-me-2018-06-16.markdown index 4f50591..7ef0276 100644 --- a/blog/a-letter-to-those-that-bullied-me-2018-06-16.markdown +++ b/blog/a-letter-to-those-that-bullied-me-2018-06-16.markdown @@ -2,6 +2,8 @@ title: A Letter to Those That Bullied Me date: 2018-06-16 for: Elizabeth +tags: + - offmychest --- # A Letter to Those Who Bullied Me diff --git a/blog/atom-as-vim-2014-11-18.markdown b/blog/atom-as-vim-2014-11-18.markdown index 87749ad..a4cf9dd 100644 --- a/blog/atom-as-vim-2014-11-18.markdown +++ b/blog/atom-as-vim-2014-11-18.markdown @@ -1,7 +1,10 @@ --- title: My Experience with Atom as A Vim User date: 2014-11-18 -from: medium +series: medium-archive +tags: + - atom + - vim --- My Experience with Atom as A Vim User diff --git a/blog/beauty-in-ugly-2018-04-23.markdown b/blog/beauty-in-ugly-2018-04-23.markdown index 1ead059..2c57ede 100644 --- a/blog/beauty-in-ugly-2018-04-23.markdown +++ b/blog/beauty-in-ugly-2018-04-23.markdown @@ -2,6 +2,8 @@ title: The Beautiful in the Ugly date: 2018-04-23 for: Silver +tags: + - shell --- # The Beautiful in the Ugly @@ -85,4 +87,4 @@ function deploy { } $* -``` \ No newline at end of file +``` diff --git a/blog/beego-2014-11-28.markdown b/blog/beego-2014-11-28.markdown index 4e950c0..1d03cc2 100644 --- a/blog/beego-2014-11-28.markdown +++ b/blog/beego-2014-11-28.markdown @@ -1,6 +1,9 @@ --- title: Web Application Development with Beego date: 2014-11-28 +tags: + - go + - beego --- Web Application Development with Beego diff --git a/blog/brain-fmri-to-3d-model-2019-08-23.markdown b/blog/brain-fmri-to-3d-model-2019-08-23.markdown index 723ec7d..52d11ec 100644 --- a/blog/brain-fmri-to-3d-model-2019-08-23.markdown +++ b/blog/brain-fmri-to-3d-model-2019-08-23.markdown @@ -2,6 +2,9 @@ title: How I Converted my Brain fMRI to a 3D Model date: 2019-08-23 series: howto +tags: + - python + - blender --- # How I Converted my Brain fMRI to a 3D Model diff --git a/blog/career-advice-2019-06-18.markdown b/blog/career-advice-2019-06-18.markdown index a8c13cc..f73b8a3 100644 --- a/blog/career-advice-2019-06-18.markdown +++ b/blog/career-advice-2019-06-18.markdown @@ -1,6 +1,8 @@ --- title: Advice to People Nurturing a Career in Computering date: 2019-06-18 +tags: + - career --- # Advice to People Nurturing a Career in Computering diff --git a/blog/cinemaquestria-orchestration-2015-03-13.markdown b/blog/cinemaquestria-orchestration-2015-03-13.markdown index 9a16bfb..4508c49 100644 --- a/blog/cinemaquestria-orchestration-2015-03-13.markdown +++ b/blog/cinemaquestria-orchestration-2015-03-13.markdown @@ -1,6 +1,8 @@ --- title: CinemaQuestria Orchestration date: 2015-03-13 +tags: + - cinemaquestria --- CinemaQuestria Orchestration diff --git a/blog/coding-on-an-ipad-2018-04-14-2018.markdown b/blog/coding-on-an-ipad-2018-04-14-2018.markdown index bbb14c7..51a6fce 100644 --- a/blog/coding-on-an-ipad-2018-04-14-2018.markdown +++ b/blog/coding-on-an-ipad-2018-04-14-2018.markdown @@ -1,6 +1,8 @@ --- title: Coding on an iPad date: 2018-04-14 +tags: + - ipad --- # Coding on an iPad @@ -130,4 +132,4 @@ You just do thing and it does thing. [texastic]: https://itunes.apple.com/us/app/textastic-code-editor-6/id1049254261?mt=8 [workingcopy]: https://itunes.apple.com/us/app/working-copy/id896694807?mt=8 [workflow]: https://www.workflow.is -[ceruleiscloud]: https://elliot.pro/blog/working-in-the-cloud.html \ No newline at end of file +[ceruleiscloud]: https://elliot.pro/blog/working-in-the-cloud.html diff --git a/blog/coming-out-2015-12-01.markdown b/blog/coming-out-2015-12-01.markdown index 115ca6b..5731096 100644 --- a/blog/coming-out-2015-12-01.markdown +++ b/blog/coming-out-2015-12-01.markdown @@ -1,6 +1,8 @@ --- title: Coming Out date: 2015-12-01 +tags: + - personal --- Coming Out diff --git a/blog/crazy-experiment-2017-01-09.markdown b/blog/crazy-experiment-2017-01-09.markdown index 0a5b95b..c80ac44 100644 --- a/blog/crazy-experiment-2017-01-09.markdown +++ b/blog/crazy-experiment-2017-01-09.markdown @@ -1,6 +1,9 @@ --- title: "Crazy Experiment: Ship the Frontend as an asar document" date: "2017-01-09" +tags: + - asar + - frontend --- Crazy Experiment: Ship the Frontend as an asar document diff --git a/blog/creators-code-2018-09-18.markdown b/blog/creators-code-2018-09-18.markdown index ac943e6..4ba62d7 100644 --- a/blog/creators-code-2018-09-18.markdown +++ b/blog/creators-code-2018-09-18.markdown @@ -2,6 +2,9 @@ title: "Creator's Code" author: Christine Dodrill date: 2018-09-17 +tags: + - release + - coc --- # [Creator's Code](https://github.com/Xe/creators-code) diff --git a/blog/deprecation-notice-elemental-ircd-2019-02-11.markdown b/blog/deprecation-notice-elemental-ircd-2019-02-11.markdown index 067c472..4c343f2 100644 --- a/blog/deprecation-notice-elemental-ircd-2019-02-11.markdown +++ b/blog/deprecation-notice-elemental-ircd-2019-02-11.markdown @@ -1,6 +1,8 @@ --- title: "Deprecation Notice: Elemental-IRCd" date: 2019-02-11 +tags: + - release --- # Deprecation Notice: Elemental-IRCd diff --git a/blog/dev-2014-10-24.markdown b/blog/dev-2014-10-24.markdown index 26232f6..22da4fb 100644 --- a/blog/dev-2014-10-24.markdown +++ b/blog/dev-2014-10-24.markdown @@ -1,6 +1,8 @@ --- title: Instant Development Environments in Docker date: 2014-10-24 +tags: + - release --- Instant Development Environments in Docker diff --git a/blog/farewell-email-heroku-2019-03-08.markdown b/blog/farewell-email-heroku-2019-03-08.markdown index ca2928f..b83373e 100644 --- a/blog/farewell-email-heroku-2019-03-08.markdown +++ b/blog/farewell-email-heroku-2019-03-08.markdown @@ -3,6 +3,9 @@ title: "Farewell Email - Heroku" date: 2019-03-08 for: Herokai subject: May our paths cross again +tags: + - personal + - heroku --- # Farewell Email - Heroku diff --git a/blog/ffi-ing-golang-from-nim-for-fun-and-profit-2015-12-20.markdown b/blog/ffi-ing-golang-from-nim-for-fun-and-profit-2015-12-20.markdown index 0397ee2..c8753b7 100644 --- a/blog/ffi-ing-golang-from-nim-for-fun-and-profit-2015-12-20.markdown +++ b/blog/ffi-ing-golang-from-nim-for-fun-and-profit-2015-12-20.markdown @@ -1,6 +1,10 @@ --- title: FFI-ing Go from Nim for Fun and Profit date: 2015-12-20 +series: howto +tags: + - go + - nim --- FFI-ing Golang from Nim for Fun and Profit diff --git a/blog/h-language-2019-06-30.markdown b/blog/h-language-2019-06-30.markdown index 5968783..916b664 100644 --- a/blog/h-language-2019-06-30.markdown +++ b/blog/h-language-2019-06-30.markdown @@ -1,6 +1,9 @@ --- title: The h Programming Language date: 2019-06-30 +tags: + - wasm + - release --- # The h Programming Language diff --git a/blog/how-send-email-nim-2019-08-28.markdown b/blog/how-send-email-nim-2019-08-28.markdown index bd62578..6757447 100644 --- a/blog/how-send-email-nim-2019-08-28.markdown +++ b/blog/how-send-email-nim-2019-08-28.markdown @@ -2,6 +2,9 @@ title: How to Send Email with Nim date: 2019-08-28 series: howto +tags: + - nim + - email --- # How to Send Email with Nim diff --git a/blog/land-1-syscalls-file-io-2018-06-18.markdown b/blog/land-1-syscalls-file-io-2018-06-18.markdown index c110543..3190789 100644 --- a/blog/land-1-syscalls-file-io-2018-06-18.markdown +++ b/blog/land-1-syscalls-file-io-2018-06-18.markdown @@ -2,6 +2,8 @@ title: "Land 1: Syscalls & File I/O" date: 2018-06-18 series: olin +tags: + - wasm --- # Land 1: Syscalls & File I/O diff --git a/blog/let-it-snow-2018-12-17.markdown b/blog/let-it-snow-2018-12-17.markdown index e7bce00..f8f86f5 100644 --- a/blog/let-it-snow-2018-12-17.markdown +++ b/blog/let-it-snow-2018-12-17.markdown @@ -2,6 +2,8 @@ title: Let it Snow date: 2018-12-17 for: the lols +tags: + - fluff --- # Let it Snow diff --git a/blog/life-update-2019-05-16.markdown b/blog/life-update-2019-05-16.markdown index 04e0318..b604395 100644 --- a/blog/life-update-2019-05-16.markdown +++ b/blog/life-update-2019-05-16.markdown @@ -2,6 +2,8 @@ title: "Life Update - Montréal" date: "2019-05-16" for: "Vic" +tags: + - personal --- # Life Update - Montréal @@ -40,4 +42,4 @@ Something of note is that this is the first time I've moved without having to ge Things are looking up for me. I'm really happy. My new job is great. The people I work with are great. I'm working towards French fluency (hopefully going to be writing blogposts in French by this time two years from now at most). Everything is looking up from here, and I'm so happy for it. -Can't wait to see what's next! \ No newline at end of file +Can't wait to see what's next! diff --git a/blog/lokahi-2018-02-08.markdown b/blog/lokahi-2018-02-08.markdown index d538f8c..c7c7c9e 100644 --- a/blog/lokahi-2018-02-08.markdown +++ b/blog/lokahi-2018-02-08.markdown @@ -2,6 +2,11 @@ title: Introducing Lokahi date: 2018-02-08 github_issue: https://github.com/Xe/lokahi/issues/15 +tags: + - hackweek + - release + - go + - monitoring --- # Introducing Lokahi diff --git a/blog/mr-beast-postmodern-gold-2019-06-05.markdown b/blog/mr-beast-postmodern-gold-2019-06-05.markdown index 086ca7f..5c20d8c 100644 --- a/blog/mr-beast-postmodern-gold-2019-06-05.markdown +++ b/blog/mr-beast-postmodern-gold-2019-06-05.markdown @@ -1,6 +1,10 @@ --- title: MrBeast is Postmodern Gold date: 2019-06-05 +tags: + - mrbeast + - postmodern + - youtube --- Author's note: I've been going through a lot lately. This Monday I was in the emergency room after having a panic attack. I have a folder of writing in my notes that I use to help work off steam. I don't know why, but writing this article really helped me feel better. I can only hope it helps make your day feel better too. diff --git a/blog/rss-feed-generation-2017-03-29.markdown b/blog/rss-feed-generation-2017-03-29.markdown index ec4d30a..39838f8 100644 --- a/blog/rss-feed-generation-2017-03-29.markdown +++ b/blog/rss-feed-generation-2017-03-29.markdown @@ -1,6 +1,9 @@ --- title: "RSS Feed Generation" date: "2017-03-29" +tags: + - rss + - atom --- RSS Feed Generation diff --git a/blog/sorting-time-2018-08-26.markdown b/blog/sorting-time-2018-08-26.markdown index 01dd24a..1800a34 100644 --- a/blog/sorting-time-2018-08-26.markdown +++ b/blog/sorting-time-2018-08-26.markdown @@ -1,6 +1,10 @@ --- title: Sorting Time date: 2018-08-26 +tags: + - time + - javascript + - tale-of-woe --- # Sorting Time diff --git a/blog/the-cult-of-kubernetes-2019-09-07.markdown b/blog/the-cult-of-kubernetes-2019-09-07.markdown index 38baacb..0e8f9cd 100644 --- a/blog/the-cult-of-kubernetes-2019-09-07.markdown +++ b/blog/the-cult-of-kubernetes-2019-09-07.markdown @@ -2,6 +2,10 @@ title: The Cult of Kubernetes date: 2019-09-07 series: howto +tags: + - kubernetes + - digitalocean + - githubactions --- # The Cult of Kubernetes diff --git a/blog/v-vaporware-2019-06-23.markdown b/blog/v-vaporware-2019-06-23.markdown index 183a225..7cc1dc0 100644 --- a/blog/v-vaporware-2019-06-23.markdown +++ b/blog/v-vaporware-2019-06-23.markdown @@ -1,6 +1,9 @@ --- title: V is for Vaporware date: 2019-06-23 +tags: + - v + - rant --- # V is for Vaporware diff --git a/blog/webassembly-talk-video-posted-2019-08-15.markdown b/blog/webassembly-talk-video-posted-2019-08-15.markdown index 9a25607..2acce16 100644 --- a/blog/webassembly-talk-video-posted-2019-08-15.markdown +++ b/blog/webassembly-talk-video-posted-2019-08-15.markdown @@ -1,6 +1,8 @@ --- title: WebAssembly Talk Video Posted date: 2019-08-15 +tags: + - wasm --- # WebAssembly Talk Video Posted diff --git a/cmd/site/html.go b/cmd/site/html.go index f3f2a6b..6a8c2a8 100644 --- a/cmd/site/html.go +++ b/cmd/site/html.go @@ -6,6 +6,7 @@ import ( "html/template" "net/http" "path/filepath" + "strings" "time" "christine.website/internal" @@ -164,6 +165,14 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { return } + var tags string + + if len(p.Tags) != 0 { + for _, t := range p.Tags { + tags = tags + " #" + strings.Replace(t, "-", "") + } + } + const dateFormat = `2006-01-02` s.renderTemplatePage("blogpost.html", struct { Title string @@ -171,12 +180,14 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) { BodyHTML template.HTML Date string Series string + Tags string }{ Title: p.Title, Link: p.Link, BodyHTML: p.BodyHTML, Date: p.Date.Format(dateFormat), - Series: p.Series, + Series: strings.ReplaceAll(p.Series, "-", ""), + Tags: tags, }).ServeHTTP(w, r) postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc() } diff --git a/templates/blogpost.html b/templates/blogpost.html index 8052ad3..00cd399 100644 --- a/templates/blogpost.html +++ b/templates/blogpost.html @@ -59,6 +59,10 @@

Series: {{ .Series }}

{{ end }} +{{ if ne .Tags "" }} +

Tags:{{.Tags}}

+{{ end }} +