Changes the index page to display the project main page

This commit is contained in:
2012-09-13 14:27:09 +02:00
parent f28a1c1edf
commit 0ef101bf54
17 changed files with 394 additions and 113 deletions

View File

@@ -29,12 +29,8 @@
{% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
<a href="https://github.com/jlengrand/FaceMovie">Find me on GitHub!</a>
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
<a href="https://github.com/jlengrand/FaceMovie">Take one picture of yourself a day, automatically generate a movie!</a>
</ul>
<p class="pull-right"><a href="{{ SITEURL }}/archives.html">[archives]</a> <a href="{{ SITEURL }}/tags.html">[tags]</a></p>
</div>
</div>
</div>
@@ -70,8 +66,8 @@
{% block indextitle %}<div class="page-header"><h1>{% block title %} {{ self.windowtitle() }} {% endblock %}</h1></div>{% endblock %}
{% block content %}{% endblock %}
<footer>
<p> Powered by <a href="http://alexis.notmyidea.org/pelican/">Pelican</a>, theme based on <a href="http://twitter.github.com/bootstrap/">Bootstrap, from Twitter</a>.</p>
<p>&copy; {{ AUTHOR }} 2011</p>
<p> Powered by <a href="http://pelican.notmyidea.org/en/3.0/index.html">Pelican</a>.</p>
<p>&copy; {{ AUTHOR }} 2012</p>
</footer>
</div>

View File

@@ -1,36 +1,12 @@
{% extends "base.html" %}
{% block indextitle %}{% endblock %}
{% block content %}
{% if articles %}
{% for article in (articles_page.object_list if articles_page else articles) %}
<div class='article'>
<h2>{{ article.title }}</h2>
<div class="well small">{% include "metadata.html" %}</div>
<div class="summary">{{ article.summary }} <a class="btn primary xsmall" href="{{ SITEURL }}/{{ article.url }}">more…</a>
</div>
</div>
{% endfor %}
{%endif%}
{% if articles_page and articles_paginator.num_pages > 1 %}
<div class="pagination">
<ul>
{% if articles_page.has_previous() %}
{% set num = articles_page.previous_page_number() %}
<li class="prev"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">&larr; Previous</a></li>
{% else %}
<li class="prev disabled"><a href="#">&larr; Previous</a></li>
{% endif %}
{% for num in range( 1, 1 + articles_paginator.num_pages ) %}
<li class="{{ 'active' if num == articles_page.number else '' }}"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">{{ num }}</a></li>
{% endfor %}
{% if articles_page.has_next() %}
<li class="next"><a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Next &rarr;</a></li>
{% else %}
<li class="next disabled"><a href="#">&rarr; Next</a></li>
{% endif %}
</ul>
</div>
{% endif %}
{% endblock %}
{%for page in PAGES%}
{%if page.title == "Ivolution Project"%}
<div class='page'>
<div class="page-header"><h1>{{ page.title }}</h1></div>
<div>{{ page.content }}</div>
</div>
{%endif%}
{%endfor%}
{% endblock %}