tagging support

This commit is contained in:
Cadey Ratio 2019-09-12 22:41:07 +00:00
parent 1740a44b82
commit 5e8bdd7020
30 changed files with 100 additions and 5 deletions

View File

@ -1,6 +1,10 @@
--- ---
title: "OVE-20190623-0001" title: "OVE-20190623-0001"
date: 2019-06-24 date: 2019-06-24
tags:
- v
- security
- release
--- ---
# OVE-20190623-0001 # OVE-20190623-0001

View File

@ -2,6 +2,8 @@
title: A Letter to Those That Bullied Me title: A Letter to Those That Bullied Me
date: 2018-06-16 date: 2018-06-16
for: Elizabeth for: Elizabeth
tags:
- offmychest
--- ---
# A Letter to Those Who Bullied Me # A Letter to Those Who Bullied Me

View File

@ -1,7 +1,10 @@
--- ---
title: My Experience with Atom as A Vim User title: My Experience with Atom as A Vim User
date: 2014-11-18 date: 2014-11-18
from: medium series: medium-archive
tags:
- atom
- vim
--- ---
My Experience with Atom as A Vim User My Experience with Atom as A Vim User

View File

@ -2,6 +2,8 @@
title: The Beautiful in the Ugly title: The Beautiful in the Ugly
date: 2018-04-23 date: 2018-04-23
for: Silver for: Silver
tags:
- shell
--- ---
# The Beautiful in the Ugly # The Beautiful in the Ugly

View File

@ -1,6 +1,9 @@
--- ---
title: Web Application Development with Beego title: Web Application Development with Beego
date: 2014-11-28 date: 2014-11-28
tags:
- go
- beego
--- ---
Web Application Development with Beego Web Application Development with Beego

View File

@ -2,6 +2,9 @@
title: How I Converted my Brain fMRI to a 3D Model title: How I Converted my Brain fMRI to a 3D Model
date: 2019-08-23 date: 2019-08-23
series: howto series: howto
tags:
- python
- blender
--- ---
# How I Converted my Brain fMRI to a 3D Model # How I Converted my Brain fMRI to a 3D Model

View File

@ -1,6 +1,8 @@
--- ---
title: Advice to People Nurturing a Career in Computering title: Advice to People Nurturing a Career in Computering
date: 2019-06-18 date: 2019-06-18
tags:
- career
--- ---
# Advice to People Nurturing a Career in Computering # Advice to People Nurturing a Career in Computering

View File

@ -1,6 +1,8 @@
--- ---
title: CinemaQuestria Orchestration title: CinemaQuestria Orchestration
date: 2015-03-13 date: 2015-03-13
tags:
- cinemaquestria
--- ---
CinemaQuestria Orchestration CinemaQuestria Orchestration

View File

@ -1,6 +1,8 @@
--- ---
title: Coding on an iPad title: Coding on an iPad
date: 2018-04-14 date: 2018-04-14
tags:
- ipad
--- ---
# Coding on an iPad # Coding on an iPad

View File

@ -1,6 +1,8 @@
--- ---
title: Coming Out title: Coming Out
date: 2015-12-01 date: 2015-12-01
tags:
- personal
--- ---
Coming Out Coming Out

View File

@ -1,6 +1,9 @@
--- ---
title: "Crazy Experiment: Ship the Frontend as an asar document" title: "Crazy Experiment: Ship the Frontend as an asar document"
date: "2017-01-09" date: "2017-01-09"
tags:
- asar
- frontend
--- ---
Crazy Experiment: Ship the Frontend as an asar document Crazy Experiment: Ship the Frontend as an asar document

View File

@ -2,6 +2,9 @@
title: "Creator's Code" title: "Creator's Code"
author: Christine Dodrill author: Christine Dodrill
date: 2018-09-17 date: 2018-09-17
tags:
- release
- coc
--- ---
# [Creator's Code](https://github.com/Xe/creators-code) # [Creator's Code](https://github.com/Xe/creators-code)

View File

@ -1,6 +1,8 @@
--- ---
title: "Deprecation Notice: Elemental-IRCd" title: "Deprecation Notice: Elemental-IRCd"
date: 2019-02-11 date: 2019-02-11
tags:
- release
--- ---
# Deprecation Notice: Elemental-IRCd # Deprecation Notice: Elemental-IRCd

View File

@ -1,6 +1,8 @@
--- ---
title: Instant Development Environments in Docker title: Instant Development Environments in Docker
date: 2014-10-24 date: 2014-10-24
tags:
- release
--- ---
Instant Development Environments in Docker Instant Development Environments in Docker

View File

@ -3,6 +3,9 @@ title: "Farewell Email - Heroku"
date: 2019-03-08 date: 2019-03-08
for: Herokai for: Herokai
subject: May our paths cross again subject: May our paths cross again
tags:
- personal
- heroku
--- ---
# Farewell Email - Heroku # Farewell Email - Heroku

View File

@ -1,6 +1,10 @@
--- ---
title: FFI-ing Go from Nim for Fun and Profit title: FFI-ing Go from Nim for Fun and Profit
date: 2015-12-20 date: 2015-12-20
series: howto
tags:
- go
- nim
--- ---
FFI-ing Golang from Nim for Fun and Profit FFI-ing Golang from Nim for Fun and Profit

View File

@ -1,6 +1,9 @@
--- ---
title: The h Programming Language title: The h Programming Language
date: 2019-06-30 date: 2019-06-30
tags:
- wasm
- release
--- ---
# The h Programming Language # The h Programming Language

View File

