From 1538c0fe5b9fcb6a92ede04698274024b8c68e92 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 30 Sep 2024 19:14:53 -0600 Subject: rework profiles elsewhere --- _includes/default.html | 2 +- assets/fuck-hn.js | 9 --------- assets/site.css | 12 ++++++++++++ assets/site.js | 19 +++++++++++++++++++ index.md | 17 +++++++++++------ 5 files changed, 43 insertions(+), 16 deletions(-) delete mode 100644 assets/fuck-hn.js create mode 100644 assets/site.js diff --git a/_includes/default.html b/_includes/default.html index 710635f..61f43bf 100644 --- a/_includes/default.html +++ b/_includes/default.html @@ -36,6 +36,6 @@

{{ title }}{% if showDate %} ({{ page.date | date: "%d %b %Y", 'Etc/UTC' }}){% endif %}

{{ content }} - + diff --git a/assets/fuck-hn.js b/assets/fuck-hn.js deleted file mode 100644 index c75e0a6..0000000 --- a/assets/fuck-hn.js +++ /dev/null @@ -1,9 +0,0 @@ -// Vidrun, born of the sea-wind through the spruce -// Vidrun, green-tinged offshoot of my bough, joy and burden of my life -// Vidrun, fierce and clever, may our clan’s wisdom be yours: -// -// Never read Hacker News -// - Aphyr, "Hexing the technical interview" -if (document.referrer.startsWith("https://news.ycombinator.com")) { - document.location = "https://upload.wikimedia.org/wikipedia/commons/d/d4/Human_fart.wav" -} diff --git a/assets/site.css b/assets/site.css index 3edc9aa..d57334c 100644 --- a/assets/site.css +++ b/assets/site.css @@ -41,6 +41,18 @@ table th, table td { padding: 0 0.2em; } +.profile-everywhere-list { + display: flex; + flex-flow: row wrap; + list-style: none; + row-gap: 1em; + column-gap: clamp(0.75em, 3vw, 1.5em); + margin: 0 auto; + max-width: 80%; + padding: 0; + justify-content: center; +} + /* https://github.com/PrismJS/prism/blob/master/themes/prism.css */ code[class*="language-"], pre[class*="language-"] { diff --git a/assets/site.js b/assets/site.js new file mode 100644 index 0000000..2614c4c --- /dev/null +++ b/assets/site.js @@ -0,0 +1,19 @@ +// Vidrun, born of the sea-wind through the spruce +// Vidrun, green-tinged offshoot of my bough, joy and burden of my life +// Vidrun, fierce and clever, may our clan’s wisdom be yours: +// +// Never read Hacker News +// - Aphyr, "Hexing the technical interview" +if (document.referrer.startsWith("https://news.ycombinator.com")) { + document.location = "https://upload.wikimedia.org/wikipedia/commons/d/d4/Human_fart.wav" +} + +const replaceWithEmailLink = document.getElementById("index/replace-with-email-link"); +if (replaceWithEmailLink !== null) { + const newNode = document.createElement('a'); + newNode.innerText = 'email'; + newNode.href = 'mailto:' + + replaceWithEmailLink.querySelector('code') + .innerText.replace('', location.hostname); + replaceWithEmailLink.replaceWith(newNode); +} diff --git a/index.md b/index.md index f6dbea3..20e02b1 100644 --- a/index.md +++ b/index.md @@ -12,12 +12,17 @@ i’ve been programming for over a decade, and in that time i’ve worked on [a my pronouns are [ze/hir or it/its, or, if you absolutely must for some reason, she/her](https://pronoun.is/ze/hir?or=it&or=she). i exist in a lot of places: -- see me retweet nonsense you don't care about on twitter or very occasionally mastodon -- see me share longer nonsense you don't care about on cohost -- watch me occasionally stream things on twitch -- watch various kinds of permanent video content on [youtube](https://www.youtube.com/channel/UCw0N-UmLylMSnCtHZ7vagBw) -- give me money on [ko-fi](https://ko-fi.com/boringcactus) -- if you must, email me at `melody@` + currently, by day i’m a software engineer at the [Massachusetts Bay Transportation Authority's Customer Technology Department](https://ctd.mbta.com/). by night i am the proprietrix of [Somnolent Succulent Studio LLC](https://somnolentsucculent.studio), but most of the time i just play final fantasy xiv. -- cgit v1.2.3