From 6bd413c951607034dc6ca14d849929180ad21351 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 1 May 2023 15:13:56 -0600 Subject: [PATCH] Specify sort order of projects --- content/Notica.md | 1 + content/QotNews.md | 3 ++- content/Secret Garden.md | 3 ++- content/Spaceport.md | 3 ++- content/t0txt.md | 3 ++- themes/lite/templates/index.html | 2 +- themes/theme/templates/index.html | 2 +- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/content/Notica.md b/content/Notica.md index 20a6119..05740e7 100644 --- a/content/Notica.md +++ b/content/Notica.md @@ -3,6 +3,7 @@ Date: 2022-05-17 Category: Projects Summary: Send browser notifications from your terminal. No installation. No registration. Short: n +Order: 5 [Notica](https://notica.us) allows you to send browser notifications from your terminal to know when a slow command has finished running. It doesn't require installing anything or registering an account. It also works over ssh unlike `notify-send`. diff --git a/content/QotNews.md b/content/QotNews.md index d6e2a5d..71d4888 100644 --- a/content/QotNews.md +++ b/content/QotNews.md @@ -3,6 +3,7 @@ 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. Short: q +Order: 1 [QotNews](https://news.t0.vc) is a news meta-aggregator. It gathers top articles from four news aggregators: Hacker News, Reddit, Lobsters, and Tildes along with their comments. The articles are then transformed into readable versions with consistent formatting and distractions removed. All articles in the main feed are preloaded by the client so they load instantly when clicked on. @@ -14,4 +15,4 @@ I tried to make QotNews the perfect news site for me. I easily get annoyed by co ![[qotnews2.png]] -It's by far my favourite project and has paid the most dividends for the amount of time I invested in programming it. I use it multiple times per day and it's become the main source of all my news. Since all the articles and comments are preloaded and saved in localStorage, it's also great for reading on airplanes. \ No newline at end of file +It's by far my favourite project and has paid the most dividends for the amount of time I invested in programming it. I use it multiple times per day and it's become the main source of all my news. Since all the articles and comments are preloaded and saved in localStorage, it's also great for reading on airplanes. diff --git a/content/Secret Garden.md b/content/Secret Garden.md index ac4562b..4841ee9 100644 --- a/content/Secret Garden.md +++ b/content/Secret Garden.md @@ -3,9 +3,10 @@ Date: 2023-04-29 Category: Projects Summary: About the hydroponics garden in my basement. Short: b +Order: 2 I have a "Secret Garden" in a storage room in the basement of my house. It's currently a [[Hydroponics | hydroponics]] system growing lettuce. You can see an hourly photo of it below: ![a hydroponics garden, taken from a webcam](https://ms.tannercollin.com/garden/garden_lo.jpg) -Click the photo for a larger verion. \ No newline at end of file +Click the photo for a larger verion. diff --git a/content/Spaceport.md b/content/Spaceport.md index 5009a46..584ffb8 100644 --- a/content/Spaceport.md +++ b/content/Spaceport.md @@ -3,6 +3,7 @@ Date: 2022-05-16 Category: Projects Summary: Member portal for Calgary Protospace. It tracks dues, courses, training, access cards, and more. Short: m +Order: 3 [Spaceport](https://my.protospace.ca) is the member portal that I wrote for [[Protospace]], a makerspace that I frequent in Calgary. It is by far my largest project and the one I've spent the most time on. It has a database of all our members and tracks their transactions like dues and training fees. It allows members to sign up for classes and our instructors to teach courses. It also manages the access cards that members use to get into the building. @@ -32,4 +33,4 @@ Spaceport is tightly coupled to Protospace and has many integrations: As of writing this there's 234 current Protospace members and 1408 historical or inactive memberships that it manages. Data is stored in a 49 MB SQLite database which makes it easy to back up or sync with my development server. The back end is written in Django / Python and the front end is React / JavaScript with Semantic UI for the graphics. -Site data is automatically compressed and [[Backup Strategy | backed up]] daily by two members. The software is free and open-source and can be set up by reading the documentation. Protospace directors also have admin access to the server's host in case something happens to me. \ No newline at end of file +Site data is automatically compressed and [[Backup Strategy | backed up]] daily by two members. The software is free and open-source and can be set up by reading the documentation. Protospace directors also have admin access to the server's host in case something happens to me. diff --git a/content/t0txt.md b/content/t0txt.md index 0fe2e32..f8cdea7 100644 --- a/content/t0txt.md +++ b/content/t0txt.md @@ -3,6 +3,7 @@ Date: 2022-05-15 Category: Projects Summary: Minimal command line pastebin. Allows you to upload text notes from a bash pipe or web browser. Short: t +Order: 4 [t0txt](https://txt.t0.vc) is a minimalist pastebin. You can upload text notes from the command line by using a bash alias or by submitting text through the web form. @@ -30,4 +31,4 @@ The spam cleaning script iterates over all pastes. If the paste contains a word ## Don't Advertise your Pastebin Pastebins are one of those projects not worth advertising. You should keep it within your circle of friends and grow by word-of-mouth and people seeing the links to your pastes. Additional users don't really get you anything except a larger database you have to back up. Advertising it will just bring spam which tarnishes the reputation of your domain and any subdomains on it. -I regret advertising t0txt, but the cat is already out of the bag so it doesn't really matter going forward. It would be interesting to make a pastebin where the paste's domain is different than the submission domain if you want to keep it somewhat hidden. \ No newline at end of file +I regret advertising t0txt, but the cat is already out of the bag so it doesn't really matter going forward. It would be interesting to make a pastebin where the paste's domain is different than the submission domain if you want to keep it somewhat hidden. diff --git a/themes/lite/templates/index.html b/themes/lite/templates/index.html index 9504d1f..eda2816 100644 --- a/themes/lite/templates/index.html +++ b/themes/lite/templates/index.html @@ -14,7 +14,7 @@ BSc. Electrical Engineering from University of Calgary Projects -{% for article in articles_page.object_list if article.category.name == 'Projects' %} +{% for article in articles_page.object_list|selectattr('category.name', '==', 'Projects')|sort(attribute='order') %} {% if loop.index <= 4 %} {{ article.title }} {% endif %} diff --git a/themes/theme/templates/index.html b/themes/theme/templates/index.html index 80af6db..1e5a826 100644 --- a/themes/theme/templates/index.html +++ b/themes/theme/templates/index.html @@ -24,7 +24,7 @@ build tools that make my life easier.

- {% for article in articles_page.object_list if article.category.name == 'Projects' %} + {% for article in articles_page.object_list|selectattr('category.name', '==', 'Projects')|sort(attribute='order') %}

{{ article.title }}

{{ article.summary }}