@ -2,6 +2,9 @@
title: How to Send Email with Nim title: How to Send Email with Nim
date: 2019-08-28 date: 2019-08-28
series: howto series: howto
tags:
- nim
- email
--- ---
# How to Send Email with Nim # How to Send Email with Nim

View File

@ -2,6 +2,8 @@
title: "Land 1: Syscalls & File I/O" title: "Land 1: Syscalls & File I/O"
date: 2018-06-18 date: 2018-06-18
series: olin series: olin
tags:
- wasm
--- ---
# Land 1: Syscalls & File I/O # Land 1: Syscalls & File I/O

View File

@ -2,6 +2,8 @@
title: Let it Snow title: Let it Snow
date: 2018-12-17 date: 2018-12-17
for: the lols for: the lols
tags:
- fluff
--- ---
# Let it Snow # Let it Snow

View File

@ -2,6 +2,8 @@
title: "Life Update - Montréal" title: "Life Update - Montréal"
date: "2019-05-16" date: "2019-05-16"
for: "Vic" for: "Vic"
tags:
- personal
--- ---
# Life Update - Montréal # Life Update - Montréal

View File

@ -2,6 +2,11 @@
title: Introducing Lokahi title: Introducing Lokahi
date: 2018-02-08 date: 2018-02-08
github_issue: https://github.com/Xe/lokahi/issues/15 github_issue: https://github.com/Xe/lokahi/issues/15
tags:
- hackweek
- release
- go
- monitoring
--- ---
# Introducing Lokahi # Introducing Lokahi

View File

@ -1,6 +1,10 @@
--- ---
title: MrBeast is Postmodern Gold title: MrBeast is Postmodern Gold
date: 2019-06-05 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. 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.

View File

@ -1,6 +1,9 @@
--- ---
title: "RSS Feed Generation" title: "RSS Feed Generation"
date: "2017-03-29" date: "2017-03-29"
tags:
- rss
- atom
--- ---
RSS Feed Generation RSS Feed Generation

View File

@ -1,6 +1,10 @@
--- ---
title: Sorting Time title: Sorting Time
date: 2018-08-26 date: 2018-08-26
tags:
- time
- javascript
- tale-of-woe
--- ---
# Sorting Time # Sorting Time

View File

@ -2,6 +2,10 @@
title: The Cult of Kubernetes title: The Cult of Kubernetes
date: 2019-09-07 date: 2019-09-07
series: howto series: howto
tags:
- kubernetes
- digitalocean
- githubactions
--- ---
# The Cult of Kubernetes # The Cult of Kubernetes

View File

@ -1,6 +1,9 @@
--- ---
title: V is for Vaporware title: V is for Vaporware
date: 2019-06-23 date: 2019-06-23
tags:
- v
- rant
--- ---
# V is for Vaporware # V is for Vaporware

View File

@ -1,6 +1,8 @@
--- ---
title: WebAssembly Talk Video Posted title: WebAssembly Talk Video Posted
date: 2019-08-15 date: 2019-08-15
tags:
- wasm
--- ---
# WebAssembly Talk Video Posted # WebAssembly Talk Video Posted

View File

@ -6,6 +6,7 @@ import (
"html/template" "html/template"
"net/http" "net/http"
"path/filepath" "path/filepath"
"strings"
"time" "time"
"christine.website/internal" "christine.website/internal"
@ -164,6 +165,14 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) {
return return
} }
var tags string
if len(p.Tags) != 0 {
for _, t := range p.Tags {
tags = tags + " #" + strings.Replace(t, "-", "")
}
}
const dateFormat = `2006-01-02` const dateFormat = `2006-01-02`
s.renderTemplatePage("blogpost.html", struct { s.renderTemplatePage("blogpost.html", struct {
Title string Title string
@ -171,12 +180,14 @@ func (s *Site) showPost(w http.ResponseWriter, r *http.Request) {
BodyHTML template.HTML BodyHTML template.HTML
Date string Date string
Series string Series string
Tags string
}{ }{
Title: p.Title, Title: p.Title,
Link: p.Link, Link: p.Link,
BodyHTML: p.BodyHTML, BodyHTML: p.BodyHTML,
Date: p.Date.Format(dateFormat), Date: p.Date.Format(dateFormat),
Series: p.Series, Series: strings.ReplaceAll(p.Series, "-", ""),
Tags: tags,
}).ServeHTTP(w, r) }).ServeHTTP(w, r)
postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc() postView.With(prometheus.Labels{"base": filepath.Base(p.Link)}).Inc()
} }

View File

@ -59,6 +59,10 @@
<p>Series: <a href="/blog/series/{{ .Series }}">{{ .Series }}</a></p> <p>Series: <a href="/blog/series/{{ .Series }}">{{ .Series }}</a></p>
{{ end }} {{ end }}
{{ if ne .Tags "" }}
<p>Tags:{{.Tags}}</p>
{{ end }}
<script> <script>
// The actual function. Set this as an onclick function for your "Share on Mastodon" button // The actual function. Set this as an onclick function for your "Share on Mastodon" button
@ -96,6 +100,7 @@ function share_on_mastodon() {
var hashtags = "#blogpost"; var hashtags = "#blogpost";
{{ if ne .Series "" }}hashtags += " #{{ .Series }}";{{ end }} {{ if ne .Series "" }}hashtags += " #{{ .Series }}";{{ end }}
{{ if ne .Tags "" }}hashtags += "{{ .Tags }}";{{ end }}
// Tagging users, such as offical accounts or the author of the post // Tagging users, such as offical accounts or the author of the post
var author = "@cadey@mst3k.interlinked.me"; var author = "@cadey@mst3k.interlinked.me";