From 51fd055576e0c648d7fc4b41120962e13eb8e3fd Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 19 May 2022 16:32:58 -0600 Subject: [PATCH] Fix lite theme to work with Obsidian --- content/.obsidian/workspace | 10 +++++----- content/Protospace.md | 2 +- content/QotNews.md | 4 ++-- pelicanconf_lite.py | 7 ++++++- publishconf_lite.py | 7 ++++++- themes/lite/templates/article.html | 12 ++++++++++-- themes/lite/templates/base.html | 2 +- themes/lite/templates/creations.html | 1 + themes/lite/templates/index.html | 15 +++++++-------- themes/lite/templates/projects.html | 19 +++++-------------- themes/lite/templates/writing.html | 1 + 11 files changed, 45 insertions(+), 35 deletions(-) diff --git a/content/.obsidian/workspace b/content/.obsidian/workspace index 3bc0279..ae11e41 100644 --- a/content/.obsidian/workspace +++ b/content/.obsidian/workspace @@ -9,7 +9,7 @@ "state": { "type": "markdown", "state": { - "file": "t0txt.md", + "file": "QotNews.md", "mode": "source", "source": false } @@ -69,7 +69,7 @@ "state": { "type": "backlink", "state": { - "file": "t0txt.md", + "file": "QotNews.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -86,7 +86,7 @@ "state": { "type": "outline", "state": { - "file": "t0txt.md" + "file": "QotNews.md" } } } @@ -98,13 +98,13 @@ }, "active": "7f0602e2f0f19f5d", "lastOpenFiles": [ + "QotNews.md", + "Protospace.md", "t0txt.md", "Notica.md", "Spaceport.md", "Backup Strategy.md", - "Protospace.md", "p.md", - "QotNews.md", "media/Screenshot from 2022-05-18 16-24-38.png", "media/Pasted image 20220518162452.png", "media/Pasted image 20220518162414.png" diff --git a/content/Protospace.md b/content/Protospace.md index 0fb8078..b7db2dc 100644 --- a/content/Protospace.md +++ b/content/Protospace.md @@ -3,7 +3,7 @@ Date: 2022-05-01 Category: Writing Summary: An outline of my projects at Calgary's makerspace Protospace. Wide: true -Short: protospace +Short: p [Protospace](https://protospace.ca) is Calgary's original makerspace, a place where people go to make things and work on projects. It's a two-bay industrial shop with a full wood working area, metal working area, electronics lab, two laser cutters, five 3D printers, and sewing room. Members pay $55/month for 24/7 access to the facility and everyone is equal: Protospace has no owners and decisions are made by the membership. diff --git a/content/QotNews.md b/content/QotNews.md index 83aaa37..d6e2a5d 100644 --- a/content/QotNews.md +++ b/content/QotNews.md @@ -10,8 +10,8 @@ You can find the [source code](https://git.tannercollin.com/tanner/qotnews) on m ![[qotnews1.png]] -I tried to make QotNews the perfect news site for me. I easily get annoyed by cookie banners and distracted by visual clutter when reading normal news articles. I especially hate auto-playing videos and "download our app" popups. All articles are in consistent styling that's easy to read: +I tried to make QotNews the perfect news site for me. I easily get annoyed by cookie banners and distracted by visual clutter when reading normal news articles. I especially hate auto-playing videos and "download our app" popups. All articles have consistent styling that's easy to read: ![[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 Local Storage, 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. \ No newline at end of file diff --git a/pelicanconf_lite.py b/pelicanconf_lite.py index d2bbf32..e6bd819 100644 --- a/pelicanconf_lite.py +++ b/pelicanconf_lite.py @@ -35,7 +35,12 @@ MARKDOWN = { 'output_format': 'html5', } -STATIC_PATHS = ['images', 'extra'] +PLUGINS = [ + 'obsidian', + 'linkclass', +] + +STATIC_PATHS = ['media', 'extra', 'text'] EXTRA_PATH_METADATA = { #'extra/favicon.svg': {'path': 'favicon.svg'}, diff --git a/publishconf_lite.py b/publishconf_lite.py index ac47c8e..28d5021 100644 --- a/publishconf_lite.py +++ b/publishconf_lite.py @@ -35,7 +35,12 @@ MARKDOWN = { 'output_format': 'html5', } -STATIC_PATHS = ['images', 'extra', 'text'] +PLUGINS = [ + 'obsidian', + 'linkclass', +] + +STATIC_PATHS = ['media', 'extra', 'text'] EXTRA_PATH_METADATA = { #'extra/favicon.svg': {'path': 'favicon.svg'}, diff --git a/themes/lite/templates/article.html b/themes/lite/templates/article.html index 10bc799..400bbf3 100644 --- a/themes/lite/templates/article.html +++ b/themes/lite/templates/article.html @@ -6,8 +6,14 @@ {% block style %}