1
0
Fork 0
less-mnmlist/templates/base.html

76 lines
3.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}{{ SITENAME }}{%endblock%}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
{% block feedlinks %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" />
{% if FEED_RSS %}
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
{% endif %}
{% endblock %}
</head>
<body>
{% include 'github.html' %}
<header>
<h1><a href="{{ SITEURL }}/" id="site-title">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
<nav>
<ul>
{% for page in pages %}
<li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a>{% if not loop.last %}{% endif %}</li>
{% endfor %}
{% if categories|length > 1 %}
<li><a href="{{ SITEURL }}/categories.html">Categories</a></li>
{% endif %}
{% if tags|length > 1 %}
<li><a href="{{ SITEURL }}/tags.html">Tags</a></li>
{% endif %}
<li><a href="{{ SITEURL }}/archives.html">Archives</a></li>
</ul>
</nav>
</header>
{% block content %}
{% endblock %}
<footer>
<p id="theme-credit"><a href="http://mathieu.agopian.info/mnmlist/theme.html">Thème mnmlist</a></p>
</footer>
</body>
</html>
{% macro article_header(SITEURL, SITENAME, SITESUBTITLE, article, include_history=False) -%}
{% if include_history %}
<nav>
{% if article.prev_article %}
<a href="{{ SITEURL }}/{{ article.prev_article.url}}" class="prevarticle">
{{ article.prev_article.title }}
</a>
{% endif %}
{% if article.next_article %}
<a href="{{ SITEURL }}/{{ article.next_article.url}}" class="nextarticle">
{{ article.next_article.title }}
</a>
{% endif %}
</nav>
{% endif %}
<header>
<h2><a href="{{ SITEURL }}/{{ article.url }}" class="article-title">{{ article.title }}</a></h2>
<div class="posted-line">
{% if article.status == "draft" %}
<!-- Post at datetime {{ article.date|strftime("%H:%M %Y-%m-%d") }} -->
{% endif %}
Posted {% if not HIDE_DATE %}<time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>{% endif %} in <a href="{{ SITEURL }}/{{ article.category.url }}" class="article-category">{{ article.category }}</a>
{% if article.tags|length > 0 %}
<div class="tags">
{% for tag in article.tags|sort %}
<a href="{{ SITEURL }}/{{ tag.url }}" class="tag">{{ tag }}</a>
{% endfor %}
</div>
{% endif %}
</div>
</header>
{%- endmacro %}