all repos — site @ eae4654382d3554f7e39d6a5d5bcc0ac3e2ca62e

source for my site, found at icyphox.sh

Switch to vite v2
Anirudh Oppiliappan x@icyphox.sh
Thu, 05 Aug 2021 21:34:48 +0530
commit

eae4654382d3554f7e39d6a5d5bcc0ac3e2ca62e

parent

11f7ab57e67700a262eb18db6035b0ff78032435

64 files changed, 192 insertions(+), 199 deletions(-)

jump to
M config.yamlconfig.yaml

@@ -1,43 +1,6 @@

title: icyphox's blog -header: | - <a href=/> - <img src="/static/white.svg" alt="icyphox's avatar" height="40" width="40"/> - </a> - <nav> - <a href="/about">about</a> - &middot; - <a href="/uses">uses</a> - &middot; - <a href="/friends">friends</a> - </nav> - -siteurl: "https://icyphox.sh" -rssprefixurl: "https://icyphox.sh/blog/" -description: "Computers, security and computer security." -datefmt: "02 Jan, 2006" +url: "https://icyphox.sh" +desc: "Computers, security and computer security." author: name: "Anirudh Oppiliappan" email: "x@icyphox.sh" -footer: | - <section class="icons"> - <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/"> - <img alt="cc nc-by-sa" src="/static/cc.svg"> - </a> - <a href="https://webring.xxiivv.com/#random" target="_blank"> - <img alt="xxiivv webring" src="/static/webring.svg"> - </a> - <a href="/blog/feed.xml" > - <img alt="rss feed" src="/static/rss.svg" width="30"> - </a> - <a href="https://git.icyphox.sh"> - <img alt="git" src="/static/git.svg" width="35"> - </a> - </section> - </section> - - -prebuild: - # - bin/wiki.sh -postbuild: - # - bin/plaintext.sh -
M pages/_index.mdpages/_index.md

@@ -1,5 +1,5 @@

--- -template: index.html -title: icyphox's blog -subtitle: Computers, security & computer security. +template: main.html +title: icyphox +subtitle: Anirudh Oppiliappan ---
M pages/blog/2019-09-17.mdpages/blog/2019-09-17.md

@@ -3,7 +3,7 @@ template: text.html

title: Status update subtitle: A brief on what happened last week date: 2019-09-17 -url: 2019-09-17 +slug: 2019-09-17 --- This is something new I'm trying out, in an effort to write more frequently
M pages/blog/2019-09-27.mdpages/blog/2019-09-27.md

@@ -3,7 +3,7 @@ template: text.html

title: Status update subtitle: Alpine Linux shenaningans and more date: 2019-09-27 -url: 2019-09-27 +slug: 2019-09-27 --- It's a lazy Friday afternoon here; yet another off day this week thanks to my
M pages/blog/2019-10-17.mdpages/blog/2019-10-17.md

@@ -3,7 +3,7 @@ template:

title: Status update subtitle: Not weekly anymore, but was it ever? date: 2019-10-16 -url: 2019-10-16 +slug: 2019-10-16 --- I've decided to drop the "Weekly" part of the status update posts, since
M pages/blog/2019-11-16.mdpages/blog/2019-11-16.md

@@ -3,7 +3,7 @@ template:

title: Status update subtitle: Exams, stuff, etc. date: 2019-11-16 -url: 2019-11-16 +slug: 2019-11-16 --- This month is mostly just unfun stuff, lined up in a neat schedule --
M pages/blog/2019-in-review.mdpages/blog/2019-in-review.md

@@ -3,7 +3,7 @@ template:

title: 2019 in review subtitle: A look back at last year date: 2020-01-02 -url: 2019-in-review +slug: 2019-in-review --- Just landed in a rainy Chennai, back in campus for my 6th semester.
M pages/blog/2020-01-18.mdpages/blog/2020-01-18.md

@@ -3,7 +3,7 @@ template:

