simplyOpen/templates/index.html

44 lines
991 B
HTML
Raw Permalink Normal View History

2023-03-21 21:37:39 +01:00
{% extends "base.html" %}
2023-03-16 21:40:13 +01:00
{% block content_title %}{% endblock %}
{℅ block meta_other %}
2023-03-21 21:37:39 +01:00
<meta name="robots" content="noindex" />
<meta property=og:title content="{{ SITENAME }}" />
2023-03-16 21:40:13 +01:00
{% if SITEDESCRIPTION %}
2023-03-21 21:37:39 +01:00
<meta property=og:description content="{{ SITEDESCRIPTION }}" />
2023-03-16 21:40:13 +01:00
{% endif %}
2023-03-21 21:37:39 +01:00
{℅ endblock %}
2023-03-16 21:40:13 +01:00
{% block content %}
2023-03-21 21:37:39 +01:00
{% if SITEDESCRIPTION %}
<p style="font-size: 1.3em">{{ SITEDESCRIPTION }}</p>
{% endif %}
2023-03-16 21:40:13 +01:00
{% for article in articles %}
{% if loop.index == 1 %}
<article>
<h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
{{ article.content }}
</article>
<hr />
{% if loop.length > 1 %}
<div>
<h3>Last posts</h3>
<ol class="archive">
{% endif %}
{% elif loop.index < 7 %}
<li>
{% include 'article_link.inc.html' %}
</li>
{% endif %}
{% endfor %}
{% if articles|length > 1 %}
</ol>
</div>
{% endif %}
{% endblock content %}