66 lines
3.1 KiB
HTML
66 lines
3.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}{{ NEST_INDEX_HEAD_TITLE }} {% if articles_page.has_previous() %}- page {{ articles_page.number }} {% endif %}- {{ super() }}{% endblock title %}
|
|
{% block description %}{{ SITENAME }}, {{ SITESUBTITLE }}{% endblock description %}
|
|
|
|
{% block headerstyle %}
|
|
{% if NEST_HEADER_IMAGES %}
|
|
<div class="header-container" style="background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('{{ SITEURL }}/images/{{ NEST_HEADER_IMAGES }}'); background-repeat: repeat, repeat; background-size: contain;">
|
|
{% else %}
|
|
<div class="header-container gradient">
|
|
{% endif %}
|
|
{% endblock headerstyle %}
|
|
|
|
{% block header %}
|
|
<div class="container header-wrapper">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="header-content">
|
|
<a href="https://www.lip6.fr/"><img class="mr20" height="60px" src="{{ SITEURL }}/images/common/LogoLIP6Blanc.png" alt="LIP6"></a>
|
|
<a href="https://www.sorbonne-universite.fr/"><img class="mr20" height="60px" src="{{ SITEURL }}/images/common/logo-SU-blanc-700px.png" alt="Sorbonne Universite"></a>
|
|
<a href="https://www.cnrs.fr/"><img class="mr20" height="60px" src="{{ SITEURL }}/images/common/LOGO-cnrs-white-large.png" alt="CNRS"></a>
|
|
<h1 class="header-title">{{ NEST_INDEX_HEADER_TITLE }}</h1>
|
|
<div class="header-underline"></div>
|
|
{% if NEST_INDEX_HEADER_SUBTITLE %}
|
|
<p class="header-subtitle header-subtitle-homepage">{{ NEST_INDEX_HEADER_SUBTITLE }}</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock header %}
|
|
|
|
{% block content %}
|
|
{% if DEFAULT_PAGINATION %}
|
|
<div class="archive-container">
|
|
<div class="container content archive">
|
|
{% for page in pages %}
|
|
{% if page.slug == "homepage" %}
|
|
{{ page.content }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
<h2><a href="{{ SITEURL }}/{{ articles_page.url }}">{{ NEST_INDEX_CONTENT_TITLE }} {% if articles_page.has_previous() %}<small>- page {{ articles_page.number }}</small>{% endif %}</a></h2>
|
|
<dl class="dl-horizontal">
|
|
{% for article in articles_page.object_list %}
|
|
<dt>{{ article.locale_date}}</dt>
|
|
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
|
{% endfor %}
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
{% include 'pagination.html' %}
|
|
{% else %}
|
|
<div class="archive-container">
|
|
<div class="container content archive">
|
|
<h2><a href="{{ SITEURL }}/">{{ NEST_INDEX_CONTENT_TITLE }}</a></h2>
|
|
<dl class="dl-horizontal">
|
|
{% for article in articles %}
|
|
<dt>{{ article.locale_date}}</dt>
|
|
<dd><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></dd>
|
|
{% endfor %}
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock content %}
|