blog/theme/templates/base.html

46 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
<meta charset="utf-8">
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/main.css">
<meta property="og:site_name" content="{{ SITENAME }}">
{% block extra_head %}
<meta property="og:title" content="{{ SITENAME }}">
{% endblock extra_head %}
</head>
<body>
<header>
<h1>
<a href="{{ SITEURL }}/">{{ SITENAME }}</a>
</h1>
<nav>
<ul>
{% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
</ul>
</nav>
<nav>
<ul>
{% for title, icon, link in SOCIAL %}
<li><a href="{{ link }}" rel="me">
<i class="fa fa-lg {{ icon }}" aria-hidden="true" title="{{ title }}"></i>
<span class="sr-only">{{ title }}</span>
</a></li>
{% endfor %}
<li><a href="{{ SITEURL }}/{{FEED_ALL_ATOM}}" download>
<i class="fa fa-lg fa-rss" aria-hidden="true" title="Atom feed"></i>
<span class="sr-only">Atom feed</span>
</a></li>
</ul>
</nav>
</header>
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>