From ce064be053e449e1364fdb0543a24588fe32f7b0 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 19 Oct 2023 13:22:22 -0600 Subject: [PATCH] Add article image meta tags --- content/.obsidian/workspace.json | 56 ++++++++++++------------ content/Acoustic Panels.md | 1 + content/ChatGPT Peanut Butter Cookies.md | 1 + content/Fake Dog.md | 1 + content/Garage Door Opener.md | 1 + content/Hand of Ozymandias.md | 1 + content/Japan Photography.md | 3 +- content/LED Dress.md | 1 + content/Light Switch.md | 1 + content/Notica.md | 1 + content/Painting.md | 1 + content/Plant Waterer.md | 1 + content/Protospace.md | 1 + content/QotNews.md | 1 + content/Solar Car.md | 1 + content/Spaceport.md | 1 + content/Wine Crate Coffee Table.md | 1 + themes/lite/templates/article.html | 5 +++ themes/theme/templates/article.html | 6 +++ 19 files changed, 57 insertions(+), 28 deletions(-) diff --git a/content/.obsidian/workspace.json b/content/.obsidian/workspace.json index de70b0d..b2a805c 100644 --- a/content/.obsidian/workspace.json +++ b/content/.obsidian/workspace.json @@ -37,7 +37,7 @@ "state": { "type": "markdown", "state": { - "file": "Japan Photography.md", + "file": "Wine Crate Coffee Table.md", "mode": "source", "source": false } @@ -122,7 +122,7 @@ "state": { "type": "backlink", "state": { - "file": "Japan Photography.md", + "file": "Wine Crate Coffee Table.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -139,7 +139,7 @@ "state": { "type": "outline", "state": { - "file": "Japan Photography.md" + "file": "Wine Crate Coffee Table.md" } } } @@ -161,8 +161,32 @@ }, "active": "d9a16803d250ddc4", "lastOpenFiles": [ - "Hydroponics.md", + "Things I Recommend.md", + "t0txt.md", + "t0 Services.md", + "Spaceport.md", + "Solar Car.md", + "Sensors.md", + "Secret Garden.md", + "QotNews.md", + "Protospace.md", + "Plant Waterer.md", + "Painting.md", + "Notica.md", + "Linux Flavour.md", + "Light Switch.md", + "LED Dress.md", "Japan Photography.md", + "Hydroponics Log 3.md", + "Hydroponics Log 2.md", + "Hydroponics Log 1.md", + "Hydroponics Aphid War.md", + "Hydroponics.md", + "Hand of Ozymandias.md", + "Garage Door Opener.md", + "Fake Dog.md", + "ChatGPT Peanut Butter Cookies.md", + "Bypassing Ports.md", "media/japan12hi.jpg", "media/japan11hi.jpg", "media/japan10hi.jpg", @@ -172,28 +196,6 @@ "media/japan06hi.jpg", "media/japan05hi.jpg", "media/japan04hi.jpg", - "media/japan03hi.jpg", - "Fake Dog.md", - "Painting.md", - "Notica.md", - "Hydroponics Log 2.md", - "Hydroponics Log 1.md", - "Garage Door Opener.md", - "Things I Recommend.md", - "Airflow.md", - "Secret Garden.md", - "Protospace.md", - "Plant Waterer.md", - "Algae Growth.md", - "Sensors.md", - "QotNews.md", - "Wine Crate Coffee Table.md", - "Bypassing Ports.md", - "ChatGPT Peanut Butter Cookies.md", - "Hand of Ozymandias.md", - "About.md", - "Acoustic Panels.md", - "Backup Strategy.md", - "Hydroponics Aphid War.md" + "media/japan03hi.jpg" ] } \ No newline at end of file diff --git a/content/Acoustic Panels.md b/content/Acoustic Panels.md index d207382..485010f 100644 --- a/content/Acoustic Panels.md +++ b/content/Acoustic Panels.md @@ -2,6 +2,7 @@ Title: Theatre Acoustic Panels Date: 2021-10-21 Category: Creations Summary: Panels for acoustic treatment in my home theatre. +Image: panel3.jpg Short: 3 Acoustic treatment is one of the most overlooked aspects of home audio. There's no point in spending money on premium speakers if the room they are playing in has poor acoustics. diff --git a/content/ChatGPT Peanut Butter Cookies.md b/content/ChatGPT Peanut Butter Cookies.md index 5fd4ce1..8ccb91d 100644 --- a/content/ChatGPT Peanut Butter Cookies.md +++ b/content/ChatGPT Peanut Butter Cookies.md @@ -2,6 +2,7 @@ Title: ChatGPT Peanut Butter Cookies Date: 2023-03-24 Category: Writing Summary: A recipe generated by ChatGPT for peanut butter cookies. +Image: cookies3.jpg Short: 2 (describe a house fire in the style of a crappy blog post that people put above recipes that tell their life story before getting to the point about how their house burned down) The flames danced around the living room, illuminating the memories that were now nothing more than ash. It was a warm summer evening, and we were all gathered in the backyard, enjoying the company of good friends and family. Little did we know that our lives were about to change forever. diff --git a/content/Fake Dog.md b/content/Fake Dog.md index 237902e..a06f6a4 100644 --- a/content/Fake Dog.md +++ b/content/Fake Dog.md @@ -2,6 +2,7 @@ Title: Fake Dog for Home Security Date: 2022-06-27 Category: Creations Summary: Fake dog barking for home security while on vacation. +Image: fake-dog.jpg Short: 7 I set up a fake dog that barks if my surveillance cameras are triggered while I'm out of town on vacation. It's a pair of computer speakers plugged into a Raspberry Pi, which is an inexpensive single-board computer. One speaker faces the front door and the other faces the side door. diff --git a/content/Garage Door Opener.md b/content/Garage Door Opener.md index 24af509..1a86fb4 100644 --- a/content/Garage Door Opener.md +++ b/content/Garage Door Opener.md @@ -2,6 +2,7 @@ Title: Garage Door Opener Hack Date: 2021-12-26 Category: Creations Summary: Hacking my garage door opener to work over Wifi. +Image: garage3.jpg Short: 5 In the quest to automate as much of my house as possible, I thought it would be useful to be able to remotely control my garage door from my home automation system. If I suspected that I forgot to close it while leaving, I could check in my security cameras and then close it from anywhere. It's nice having this peace of mind, even if it almost never happens. diff --git a/content/Hand of Ozymandias.md b/content/Hand of Ozymandias.md index f09f677..a79b336 100644 --- a/content/Hand of Ozymandias.md +++ b/content/Hand of Ozymandias.md @@ -2,6 +2,7 @@ Title: Hand of Ozymandias Date: 2012-03-23 Category: Creations Summary: A withered hand I welded out of scrap metal. +Image: hand1.jpg Short: hand I was visiting my cousins in Radium, BC and decided to learn stick welding at their shop. I wanted to create a sculpture, so with pieces of scrap metal I welded together this hand. The beads are far from perfect. Working with small pieces of rusted metal made it difficult. diff --git a/content/Japan Photography.md b/content/Japan Photography.md index a07345a..e0f38c8 100644 --- a/content/Japan Photography.md +++ b/content/Japan Photography.md @@ -2,11 +2,12 @@ Title: Japan Photography Date: 2023-10-19 Category: Writing Summary: Photos from my trip to Japan. +Image: japan06lo.jpg Short: j All photos are unmodified (not even cropped) and taken with a Pixel 6a. -Click each photo for the full resolution. +Click each photo for the full resolution and HDR. Former Yasuda Garden, Tokyo: diff --git a/content/LED Dress.md b/content/LED Dress.md index 5d82d6f..90e1c5a 100644 --- a/content/LED Dress.md +++ b/content/LED Dress.md @@ -2,6 +2,7 @@ Title: LED Dress Date: 2016-03-18 Category: Creations Summary: A dress made out of LEDs that twinkle like stars. +Image: dress1.jpg Short: 4 A friend of mine was attending a stars and constellations themed ball. She wanted to wear a dress that was lit up with LEDs acting as twinkling stars. Seven of the 28 stars are aligned to resemble the Big Dipper constellation and twinkle differently than the rest, which twinkle in a random pattern. diff --git a/content/Light Switch.md b/content/Light Switch.md index dcd9bbe..0325bc9 100644 --- a/content/Light Switch.md +++ b/content/Light Switch.md @@ -2,6 +2,7 @@ Title: Remote Control Light Switch Date: 2014-10-09 Category: Creations Summary: A device to toggle my lights remotely. +Image: light1.jpg Short: remote I wanted the ability to toggle my bedroom light remotely for convenience. I designed a circuit that allows me to control my light with any device that can load a webpage. diff --git a/content/Notica.md b/content/Notica.md index 05740e7..7bb0dae 100644 --- a/content/Notica.md +++ b/content/Notica.md @@ -2,6 +2,7 @@ Title: Notica Date: 2022-05-17 Category: Projects Summary: Send browser notifications from your terminal. No installation. No registration. +Image: notica1.jpg Short: n Order: 5 diff --git a/content/Painting.md b/content/Painting.md index 84b1506..6995d05 100644 --- a/content/Painting.md +++ b/content/Painting.md @@ -2,6 +2,7 @@ Title: Man's Reach Exceeds His Grasp Date: 2012-04-11 Category: Creations Summary: My first attempt at painting with acrylic. +Image: painting1.jpg Short: painting The painting is called “Man’s Reach Exceeds His Grasp”. I've always wanted to try painting and thought I had a good idea, so after a couple of drawings I attempted to paint it. I eventually got it framed at Michaels. Many thanks to my friend Laura for the opportunity to do this, I couldn't have done it without her help. diff --git a/content/Plant Waterer.md b/content/Plant Waterer.md index 729fd42..092d0b4 100644 --- a/content/Plant Waterer.md +++ b/content/Plant Waterer.md @@ -2,6 +2,7 @@ Title: Automatic Plant Waterer Date: 2014-06-05 Category: Creations Summary: A device that automatically waters plants. +Image: waterer2.jpg short: waterer One day I decided watering my one plant was too much work, so I automated it. It's also great for when I'm on vacation. The plant is a year old now and doesn't look as good as it used to (kinda like you). So this machine is like its life support. diff --git a/content/Protospace.md b/content/Protospace.md index 7049bf9..1582686 100644 --- a/content/Protospace.md +++ b/content/Protospace.md @@ -2,6 +2,7 @@ Title: Protospace Date: 2022-05-01 Category: Writing Summary: An outline of my projects at Calgary's makerspace Protospace. +Image: protospace1.jpg Wide: true Short: p diff --git a/content/QotNews.md b/content/QotNews.md index 71d4888..298cea7 100644 --- a/content/QotNews.md +++ b/content/QotNews.md @@ -2,6 +2,7 @@ Title: QotNews Date: 2022-05-18 Category: Projects Summary: Hacker News, Reddit, Lobsters, and Tildes articles pre-rendered in reader mode. Optimized for speed and distraction-free reading. +Image: qotnews1.jpg Short: q Order: 1 diff --git a/content/Solar Car.md b/content/Solar Car.md index d88fb07..eabb1cf 100644 --- a/content/Solar Car.md +++ b/content/Solar Car.md @@ -2,6 +2,7 @@ Title: Solar Car Date: 2013-04-27 Category: Creations Summary: About my time volunteering with the University of Calgary Solar Car Team, where I designed a maximum power point tracker. +Image: solar2.jpg Short: car I joined the University of Calgary Solar Car Team in my first semester for a chance to learn things, gain practical experience, and meet people that share my interests. The car was the top Canadian team in a 3000 km race from Darwin to Adelaide, Australia in 2011. We met up at a shop on campus every Saturday morning to work on the new Generation IV of the solar car. diff --git a/content/Spaceport.md b/content/Spaceport.md index 584ffb8..f8b5027 100644 --- a/content/Spaceport.md +++ b/content/Spaceport.md @@ -2,6 +2,7 @@ Title: Spaceport Date: 2022-05-16 Category: Projects Summary: Member portal for Calgary Protospace. It tracks dues, courses, training, access cards, and more. +Image: spaceport1.jpg Short: m Order: 3 diff --git a/content/Wine Crate Coffee Table.md b/content/Wine Crate Coffee Table.md index 91e99e5..10defa4 100644 --- a/content/Wine Crate Coffee Table.md +++ b/content/Wine Crate Coffee Table.md @@ -2,6 +2,7 @@ Title: Wine Crate Coffee Table Date: 2018-09-12 Category: Creations Summary: A coffee table made out of wooden wine creates. +Image: wine3.jpg Short: 0 My close friend Odai saw a simple coffee table design online that was built out of four wooden wine crates. They are quite cheap and available at any hardware store. We each wanted to make one so went and bought eight crates and some plywood to use as a base. diff --git a/themes/lite/templates/article.html b/themes/lite/templates/article.html index a8d52bc..f816df2 100644 --- a/themes/lite/templates/article.html +++ b/themes/lite/templates/article.html @@ -16,6 +16,11 @@ {% for tag in article.tags %} {% endfor %} + {% if article.image %} + + + + {% endif %} {% endblock %} {% block content %} diff --git a/themes/theme/templates/article.html b/themes/theme/templates/article.html index 1243984..c8bb0dd 100644 --- a/themes/theme/templates/article.html +++ b/themes/theme/templates/article.html @@ -22,6 +22,12 @@ {% endfor %} + {% if article.image %} + + + + {% endif %} + {% endblock %} {% block content %}