diff options
author | Atif Haider <mail@atifhaider.com> | 2014-01-07 14:43:59 +0530 |
---|---|---|
committer | Atif Haider <mail@atifhaider.com> | 2014-01-07 14:43:59 +0530 |
commit | 8468e45a55634a0fccc1ac8a33d9cdd3cdc023fd (patch) | |
tree | 970dd45c1a9912399fb0a1fe40dbf326948a0f0b /SoMA/templates/index.html | |
parent | 91663921bb271183b51de9a6543de8f912bd7c65 (diff) | |
download | pelican-themes-8468e45a55634a0fccc1ac8a33d9cdd3cdc023fd.tar.gz |
Simple, intuitive and responsive theme added.
Diffstat (limited to 'SoMA/templates/index.html')
-rw-r--r-- | SoMA/templates/index.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/SoMA/templates/index.html b/SoMA/templates/index.html new file mode 100644 index 0000000..76579b5 --- /dev/null +++ b/SoMA/templates/index.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} +{% block content_title %}{% endblock %} +{% block content %} +{% if articles %} + {% for article in articles_page.object_list %} + + {# First item #} + + <aside id="featured"> + <div class="body"> + <article> + <h1 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1> + {% include 'article_infos.html' %}{{ article.content }} + </article> + {% if loop.length == 1 %} + {% include 'pagination.html' %} + {% endif %} + </div> + </aside><!-- /#featured --> + + + {% endfor %} +{% else %} +<section id="content" > + <div class="body"> + <h2>Pages</h2> + {% for page in PAGES %} + <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li> + {% endfor %} + </div> +</section> +{% endif %} +{% endblock content %} |