From 12c319024b0a943aec4082dcc68fd3665884bff0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 9 Dec 2017 23:06:32 +0100 Subject: [PATCH] theme: some welcome message for the First Run. --- pelican-theme/templates/archives.html | 6 ++++++ pelican-theme/templates/index.html | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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 %} -- 2.30.2