title: Status update subtitle: New year…new stuff? date: 2020-01-18 -url: 2020-01-18 +slug: 2020-01-18 --- It's only been a two weeks since I got back to campus, and we've
M pages/blog/2020-07-20.mdpages/blog/2020-07-20.md

@@ -1,6 +1,6 @@

--- template: -url: 2020-07-20 +slug: 2020-07-20 title: Status update subtitle: Things I've been up to, for the past month-ish date: 2020-07-20
M pages/blog/2020-in-review.mdpages/blog/2020-in-review.md

@@ -1,6 +1,6 @@

--- template: -url: 2020-in-review +slug: 2020-in-review title: 2020 in review subtitle: Oh boy, here we go date: 2020-12-24
M pages/blog/2021-05-10.mdpages/blog/2021-05-10.md

@@ -1,6 +1,6 @@

--- template: -url: 2021-05-10 +slug: 2021-05-10 title: Status update subtitle: A review of Q1 2021 date: 2021-05-10
A pages/blog/_index.md

@@ -0,0 +1,5 @@

+--- +template: index.html +title: icyphox's blog +subtitle: Computers, security & computer security. +---
M pages/blog/covid19-disinfo.mdpages/blog/covid19-disinfo.md

@@ -1,6 +1,6 @@

--- template: -url: covid19-disinfo +slug: covid19-disinfo title: COVID-19 disinformation subtitle: A lot of actors cashing in on the epidemic date: 2020-03-15
M pages/blog/digital-minimalism.mdpages/blog/digital-minimalism.md

@@ -3,7 +3,7 @@ template:

title: Thoughts on digital minimalism subtitle: Put that screen down! date: 2019-10-05 -url: digital-minimalism +slug: digital-minimalism --- Ah yes, yet another article on the internet on this beaten to death
M pages/blog/disinfo.mdpages/blog/disinfo.md

@@ -3,7 +3,7 @@ template: text.html

title: Disinformation demystified subtitle: Misinformation, but deliberate date: 2019-09-10 -url: disinfo +slug: disinfo --- As with the disambiguation of any word, let's start with its etymology and definiton.
M pages/blog/dont-news.mdpages/blog/dont-news.md

@@ -1,6 +1,6 @@

--- template: -url: dont-news +slug: dont-news title: You don't need news subtitle: My hot 'n' spicy take on "news" today date: 2020-06-21
M pages/blog/ducky-one-2.mdpages/blog/ducky-one-2.md

@@ -1,6 +1,6 @@

--- template: -url: ducky-one-2 +slug: ducky-one-2 title: The Ducky One 2 SF subtitle: I fell for the mechanical keyboard meme date: 2020-08-22
M pages/blog/efficacy-deepfakes.mdpages/blog/efficacy-deepfakes.md

@@ -1,6 +1,6 @@

--- template: -url: efficacy-deepfakes +slug: efficacy-deepfakes title: The efficacy of deepfakes subtitle: Can we really write it off as "not a threat"? date: 2020-05-11
M pages/blog/fb50.mdpages/blog/fb50.md

@@ -3,7 +3,7 @@ template: text.html

