valberg.dk/theme/templates/base.html

113 lines
4.4 KiB
HTML
Raw Normal View History

2023-05-16 15:39:44 +00:00
<!DOCTYPE html>
<html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
<head>
{% block head %}
<title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
<meta charset="utf-8"/>
<meta name="generator" content="Pelican"/>
{% if FEED_ALL_ATOM %}
<link href="{{ FEED_DOMAIN }}/
{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}"
type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed"/>
{% endif %}
{% if FEED_ALL_RSS %}
<link href="{{ FEED_DOMAIN }}/
{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}"
type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed"/>
{% endif %}
{% if FEED_ATOM %}
<link href="{{ FEED_DOMAIN }}/{% if FEED_ATOM_URL %}{{ FEED_ATOM_URL }}{% else %}{{ FEED_ATOM }}{% endif %}"
type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed"/>
{% endif %}
{% if FEED_RSS %}
<link href="{{ FEED_DOMAIN }}/{% if FEED_RSS_URL %}{{ FEED_RSS_URL }}{% else %}{{ FEED_RSS }}{% endif %}"
type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed"/>
{% endif %}
{% if CATEGORY_FEED_ATOM and category %}
<link href="{{ FEED_DOMAIN }}/
2023-05-16 19:30:09 +00:00
2023-05-16 15:39:44 +00:00
{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}{% endif %}"
type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed"/>
{% endif %}
{% if CATEGORY_FEED_RSS and category %}
<link href="{{ FEED_DOMAIN }}/
2023-05-16 19:30:09 +00:00
2023-05-16 15:39:44 +00:00
{% if CATEGORY_FEED_RSS_URL %}{{ CATEGORY_FEED_RSS_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_RSS.format(slug=category.slug) }}{% endif %}"
type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed"/>
{% endif %}
{% if TAG_FEED_ATOM and tag %}
<link href="{{ FEED_DOMAIN }}/
2023-05-16 19:30:09 +00:00
2023-05-16 15:39:44 +00:00
{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_ATOM.format(slug=tag.slug) }}{% endif %}"
type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed"/>
{% endif %}
{% if TAG_FEED_RSS and tag %}
<link href="{{ FEED_DOMAIN }}/
2023-05-16 19:30:09 +00:00
2023-05-16 15:39:44 +00:00
{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_RSS.format(slug=tag.slug) }}{% endif %}"
type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed"/>
{% endif %}
{% endblock head %}
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/code_highlight.css"/>
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/bootstrap/css/bootstrap.min.css"/>
2023-05-16 19:30:09 +00:00
<style>
blockquote {
font-style: italic;
margin-top: 10px;
margin-bottom: 10px;
margin-left: 20px;
padding-left: 15px;
border-left: 3px solid #ccc;
}
.highlight {
padding: 1.25rem 1.25rem .25rem 1.25rem !important;
margin-bottom: 1.5rem !important;
}
</style>
2023-05-16 15:39:44 +00:00
</head>
2023-05-17 12:48:39 +00:00
<body id="index" class="home">
2023-05-16 15:39:44 +00:00
2023-05-16 19:30:09 +00:00
<header class="container d-flex justify-content-center">
2023-05-19 15:15:52 +00:00
<h1 class="display-3">
<a href="{{ SITEURL }}/" class="text-decoration-none">
2023-05-16 19:30:09 +00:00
valberg.dk
</a>
</h1>
2023-05-19 15:15:52 +00:00
2023-05-16 19:30:09 +00:00
</header><!-- /#banner -->
2023-05-16 15:39:44 +00:00
2023-05-19 15:15:52 +00:00
<div class="row">
<div class="col-8 offset-2 d-flex justify-content-center">
{% if DISPLAY_PAGES_ON_MENU %}
{% for p in pages %}
<a href="{{ SITEURL }}/{{ p.url }}" {% if not loop.last %}class="me-2"{% endif %}>
{{ p.title }}
</a>
{% endfor %}
{% endif %}
</div>
</div>
<hr>
2023-05-16 15:39:44 +00:00
2023-05-16 19:30:09 +00:00
{% block jumbotron %}
{% endblock %}
2023-05-16 15:39:44 +00:00
2023-05-17 12:48:39 +00:00
<div class="container h-100">
2023-05-16 19:30:09 +00:00
<div class="row">
<div class="col-12 col-lg-8 offset-lg-2">
2023-05-16 19:30:09 +00:00
{% block content %}
{% endblock %}
</div>
</div>
2023-05-16 15:39:44 +00:00
</div>
</body>
</html>