From ba497bfacd26e4eeecfadedb71f4144660a20e19 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Mon, 17 Oct 2022 00:26:02 -0400 Subject: [PATCH] favicon and update blog --- content/blog/2022/10/2022-10-16_pelican.rst | 6 ++++++ content/{extra => extras}/favicon.ico | Bin pelicanconf.py | 8 ++++++-- publishconf.py | 7 +++++-- 4 files changed, 17 insertions(+), 4 deletions(-) rename content/{extra => extras}/favicon.ico (100%) diff --git a/content/blog/2022/10/2022-10-16_pelican.rst b/content/blog/2022/10/2022-10-16_pelican.rst index 7f426af..3dd6cb8 100644 --- a/content/blog/2022/10/2022-10-16_pelican.rst +++ b/content/blog/2022/10/2022-10-16_pelican.rst @@ -17,5 +17,11 @@ All I have to do is run ``invoke publish`` and it will be on the server. No PHP, no database. All files properly in their right places. +It comes with your standard blogging experience: Categories, Tags, RSS/Atom feeds, etc. +You need to set up Disqus — which I probably won't — in order to get comments though. + +I'm pleased with it. +I have posts go under YYYY/MM/slug.html files, which I like for organization. +Posting images is easy, I just toss it under ``content/images/YYYY/MM/`` with date for organization. diff --git a/content/extra/favicon.ico b/content/extras/favicon.ico similarity index 100% rename from content/extra/favicon.ico rename to content/extras/favicon.ico diff --git a/pelicanconf.py b/pelicanconf.py index ee0d238..c0c5923 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -30,6 +30,7 @@ TIMEZONE = 'America/New_York' DEFAULT_LANG = 'en' # Feed generation is usually not desired when developing +# FEED_DOMAISITEURL FEED_ALL_ATOM = None CATEGORY_FEED_ATOM = None TRANSLATION_FEED_ATOM = None @@ -45,15 +46,18 @@ DELETE_OUTPUT_DIRECTORY = True STATIC_PATHS = ( 'images', - '_meta', + 'extras', ) ARTICLE_PATHS = ['blog', ] ARTICLE_SAVE_AS = '{date:%Y}/{date:%M}/{slug}.html' ARTICLE_URL = '{date:%Y}/{date:%M}/{slug}.html' +YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html' +MONTH_ARCHIVE_URL = 'posts/{date:%Y}/{date:%M}/index.html' + DEFAULT_METADATA = { 'status': 'draft', - '_meta/favicon.ico': {'path': 'favicon.ico'}, + 'extras/favicon.ico': {'path': 'favicon.ico'}, } diff --git a/publishconf.py b/publishconf.py index 7c71355..5abf65e 100644 --- a/publishconf.py +++ b/publishconf.py @@ -10,8 +10,11 @@ from pelicanconf import * SITEURL = 'https://tyrel.dev/blog' RELATIVE_URLS = False -FEED_ALL_ATOM = 'feeds/all.atom.xml' -CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml' +FEED_ATOM = 'tyrel-dev.atom.xml' +FEED_RSS = 'tyrel-dev.rss' +FEED_ALL_ATOM = 'tyrel-dev.all.xml' +FEED_ALL_RSS = 'tyrel-dev.all.rss' + DELETE_OUTPUT_DIRECTORY = True