title: Picking the FB50 smart lock (CVE-2019-13143) subtitle: … and lessons learnt in IoT security date: 2019-08-05 -url: fb50 +slug: fb50 --- (*originally posted at [SecureLayer7's Blog](http://blog.securelayer7.net/fb50-smart-lock-vulnerability-disclosure), with my edits*)
M pages/blog/five-days-tty.mdpages/blog/five-days-tty.md

@@ -1,7 +1,7 @@

--- template: title: Five days in a TTY -url: five-days-tty +slug: five-days-tty subtitle: I installed KISS Linux date: 2020-01-13 ---
M pages/blog/flask-jwt-login.mdpages/blog/flask-jwt-login.md

@@ -1,6 +1,6 @@

--- template: -url: flask-jwt-login +slug: flask-jwt-login title: Flask-JWT-Extended × Flask-Login subtitle: Apparently I do webshit now date: 2020-06-24
M pages/blog/free-sw-censor.mdpages/blog/free-sw-censor.md

@@ -1,6 +1,6 @@

--- template: -url: free-sw-censor +slug: free-sw-censor title: Free software should not censor subtitle: If you write free software, don't deny freedom zero date: 2021-04-07
M pages/blog/go-get-cgit.mdpages/blog/go-get-cgit.md

@@ -1,6 +1,6 @@

--- template: -url: go-get-cgit +slug: go-get-cgit title: Make cgit go gettable subtitle: go get git.icyphox.sh/* works! date: 2021-07-14
M pages/blog/hacky-scripts.mdpages/blog/hacky-scripts.md

@@ -3,7 +3,7 @@ template:

title: Hacky scripts subtitle: The most fun way to learn to code date: 2019-10-24 -url: hacky-scripts +slug: hacky-scripts --- As a CS student, I see a lot of people around me doing courses online
M pages/blog/ig-opsec.mdpages/blog/ig-opsec.md

@@ -3,7 +3,7 @@ template:

title: Instagram OPSEC subtitle: Operational security for the average zoomer date: 2019-12-02 -url: ig-opsec +slug: ig-opsec --- Which I am not, of course. But seeing as most of my peers are, I am
M pages/blog/intel-conundrum.mdpages/blog/intel-conundrum.md

@@ -3,7 +3,7 @@ template:

title: The intelligence conundrum subtitle: To protect an asset, or to protect the people? date: 2019-10-28 -url: intel-conundrum +slug: intel-conundrum --- I watched the latest [S.W.A.T.](https://en.wikipedia.org/wiki/S.W.A.T._(2017_TV_series))
M pages/blog/irc-for-dms.mdpages/blog/irc-for-dms.md

@@ -3,7 +3,7 @@ template:

title: IRC for DMs subtitle: Honestly, it's pretty great date: 2019-11-03 -url: irc-for-dms +slug: irc-for-dms --- [Nerdy](https://nerdypepper.me) and I decided to try and use IRC for our
M pages/blog/k8s-at-home.mdpages/blog/k8s-at-home.md

@@ -1,6 +1,6 @@

--- template: -url: k8s-at-home +slug: k8s-at-home title: Setting up a multi-arch Kubernetes cluster at home subtitle: My self-hosted infra, given the cloud native™ treatment date: 2021-06-19
M pages/blog/kiss-zen.mdpages/blog/kiss-zen.md

@@ -1,6 +1,6 @@

--- template: -url: kiss-zen +slug: kiss-zen title: The Zen of KISS Linux subtitle: My thoughts on the distro, the philosophy and my experience in general date: 2020-04-03
M pages/blog/mael.mdpages/blog/mael.md

@@ -1,6 +1,6 @@

--- template: -url: mael +slug: mael title: Introducing mael subtitle: An experimental mail client date: 2020-03-29
M pages/blog/mailserver.mdpages/blog/mailserver.md

@@ -3,7 +3,7 @@ template: text.html

title: Setting up my personal mailserver subtitle: This is probably a terrible idea… date: 2019-08-15 -url: mailserver +slug: mailserver --- A mailserver was a long time coming. I'd made an attempt at setting one up
M pages/blog/mastodon-social.mdpages/blog/mastodon-social.md

@@ -1,6 +1,6 @@

--- template: -url: mastodon-social +slug: mastodon-social title: Stop joining mastodon.social subtitle: Do you even understand federation? date: 2020-05-05
M pages/blog/mastodon-to-pleroma.mdpages/blog/mastodon-to-pleroma.md

@@ -1,6 +1,6 @@

--- template: -url: mastodon-to-pleroma +slug: mastodon-to-pleroma title: Migrating from Mastodon to Pleroma subtitle: Mastodon bad. Pleroma good. date: 2020-09-04
M pages/blog/mnml-browsing.mdpages/blog/mnml-browsing.md

@@ -3,7 +3,7 @@ template:

title: Vimb&#58; my Firefox replacement subtitle: Web browsing, suckless style date: 2020-01-16 -url: mnml-browsing +slug: mnml-browsing ---
M pages/blog/music-streaming.mdpages/blog/music-streaming.md

@@ -1,6 +1,6 @@

--- template: -url: music-streaming +slug: music-streaming title: My music streaming setup subtitle: Think Spotify, but self-hosted and not as good date: 2020-12-13
M pages/blog/my-setup.mdpages/blog/my-setup.md

@@ -3,7 +3,7 @@ template: text.html

title: My setup subtitle: My daily drivers—hardware, software and workflow date: 2019-05-13 -url: my-setup +slug: my-setup --- **Update**: I now maintain a [uses](/uses) page. This post is out of
M pages/blog/nullcon-2020.mdpages/blog/nullcon-2020.md

@@ -1,6 +1,6 @@

--- template: -url: nullcon-2020 +slug: nullcon-2020 title: Nullcon 2020 subtitle: An opinion-filled review of Nullcon Goa, 2020 date: 2020-03-09
M pages/blog/nvim-lua.mdpages/blog/nvim-lua.md

@@ -1,6 +1,6 @@

--- template: -url: nvim-lua +slug: nvim-lua title: Configuring Neovim using Lua subtitle: And switching from init.vim to init.lua date: 2021-02-07
M pages/blog/openbsd-hp-envy.mdpages/blog/openbsd-hp-envy.md

@@ -1,6 +1,6 @@

--- template: -url: openbsd-hp-envy +slug: openbsd-hp-envy title: OpenBSD on the HP Envy 13 subtitle: I put a blowfish in my laptop this week date: 2020-04-17
M pages/blog/pi.mdpages/blog/pi.md

@@ -1,6 +1,6 @@

--- template: -url: pi +slug: pi title: Migrating to the RPi subtitle: Raspberry Pi shenanigans, and other things date: 2020-06-04
M pages/blog/prosody.mdpages/blog/prosody.md

@@ -1,6 +1,6 @@

--- template: -url: prosody +slug: prosody title: Setting up Prosody for XMPP subtitle: I setup Prosody yesterday—here's how I did it date: 2020-02-18
M pages/blog/pycon-wrap-up.mdpages/blog/pycon-wrap-up.md

@@ -3,7 +3,7 @@ template:

title: PyCon India 2019 wrap-up subtitle: Pretty fun weekend, I'd say date: 2019-10-15 -url: pycon-wrap-up +slug: pycon-wrap-up --- I'm writing this article as I sit in class, back on the grind. Last
M pages/blog/python-for-re-1.mdpages/blog/python-for-re-1.md

@@ -3,7 +3,7 @@ template: text.html

title: Python for Reverse Engineering #1: ELF Binaries subtitle: Building your own disassembly tooling for — that’s right — fun and profit date: 2019-02-08 -url: python-for-re-1 +slug: python-for-re-1 --- While solving complex reversing challenges, we often use established tools like radare2 or IDA for disassembling and debugging. But there are times when you need to dig in a little deeper and understand how things work under the hood.
M pages/blog/r2wars-2020.mdpages/blog/r2wars-2020.md

@@ -1,6 +1,6 @@

--- template: -url: r2wars-2020 +slug: r2wars-2020 title: My submissions for r2wars 2020 subtitle: If I learnt one thing, it's that ARM is the future date: 2020-09-13
M pages/blog/rop-on-arm.mdpages/blog/rop-on-arm.md

@@ -3,7 +3,7 @@ template: text.html

title: Return Oriented Programming on ARM (32-bit) subtitle: Making stack-based exploitation great again! date: 2019-06-06 -url: rop-on-arm +slug: rop-on-arm --- Before we start _anything_, you’re expected to know the basics of ARM
M pages/blog/ru-vs-gb.mdpages/blog/ru-vs-gb.md

@@ -3,7 +3,7 @@ template:

title: Disinfo war&#58; RU vs GB subtitle: A look at Russian info ops against Britain date: 2019-12-12 -url: ru-vs-gb +slug: ru-vs-gb --- This entire sequence of events begins with the attempted poisoning of
M pages/blog/s-nail.mdpages/blog/s-nail.md

@@ -1,6 +1,6 @@

--- template: -url: s-nail +slug: s-nail title: The S-nail mail client subtitle: And how to achieve a usable configuration for IMAP/SMTP date: 2020-05-06
M pages/blog/save-org.mdpages/blog/save-org.md

@@ -3,7 +3,7 @@ template:

title: Save .ORG! subtitle: PIR is getting sold to a private firm, and here's why it's bad date: 2019-11-23 -url: save-org +slug: save-org --- The .ORG top-level domain introduced in 1985, has been operated by the
M pages/blog/signal.mdpages/blog/signal.md

@@ -1,6 +1,6 @@

--- template: -url: signal +slug: signal title: We can do better than Signal subtitle: Centralized silos are never the solution date: 2021-01-17
M pages/blog/simplicity-security.mdpages/blog/simplicity-security.md

@@ -1,6 +1,6 @@

--- template: -url: simplicity-security +slug: simplicity-security title: Simplicity (mostly) guarantees security subtitle: This is why I meme mnmlsm so much date: 2020-05-07
M pages/blog/site-changes.mdpages/blog/site-changes.md

@@ -1,6 +1,6 @@

--- template: -url: site-changes +slug: site-changes title: Site changes subtitle: New stuff at the {back,front}end date: 2020-05-27
M pages/blog/twitter.mdpages/blog/twitter.md

@@ -1,6 +1,6 @@

--- template: -url: twitter +slug: twitter title: Some thoughts on Twitter subtitle: I've begun avoiding Twitter, here's why date: 2020-08-03
M pages/blog/whatsapp.mdpages/blog/whatsapp.md

@@ -1,6 +1,6 @@

--- template: -url: whatsapp +slug: whatsapp title: What's next after WhatsApp? subtitle: Let's not act surprised here, this was bound to happen date: 2021-01-08
M pages/blog/workman.mdpages/blog/workman.md

@@ -1,6 +1,6 @@

--- template: -url: workman +slug: workman title: The Workman keyboard layout subtitle: I have a lot of free time on my hands (heh) date: 2020-10-24
M static/style.cssstatic/style.css

@@ -33,15 +33,29 @@ main h2, h3 {

padding: 20px 0 15px 0; } +.logo { + width: 60%; + margin-left: auto; + margin-right: auto; + display: block; +} -.icons img { +.footer img { max-height: 2.5rem; display: inline-block; vertical-align: middle; image-orientation: from-image; max-width: 100%; - padding: 0 0 5px 3px; + padding: 0 0px 5px 5px; cursor: pointer; +} + +.footer span { + float: right; + display: inline-block; + padding: 0; + margin-top: 10px; + word-wrap: break-word; } a {

@@ -153,7 +167,9 @@ margin: 20px 0 20px 0;

} footer { + border-top: 1.5px solid; margin: 20px 0 40px 10px; + padding-top: 30px; } header img {

@@ -167,9 +183,12 @@

blockquote { margin: 7px 0 7px 0; } + blockquote p { font-style: italic; color: var(--darker); padding-left: 20px; border-left: 3px solid var(--gray); } + +
A templates/footer.html

@@ -0,0 +1,15 @@

+<section class="footer"> + <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/"> + <img alt="cc nc-by-sa" src="/static/cc.svg"> + </a> + <a href="https://webring.xxiivv.com/#random" target="_blank"> + <img alt="xxiivv webring" src="/static/webring.svg"> + </a> + <a href="/blog/feed.xml" > + <img alt="rss feed" src="/static/rss.svg" width="30"> + </a> + <a href="https://git.icyphox.sh"> + <img alt="git" src="/static/git.svg" width="35"> + </a> + <span>Anirudh Oppiliappan &copy; 2021 &mdash; CC BY-NC-SA 4.0</span> +</section>
A templates/head.html

@@ -0,0 +1,10 @@

+<link rel="stylesheet" href="/static/style.css" type="text/css"> +<link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> +<meta name="description" content="{{ .Meta.Subtitle }}"> +<meta name="viewport" content="initial-scale=1,width"> +<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> +<meta charset="UTF-8"> +<meta name="HandheldFriendly" content="true"> +<link rel="icon" type="image/png" sizes="16x16" href="/favicon.png"> +<meta name="theme-color" content="#ffffff"> +
M templates/index.htmltemplates/index.html

@@ -1,34 +1,27 @@

<!DOCTYPE html> <html lang=en> <head> - <link rel="stylesheet" href="/static/style.css" type="text/css"> - <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> - <meta name="description" content="{{ .Fm.Subtitle }}"> - <meta name="viewport" content="initial-scale=1,width"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta charset="UTF-8"> - <meta name="HandheldFriendly" content="true"> - <link rel="icon" type="image/png" sizes="16x16" href="/favicon.png"> - <meta name="theme-color" content="#ffffff"> + {{ template "head.html" }} </head> <title> - {{ .Fm.Title }} + {{ index .Meta "title" }} </title> <body> <main> <header> - {{ .Cfg.Header }} + {{ template "nav.html" }} </header> - {{ .Fm.Body }} + {{ .Body }} <table> - {{ $datefmt := .Cfg.DateFmt }} {{ range $_, $post := .Posts }} <tr> <td align="left" class="index-post"> - <a href="/blog/{{ $post.Fm.URL }}">{{ $post.Fm.Title }}</a> + <a href=/blog/{{ index $post.Meta "slug" }}>{{ index $post.Meta "title" }}</a> </td> - <td align="right" class="index-date">{{ $post.Fm.Date.Format $datefmt }}</td> + {{ $dateStr := index $post.Meta "date" }} + {{ $date := parsedate $dateStr }} + <td align="right" class="index-date">{{ $date.Format "02 Jan, 2006" }}</td> </tr> {{ end }} </table>

@@ -36,7 +29,7 @@ <p><em><b>Note</b>: Opinions expressed in these posts may differ from those that I hold presently.</em></p>

</section> </main> <footer> - {{ .Cfg.Footer }} + {{ template "footer.html" }} </footer> </body>
A templates/main.html

@@ -0,0 +1,23 @@

+<html lang=en> + <head> + {{ template "head.html" }} + </head> + <title> + {{ index .Meta "title" }} + </title> + <body> + <main> + <header> + {{ template "nav-noimg.html" }} + </header> + <article> + <div class="logo"> + <img src=/static/white.svg> + </div> + </article> + </main> + <footer> + {{ template "footer.html" }} + </footer> + </body> +</html>
A templates/nav-noimg.html

@@ -0,0 +1,9 @@

+<nav> + <a href="/blog">blog</a> + &middot; + <a href="/about">about</a> + &middot; + <a href="/uses">uses</a> + &middot; + <a href="/friends">friends</a> +</nav>
A templates/nav.html

@@ -0,0 +1,13 @@

+<a href=/> + <img src="/static/white.svg" alt="icyphox's avatar" height="40" width="40"/> +</a> +<nav> + <a href="/blog">blog</a> + &middot; + <a href="/about">about</a> + &middot; + <a href="/uses">uses</a> + &middot; + <a href="/friends">friends</a> +</nav> +
M templates/page.htmltemplates/page.html

@@ -1,39 +1,23 @@

<!DOCTYPE html> <html lang=en> <head> - <link rel="stylesheet" href="/static/style.css" type="text/css"> - <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> - <meta name="description" content="{{ .Fm.Subtitle }}"> - <meta name="viewport" content="initial-scale=1,width"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta charset="UTF-8"> - <meta name="HandheldFriendly" content="true"> - <link rel="icon" type="image/png" sizes="16x16" href="/favicon.png"> - <meta name="theme-color" content="#ffffff"> + {{ template "head.html" }} </head> <title> - {{ .Fm.Title }} + {{ index .Meta "title" }} </title> <body> - <main> + <main> <header> - {{ .Cfg.Header }} + {{ template "nav.html" }} </header> <article align="left"> - - <h1>{{ .Fm.Title }}</h1> - <!-- <h2 class="subtitle">{{ .Fm.Subtitle }}</h2>--!> - {{ .Fm.Body }} - - <!-- - <section class="post-date"> - <em>last updated</em>: {{ .Fm.Date }} - </section>--!> - + <h1>{{ index .Meta "title" }}</h1> + {{ .Body }} </article> </main> <footer> - {{ .Cfg.Footer }} + {{ template "footer.html" }} </footer> </body>
M templates/text.htmltemplates/text.html

@@ -1,40 +1,33 @@

-<!DOCTYPE html> <html lang=en> <head> - <link rel="stylesheet" href="/static/style.css" type="text/css"> - <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> - <meta name="description" content="{{ .Fm.Subtitle }}"> - <meta name="viewport" content="initial-scale=1,width"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta charset="UTF-8"> - <meta name="HandheldFriendly" content="true"> - <link rel="icon" type="image/png" sizes="16x16" href="/favicon.png"> - <meta name="theme-color" content="#ffffff"> + {{ template "head.html" }} </head> <title> - {{ .Fm.Title }} + {{ index .Meta "title" }} </title> <body> - <main> - <header> - {{ .Cfg.Header }} - </header> - <article align="left"> - <section class="post-date"> - {{ .Fm.Date }} - </section> + <main> + <header> + {{ template "nav.html" }} + </header> + <article align="left"> + <section class="post-date"> + {{ $dateStr := index .Meta "date" }} + {{ $date := parsedate $dateStr }} + {{ $date.Format "02 Jan, 2006" }} + </section> - <h1>{{ .Fm.Title }}</h1> - <h2 class="subtitle">{{ .Fm.Subtitle }}</h2> - {{ .Fm.Body }} - </article> - <p class="muted" align="center">Questions or comments? - Send an - <a href="mailto:x@icyphox.sh?Subject=Re: {{ .Fm.Title }}">email</a>. - </main> - <footer> - {{ .Cfg.Footer }} - </footer> -</body> + <h1>{{ index .Meta "title" }}</h1> + <h2 class="subtitle">{{ index .Meta "subtitle" }}</h2> + {{ .Body }} + </article> + <p class="muted" align="center">Questions or comments? + Send an + <a href=mailto:x@icyphox.sh?Subject=Re: {{ index .Meta "title" }}>email</a>. + </main> + <footer> + {{ template "footer.html" }} + </footer> + </body> </html>
D templates/wiki.html

@@ -1,34 +0,0 @@

-<!DOCTYPE html> -<html lang=en> -<head> - <link rel="stylesheet" href="/static/style.css" type="text/css"> - <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> - <meta name="description" content="{{ .Fm.Subtitle }}"> - <meta name="viewport" content="initial-scale=1,width"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <meta charset="UTF-8"> - <meta name="HandheldFriendly" content="true"> - <link rel="icon" type="image/png" sizes="16x16" href="/favicon.png"> - <meta name="theme-color" content="#ffffff"> -</head> - <title> - {{ .Fm.Title }} - </title> - <body> - <div class="container"> - <div class="pull-left"> - <div class="content"> - <header> - {{ .Cfg.Header }} - </header> - <main> - {{ .Fm.Body }} - </main> - </div> - <footer> - {{ .Cfg.Footer }} - </footer> - </div> - </div> - </body> -</html>