From: Vladimír Vondruš Date: Sat, 9 Dec 2017 22:06:32 +0000 (+0100) Subject: theme: some welcome message for the First Run. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=12c319024b0a943aec4082dcc68fd3665884bff0;p=blog.git theme: some welcome message for the First Run. --- diff --git a/pelican-theme/templates/archives.html b/pelican-theme/templates/archives.html index 8d0d5178..17920902 100644 --- a/pelican-theme/templates/archives.html +++ b/pelican-theme/templates/archives.html @@ -17,6 +17,12 @@ {% else %} {% set article_list = articles %} {% endif %} + {% if not article_list %} +
+

Congratulations!

+ The m.css theme is alive and kicking! Now, feed it some articles so it doesn't feel so empty :) +
+ {% endif %} {% for article in article_list %}
{% macro header() %}{% include "article_header.html" %}{% endmacro %} diff --git a/pelican-theme/templates/index.html b/pelican-theme/templates/index.html index 28f5268e..2d19df32 100644 --- a/pelican-theme/templates/index.html +++ b/pelican-theme/templates/index.html @@ -12,8 +12,12 @@ {% block content %}
- {% block content_title %} - {% endblock content_title %} + {% if not articles_page.object_list %} +
+

Congratulations!

+ The m.css theme is alive and kicking! Now, feed it some articles so it doesn't feel so empty :) +
+ {% endif %} {% for article in articles_page.object_list %}
{% macro header() %}{% include "article_header.html" %}{% endmacro %}