diff options
author | Scott Kensell <scott.kensell@prezi.com> | 2014-05-17 19:49:35 +0200 |
---|---|---|
committer | Scott Kensell <scott.kensell@prezi.com> | 2014-05-17 19:49:35 +0200 |
commit | 802d891506bb6ef2f9b57a5927f1ddd2349d2f9e (patch) | |
tree | 53e01dbc4b4669ec904e01aafeb995c35eaea03a /SoMA2/templates/index.html | |
parent | c3ae06311249b930bb057600d1c76063e847ef76 (diff) | |
download | pelican-themes-802d891506bb6ef2f9b57a5927f1ddd2349d2f9e.tar.gz |
Copied the SOMA template
Diffstat (limited to 'SoMA2/templates/index.html')
-rw-r--r-- | SoMA2/templates/index.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/SoMA2/templates/index.html b/SoMA2/templates/index.html new file mode 100644 index 0000000..4f35eee --- /dev/null +++ b/SoMA2/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.last and (articles_page.has_previous() or not articles_page.has_previous() and 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 %} |