From edb58b03408614e2bb2c740cd3ad07038636587d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 19 May 2020 20:52:39 +0100 Subject: [PATCH] Cleanup some unused shortcodes Or at least, just vendor them in if they're used just once --- content/pictures/backgrounds.md | 8 +++----- content/posts/my-stack-2018/index.md | 2 +- layouts/shortcodes/button.html | 3 --- layouts/shortcodes/pagelink.html | 2 -- layouts/shortcodes/pcpartpicker.html | 6 ------ layouts/shortcodes/youtube.html | 4 ---- static/src/scss/style.scss | 18 +----------------- 7 files changed, 5 insertions(+), 38 deletions(-) delete mode 100644 layouts/shortcodes/button.html delete mode 100644 layouts/shortcodes/pagelink.html delete mode 100644 layouts/shortcodes/pcpartpicker.html delete mode 100644 layouts/shortcodes/youtube.html diff --git a/content/pictures/backgrounds.md b/content/pictures/backgrounds.md index c6482a9..d1778d6 100644 --- a/content/pictures/backgrounds.md +++ b/content/pictures/backgrounds.md @@ -2,10 +2,8 @@ title: Backgrounds --- -As with most things, I synchronise my backgrounds between devices. I've also made them publicly accessible. +As with most things, I synchronise my backgrounds between devices. I've also made them publicly accessible. I use [`tbg`]({{< relref "tbg" >}}) to set them on my machines. -{{< button src="https://bg.theorangeone.net/" >}} -See My Backgrounds -{{< /button >}} + -Disclaimer: None of these images have been created by me. I've tried to keep track of where they came from in `sources.txt`, however some are missing from the list. +Disclaimer: None of these images have been created by me. I've tried to keep track of where they came from in [`sources.txt`](https://bg.theorangeone.net/), however some are missing from the list. diff --git a/content/posts/my-stack-2018/index.md b/content/posts/my-stack-2018/index.md index eddd097..b2bda4e 100644 --- a/content/posts/my-stack-2018/index.md +++ b/content/posts/my-stack-2018/index.md @@ -5,7 +5,7 @@ image: resource:editing-my-stack.png hide_header_image: true --- -Last year, I wrote {{< pagelink "posts/my-stack-2017" >}}, and now it's time for a follow-up. A year is a long time, and my day-to-day stack has changed quite a bit since then. +Last year, I wrote [_My stack 2017_]({{< relref "posts/my-stack-2017" >}}), and now it's time for a follow-up. A year is a long time, and my day-to-day stack has changed quite a bit since then. # OS diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html deleted file mode 100644 index f2d8c70..0000000 --- a/layouts/shortcodes/button.html +++ /dev/null @@ -1,3 +0,0 @@ - - {{ .Inner }} - diff --git a/layouts/shortcodes/pagelink.html b/layouts/shortcodes/pagelink.html deleted file mode 100644 index 3f9be5e..0000000 --- a/layouts/shortcodes/pagelink.html +++ /dev/null @@ -1,2 +0,0 @@ -{{ $page := .Site.GetPage (.Get 0)}} -{{ $page.Title }} diff --git a/layouts/shortcodes/pcpartpicker.html b/layouts/shortcodes/pcpartpicker.html deleted file mode 100644 index 8da6f19..0000000 --- a/layouts/shortcodes/pcpartpicker.html +++ /dev/null @@ -1,6 +0,0 @@ -

- - - View on PCPartPicker - -

diff --git a/layouts/shortcodes/youtube.html b/layouts/shortcodes/youtube.html deleted file mode 100644 index 54b189f..0000000 --- a/layouts/shortcodes/youtube.html +++ /dev/null @@ -1,4 +0,0 @@ -
- -
- diff --git a/static/src/scss/style.scss b/static/src/scss/style.scss index 083002f..fd650ca 100644 --- a/static/src/scss/style.scss +++ b/static/src/scss/style.scss @@ -54,22 +54,6 @@ code { } } -.yt-embed { - position: relative; - padding-top: 30px; - padding-bottom: 56.25%; - height: 0; - overflow: hidden; - - iframe { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - } -} - #light-gallery { a { display: inline-block; @@ -208,7 +192,7 @@ pre.chroma { iframe { width: 100%; - height: 50vh; + height: 75vh; } }