undefined-theme/templates/base.html

95 lines
2.9 KiB
HTML
Raw Normal View History

2023-10-24 13:53:49 +02:00
<!DOCTYPE html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
{% block head %}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="Pelican" />
<title>
{% block head_title %}
{{ SITENAME | striptags }}
{% endblock head_title %}
</title>
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/reset.css" />
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/undef.css" />
{% if FAVICON %}
<link rel="icon" type="image/svg+xml" href="{{ SITEURL }}/{{ FAVICON }}" sizes="any" />
{% endif %}
{% if FEED_ALL_ATOM %}
<link rel="alternate" href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" title="{{ SITENAME }} Atom Feed" />
{% endif %}
{% if FEED_ALL_RSS %}
<link rel="alternate" href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" title="{{ SITENAME }} RSS Feed" />
{% endif %}
{% endblock head %}
</head>
<body>
<header>
<a href="/">
<h1>
{{ SITENAME }}
</h1>
</a>
</header>
<main>
{% block shownav %}
<input type="checkbox" id="shownav">
<label for="shownav">menu</label>
{% endblock shownav %}
<nav>
<ul>
{% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %}
<li>
<a href="{{ SITEURL }}/{{ p.url }}">
{{ p.title }}
</a>
</li>
{% endfor %}
{% endif %}
{% if DISPLAY_CATEGORIES_ON_MENU %}
{% for c in categories %}
<li>
<a href="{{ SITEURL }}/{{ c.url }}">
{{ c.name }}
</a>
</li>
{% endfor %}
{% endif %}
<li>
<a href="{{ SITEURL }}/{{ ARCHIVES_SAVE_AS }}">
Blog
</a>
</li>
{% if FEED_ALL_ATOM %}
<li>
<a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}">
Atom Feed
</a>
</li>
{% endif %}
{% if FEED_ALL_RSS %}
<li>
<a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}">
RSS Feed
</a>
</li>
{% endif %}
</ul>
<footer>
{% for title, link in LINKS %}
<a href="{{ link }}">
{{ title | lower }}
</a>
{% if not loop.last %}
::
{% endif %}
{% endfor %}
</footer>
</nav>
{% block main %}
{% endblock main %}
</main>
</body>
</html>