chiark / gitweb /
theme: some welcome message for the First Run.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 9 Dec 2017 22:06:32 +0000 (23:06 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 11 Dec 2017 01:48:25 +0000 (02:48 +0100)
pelican-theme/templates/archives.html
pelican-theme/templates/index.html

index 8d0d5178140fd6956da40d006cc7e4457708082f..17920902652891b2abbe6a074eac638fc0723daf 100644 (file)
       {% else %}
       {% set article_list = articles %}
       {% endif %}
+      {% if not article_list %}
+      <div class="m-note m-success">
+        <h3>Congratulations!</h3>
+        The m.css theme is alive and kicking! Now, feed it some articles so it doesn't feel so empty :)
+      </div>
+      {% endif %}
       {% for article in article_list %}
       <article>
         {% macro header() %}{% include "article_header.html" %}{% endmacro %}
index 28f5268e064f7325615f33fee6f44ea9b2b89044..2d19df3284d9540fa6aec416f83d26e7595288eb 100644 (file)
 
 {% block content %}
     <div class="m-col-m-10">
-      {% block content_title %}
-      {% endblock content_title %}
+      {% if not articles_page.object_list %}
+      <div class="m-note m-success">
+        <h3>Congratulations!</h3>
+        The m.css theme is alive and kicking! Now, feed it some articles so it doesn't feel so empty :)
+      </div>
+      {% endif %}
       {% for article in articles_page.object_list %}
       <article>
         {% macro header() %}{% include "article_header.html" %}{% endmacro %}