From 1c3ae5b8f8e8c17e7f994c467d8128dc8662edd3 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 14 Oct 2021 07:47:43 +0000 Subject: [PATCH] Make article links single-character --- content/backup-strategy.md | 1 + content/bypassing-ports.md | 1 + content/hand-of-ozymandias.md | 1 + content/led-dress.md | 1 + content/light-switch.md | 1 + content/linux-flavour.md | 1 + content/painting.md | 1 + content/plant-waterer.md | 1 + content/solar-car.md | 1 + publishconf_lite.py | 4 ++-- themes/lite/templates/index.html | 20 ++++++++++---------- 11 files changed, 21 insertions(+), 12 deletions(-) diff --git a/content/backup-strategy.md b/content/backup-strategy.md index baf28ba..50fd091 100644 --- a/content/backup-strategy.md +++ b/content/backup-strategy.md @@ -3,6 +3,7 @@ Date: 2021-04-08 Category: Writing Summary: Details about the backup system for all of my data. Wide: true +Short: 1 [TOC] diff --git a/content/bypassing-ports.md b/content/bypassing-ports.md index cdf638b..05886f3 100644 --- a/content/bypassing-ports.md +++ b/content/bypassing-ports.md @@ -3,6 +3,7 @@ Date: 2021-04-10 Category: Writing Summary: Bypass ISP blocked ports using VPN port forwarding for public access. Wide: true +Short: 2 [TOC] diff --git a/content/hand-of-ozymandias.md b/content/hand-of-ozymandias.md index 6d27746..8d35ef6 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. +Short: 3 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 diff --git a/content/led-dress.md b/content/led-dress.md index 81bd31c..2017771 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. +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. diff --git a/content/light-switch.md b/content/light-switch.md index 63cf66c..a0780f1 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. +Short: 5 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 diff --git a/content/linux-flavour.md b/content/linux-flavour.md index 08d96b1..df098a9 100644 --- a/content/linux-flavour.md +++ b/content/linux-flavour.md @@ -3,6 +3,7 @@ Date: 2020-10-31 Category: Writing Summary: A recommendation on which flavour of Linux to run. Wide: true +Short: 6 [TOC] diff --git a/content/painting.md b/content/painting.md index 0ca507c..4be1263 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. +Short: 7 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 diff --git a/content/plant-waterer.md b/content/plant-waterer.md index ad065cd..ee58cbd 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. +short: 8 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 diff --git a/content/solar-car.md b/content/solar-car.md index 641c63e..fee712c 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. +Short: 9 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 diff --git a/publishconf_lite.py b/publishconf_lite.py index 1866e2b..ac47c8e 100644 --- a/publishconf_lite.py +++ b/publishconf_lite.py @@ -56,8 +56,8 @@ CATEGORIES_SAVE_AS = '' TAGS_SAVE_AS = '' INDEX_SAVE_AS = 'index.html' -ARTICLE_URL = '{date:%d}' -ARTICLE_SAVE_AS = '{date:%d}/index.html' +ARTICLE_URL = '{short}' +ARTICLE_SAVE_AS = '{short}/index.html' PAGE_URL = '{slug}' PAGE_SAVE_AS = '{slug}/index.html' diff --git a/themes/lite/templates/index.html b/themes/lite/templates/index.html index 6827e84..5cfd9ad 100644 --- a/themes/lite/templates/index.html +++ b/themes/lite/templates/index.html @@ -4,12 +4,12 @@ Hi, I'm Tanner! I do firmware and web development in Calgary. Please sign my Guest Book! -==[ Contact Info +--[ Contact Info Email: site2@tannercollin.com Telegram: @tannercollin -==[ Resume +--[ Resume Firmware Engineer at Cabana Blockchain, 2018- Lead Hardware Engineer at Critical Control, 2016-2018 @@ -17,23 +17,23 @@ Electrical Engineer at Opener Aero, 2016-2016 Electrical Engineer Intern at Pason Systems, 2014-2015 BSc. Electrical Engineering from University of Calgary -==[ Projects +--[ Projects -QotNews * -Notica * -Spaceport * -t0txt * -standardnotes-fs * +QotNews* +Notica* +Spaceport* +t0txt* +standardnotes-fs* * external link -==[ Creations +--[ Creations {% for article in articles_page.object_list if article.category.name == 'Creations' %} {{ article.title }} {% endfor %} -==[ Writing +--[ Writing {% for article in articles_page.object_list if article.category.name == 'Writing' %} {{ article.title }}