project now creates a static site using python

This commit is contained in:
chrisbell committed 2026-11-20 17:20:47 -06:00
1 parent 65f63b05d3
commit aa7ef06858
15 files changed
+1155 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
{% extends "base.html" %}
{% block content %}
<h2>Page not found</h2>
<p>That page doesn't exist. <a href="/">Head back home</a>.</p>
{% endblock %}
+39
View File
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% set title = (meta.title ~ " | " ~ site.name) if meta.title else site.name %}
{% set description = meta.description or site.description %}
<title>{{ title }}</title>
<meta name="description" content="{{ description }}">
<link rel="canonical" href="{{ site.base_url }}{{ url }}">
{% if meta.noindex %}
<meta name="robots" content="noindex">{% endif %}
<meta property="og:type" content="website">
<meta property="og:site_name" content="{{ site.name }}">
<meta property="og:title" content="{{ title }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:url" content="{{ site.base_url }}{{ url }}">
<meta property="og:image" content="{{ site.base_url }}/assets/logo.png">
<meta name="twitter:card" content="summary">
<link rel="icon" href="/assets/logo.png">
<link rel="stylesheet" href="/styles/main.css">
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
{% include "partials/header.html" %}
<main id="main" tabindex="-1">
{% block content %}{{ content|safe }}{% endblock %}
</main>
{% include "partials/footer.html" %}
{% for s in meta.scripts or [] %}
<script src="/scripts/{{ s }}" defer></script>
{% endfor %}
</body>
</html>
+6
View File
@@ -0,0 +1,6 @@
<footer class="site-footer">
<p class="tagline">Progress begins with you.</p>
<p>Made with &#9829; by <a href="https://bellsworne.com">Bellsworne</a></p>
<p>View our <a href="/privacy/">Privacy Policy</a></p>
<p class="legal">©{{ year }} {{ site.name }}</p>
</footer>
+11
View File
@@ -0,0 +1,11 @@
<header class="site-header">
<div class="masthead">
<img src="/assets/logo.png" alt="Alabama Progress logo" id="header-icon" width="56" height="56">
<h1>{{ site.name }}</h1>
</div>
<nav aria-label="Main">
{% for label, href in nav %}
<a href="{{ href }}" {% if href==url %} aria-current="page" {% endif %}>{{ label }}</a>
{% endfor %}
</nav>
</header>