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"
date: 2019-06-24
tags:
- v
- security
- release
---
# OVE-20190623-0001

View File

@ -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

View File

@ -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

View File

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

View File

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

View File

@ -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

View File

@ -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

View File

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

View File

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

View File

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

View File

@ -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

View File

@ -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)

View File

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

View File

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

View File

@ -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

View File

@ -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

View File

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

View File

@ -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

View File

@ -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

View File

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

View File

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

View File

@ -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

View File

@ -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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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()
}

View File

@ -59,6 +59,10 @@
<p>Series: <a href="/blog/series/{{ .Series }}">{{ .Series }}</a></p>
{{ end }}
{{ if ne .Tags "" }}
<p>Tags:{{.Tags}}</p>
{{ end }}
<script>
// 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";
{{ if ne .Series "" }}hashtags += " #{{ .Series }}";{{ end }}
{{ if ne .Tags "" }}hashtags += "{{ .Tags }}";{{ end }}
// Tagging users, such as offical accounts or the author of the post
var author = "@cadey@mst3k.interlinked.me";