From 38ceb7cffd20196870850188415ba17d22e8ee0f Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Sun, 7 Jan 2024 17:04:06 +0100 Subject: [PATCH] Add list of rendered drafts Why not, they're public anyway. --- pelicanconf.py | 3 ++- test-theme/templates/drafts.html | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 test-theme/templates/drafts.html diff --git a/pelicanconf.py b/pelicanconf.py index 4318884..b973ac9 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -11,6 +11,7 @@ SITENAME = "LEdoian's Blog" SITE_DESCRIPTION = "My personal webpage" # NOTE: Theme-specific SITEURL = 'https://blog.ledoian.cz' +SOURCEURL = 'https://gitea.ledoian.cz/LEdoian/blog' # NOTE: specific… RELATIVE_URLS = True PATH = 'content' @@ -46,7 +47,7 @@ DELETE_OUTPUT_DIRECTORY = True # I am the only author, so no author page # Also no index, as that is already a page… AUTHOR_SAVE_AS = '' -DIRECT_TEMPLATES = ['categories', 'tags', 'archives'] +DIRECT_TEMPLATES = ['categories', 'tags', 'archives', 'drafts'] STATIC_PATHS = [ 'images', diff --git a/test-theme/templates/drafts.html b/test-theme/templates/drafts.html new file mode 100644 index 0000000..b2678bf --- /dev/null +++ b/test-theme/templates/drafts.html @@ -0,0 +1,32 @@ +{% extends 'base.html' %} +{% set page_title = "Drafts" %} +{# This page is not to be linked from anywhere… #} +{% block content %} +
+

Warning

+

Articles linked from here are work in progress. You are not expected to + understand them, read them, comment on them, etc. The articles might not be + true, representative of anyone's opinions, suitable for neither minors nor + majors, …

+ +

IOW, hic sunt leones. You have been warned. Proceed at your own risk. + Articles here are provided as-is, without any warranty, express or + implied.

+
+

However, the content presented here is already present on the main branch of +the blog's repository, so you could read it anyway. +Here it is at one place and rendered, so it's maybe less pain to read.

+ +