mirror of
https://github.com/jlengrand/IvolutionWebsite.git
synced 2026-03-10 08:31:18 +00:00
Changes the index page to display the project main page
This commit is contained in:
@@ -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>© {{ AUTHOR }} 2011</p>
|
||||
<p> Powered by <a href="http://pelican.notmyidea.org/en/3.0/index.html">Pelican</a>.</p>
|
||||
<p>© {{ AUTHOR }} 2012</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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">← Previous</a></li>
|
||||
{% else %}
|
||||
<li class="prev disabled"><a href="#">← 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 →</a></li>
|
||||
{% else %}
|
||||
<li class="next disabled"><a href="#">→ 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 %}
|
||||
Reference in New Issue
Block a user