pyro/templates/base.html
Freyja Wildes a536012563 [templates] Fix issues with HTML to comply with W3C validator suggestions
- In index, h1 tag are replaced with h2 tags
- Remove orphan span tag for the pagination HTML
- Remove all unnecessary trailing slash for tag like link
- Remove stary img end tag for banner
- Use configuration value for the lang attribute on the html tag
- in article, make title be h2 tags instead of h1 tags and change CSS
  rules to match
2025-04-26 00:16:58 +02:00

44 lines
1.6 KiB
HTML

<!doctype html>
<html lang="{{ DEFAULT_LANG }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{% block meta_description %}{{ SITENAME }}, {{ TAGLINE }}{% endblock meta_description %}">
{% if FEED_ALL_ATOM %}
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" title="{{ SITENAME }} Full Atom Feed">
{% endif %}
{% if FEED_ALL_RSS %}
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" title="{{ SITENAME }} Full RSS Feed">
{% endif %}
{% if FEED_ATOM %}
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" title="{{ SITENAME }} Atom Feed">
{% endif %}
{% if FEED_RSS %}
<link rel="alternate" href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" title="{{ SITENAME }} RSS Feed">
{% endif %}
{% block head %}
<title>{% block page_title %}{{ SITENAME }}{% endblock %}</title>
{% endblock head %}
{% if FAVICON %}
<link href="//{{ FAVICON }}" rel="icon">
{% endif %}
{% block head_css %}
<link rel="stylesheet" href="/theme/css/pyro.css">
{% endblock %}
</head>
<body>
{% block banner %}
{% include 'banner.html' %}
{% endblock %}
<div class="content">
{% block content %}
{% endblock %}
</div>
{% include 'footer.html' %}
</body>
</html>