From 1747178dc5a6aea5b301d82df425c59033e60ea2 Mon Sep 17 00:00:00 2001 From: Raymond Wanyoike Date: Tue, 17 Jun 2014 21:24:46 +0300 Subject: [PATCH] Moar clean --- README.md | 6 ++++ alchemy/templates/base.html | 7 ----- alchemy/templates/include/article_list.html | 25 ---------------- .../templates/{ => include}/pagination.html | 0 alchemy/templates/index.html | 29 +++++++++++++++++-- 5 files changed, 32 insertions(+), 35 deletions(-) delete mode 100644 alchemy/templates/include/article_list.html rename alchemy/templates/{ => include}/pagination.html (100%) diff --git a/README.md b/README.md index 616e9ea..a42de14 100644 --- a/README.md +++ b/README.md @@ -2,20 +2,24 @@ A theme for the [Pelican](http://getpelican.com) static site generator. A shameless rip off of @porterjamesj's [crowsfoot](http://github.com/porterjamesj/crowsfoot) theme. + ## Screenshot ![pelican-alchemy](screenshot.png) + ## Installation `git clone https://github.com/nairobilug/pelican-alchemy.git` Then set the pelican config variable `THEME` to the `alchemy` folder inside the cloned path. + ## Usage Pelican [documentation](http://docs.getpelican.com/en/latest/) + ### Theme Options | Config | Type | Description | @@ -44,10 +48,12 @@ An RSS icon will also appear on the nav if `FEED_ATOM` or `FEED_RSS` is set. | GOOGLE_ANALYTICS_ID | TEXT | Google analytics | | GOOGLE_ANALYTICS_DOMAIN | TEXT | Google analytics | + ## Live Demo [nairobilug.or.ke](http://nairobilug.or.ke) + ## License MIT diff --git a/alchemy/templates/base.html b/alchemy/templates/base.html index 6c35b66..14eb6ab 100644 --- a/alchemy/templates/base.html +++ b/alchemy/templates/base.html @@ -7,12 +7,9 @@ {% block title %}{{ SITENAME }}{% endblock title %} - {% include "include/feeds.html" %} - - {# HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries #} - diff --git a/alchemy/templates/include/article_list.html b/alchemy/templates/include/article_list.html deleted file mode 100644 index 823111a..0000000 --- a/alchemy/templates/include/article_list.html +++ /dev/null @@ -1,25 +0,0 @@ -
-
-
- - - {% if article.author and SHOW_ARTICLE_AUTHOR %} - - {% endif %} -
-
-

- {{ article.title }} -

-
- {{ article.content|striptags|truncate(256) }} -
-
-
-
diff --git a/alchemy/templates/pagination.html b/alchemy/templates/include/pagination.html similarity index 100% rename from alchemy/templates/pagination.html rename to alchemy/templates/include/pagination.html diff --git a/alchemy/templates/index.html b/alchemy/templates/index.html index b3ece5d..cc98d7d 100644 --- a/alchemy/templates/index.html +++ b/alchemy/templates/index.html @@ -6,9 +6,32 @@ {% endblock %}
{% for article in articles_page.object_list %} - {% include "include/article_list.html" %} +
+
+
+ + + {% if article.author and SHOW_ARTICLE_AUTHOR %} + + {% endif %} +
+
+

+ {{ article.title }} +

+
+ {{ article.content|striptags|truncate(256) }} +
+
+
+
{% endfor %}
- {% include 'pagination.html' %} - + {% include 'include/pagination.html' %} {% endblock %}