1
0
Fork 0

Add list of rendered drafts

Why not, they're public anyway.
blog
LEdoian 1 year ago
parent 2eb7ecb6dc
commit 38ceb7cffd

@ -11,6 +11,7 @@ SITENAME = "LEdoian's Blog"
SITE_DESCRIPTION = "My personal webpage" # NOTE: Theme-specific SITE_DESCRIPTION = "My personal webpage" # NOTE: Theme-specific
SITEURL = 'https://blog.ledoian.cz' SITEURL = 'https://blog.ledoian.cz'
SOURCEURL = 'https://gitea.ledoian.cz/LEdoian/blog' # NOTE: specific…
RELATIVE_URLS = True RELATIVE_URLS = True
PATH = 'content' PATH = 'content'
@ -46,7 +47,7 @@ DELETE_OUTPUT_DIRECTORY = True
# I am the only author, so no author page # I am the only author, so no author page
# Also no index, as that is already a page… # Also no index, as that is already a page…
AUTHOR_SAVE_AS = '' AUTHOR_SAVE_AS = ''
DIRECT_TEMPLATES = ['categories', 'tags', 'archives'] DIRECT_TEMPLATES = ['categories', 'tags', 'archives', 'drafts']
STATIC_PATHS = [ STATIC_PATHS = [
'images', 'images',

@ -0,0 +1,32 @@
{% extends 'base.html' %}
{% set page_title = "Drafts" %}
{# This page is not to be linked from anywhere… #}
{% block content %}
<div style="background-color: #c03;">
<h2>Warning</h2>
<p>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, …</p>
<p><b>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.</b></p>
</div>
<p>However, the content presented here is already present on the main branch of
the <a href="{{ SOURCEURL }}">blog's repository</a>, so you could read it anyway.
Here it is at one place and rendered, so it's maybe less pain to read.</p>
<ul>
{% for article in drafts %}
<li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
{% else %}
<p>No draft articles currently.</p>
{% endfor %}
{% for page in draft_pages %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>
{% else %}
<p>No draft pages currently.</p>
{% endfor %}
{% endblock content %}
</ul>
Loading…
Cancel
Save