mirror of
https://github.com/TrentSPalmer/attentionspanhistory.git
synced 2024-11-17 02:21:30 -08:00
114 lines
7.5 KiB
HTML
114 lines
7.5 KiB
HTML
|
<!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="viewport" content="width=device-width, initial-scale=1">
|
||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||
|
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/{{ CSS_FILE }}" />
|
||
|
<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 }}/{% 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 }}/{% 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 }}/{% 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 }}/{% 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 %}
|
||
|
|
||
|
{% if article is defined %}
|
||
|
<meta property="og:type" content="article" />
|
||
|
<meta property="og:url" content="{{ SITEURL }}/{{ article.url }}" />
|
||
|
<meta property="og:title" content="{{ article.title | replace("\"", """) }}" />
|
||
|
<meta property="og:description" content="{{ article.content | striptags | replace("\"", """) | truncate(196, False, '...') }}" />
|
||
|
{% elif page is defined %}
|
||
|
<meta property="og:type" content="website" />
|
||
|
<meta property="og:url" content="{{ SITEURL }}/{{ page.url }}" />
|
||
|
<meta property="og:title" content="{{ SITENAME }} - {{ page.title | replace("\"", """) }}" />
|
||
|
<meta property="og:description" content="{{ page.content | striptags | replace("\"", """) | truncate(196, False, '...') }}" />
|
||
|
{% else %}
|
||
|
<meta property="og:type" content="website" />
|
||
|
<meta property="og:url" content="{{ SITEURL }}/{{ output_file }}" />
|
||
|
<meta property="og:title" content="{{ SITENAME }}" />
|
||
|
<meta property="og:description" content="A page on Attention Span History" />
|
||
|
{% endif %}
|
||
|
<meta property="og:image" content="{{ SITEURL }}/images/trent.jpg" />
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body id="index" class="home mx-auto px-1" style="max-width: 1000px;">
|
||
|
<header id="banner" class="body mx-auto">
|
||
|
<h1><a class="text-decoration-none text-dark fs-2" href="{{ SITEURL }}/">{{ SITENAME }}{% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
|
||
|
</header><!-- /#banner -->
|
||
|
<nav id="menu" class="navbar navbar-expand-lg navbar-light">
|
||
|
|
||
|
<div class="container-fluid">
|
||
|
<a class="navbar-brand" href="/">Blog</a>
|
||
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
|
||
|
<span class="navbar-toggler-icon"></span>
|
||
|
</button>
|
||
|
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
|
||
|
<div class="navbar-nav">
|
||
|
|
||
|
{% if FEED_ALL_ATOM %}
|
||
|
<a class="nav-link" href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate">Atom</a>
|
||
|
{% endif %}
|
||
|
{% if FEED_ALL_RSS %}
|
||
|
<a class="nav-link" href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate">RSS</a>
|
||
|
{% endif %}
|
||
|
{% if DISPLAY_PAGES_ON_MENU %}
|
||
|
{% for p in pages %}
|
||
|
{% if p == page %}
|
||
|
<a class="nav-link active" href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
|
||
|
{% else %}
|
||
|
<a class="nav-link" href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% if DISPLAY_CATEGORIES_ON_MENU %}
|
||
|
{% for cat, null in categories %}
|
||
|
{% if cat == category %}
|
||
|
<a class="nav-link active" href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>
|
||
|
{% else %}
|
||
|
<a class="nav-link" href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% endif %}
|
||
|
{% for title, link in MENUITEMS %}
|
||
|
<a class="nav-link" href="{{ link }}">{{ title }}</a>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav><!-- /#menu -->
|
||
|
{% block content %}
|
||
|
{% endblock %}
|
||
|
<footer id="contentinfo" class="body">
|
||
|
<address id="about" class="vcard body text-center">
|
||
|
Proudly powered by <a href="https://getpelican.com/">Pelican</a>,
|
||
|
which takes great advantage of <a href="https://www.python.org/">Python</a>.
|
||
|
</address><!-- /#about -->
|
||
|
</footer><!-- /#contentinfo -->
|
||
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
|
||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
|
||
|
</body>
|
||
|
</html>
|