Files
sunday/templates/base.html
2025-11-06 22:54:43 +10:00

85 lines
4.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}{{ title }}{% endblock %} - Sunday Comics</title>
<!-- SEO Meta Tags -->
<meta name="description" content="{% block meta_description %}A webcomic about life, the universe, and everything{% endblock %}">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="{% block meta_url %}{{ request.url }}{% endblock %}">
<meta property="og:title" content="{% block og_title %}{{ self.title() }} - Sunday Comics{% endblock %}">
<meta property="og:description" content="{% block og_description %}{{ self.meta_description() }}{% endblock %}">
<meta property="og:image" content="{% block og_image %}{{ request.url_root }}static/images/default-preview.png{% endblock %}">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="{% block twitter_url %}{{ self.meta_url() }}{% endblock %}">
<meta property="twitter:title" content="{% block twitter_title %}{{ self.og_title() }}{% endblock %}">
<meta property="twitter:description" content="{% block twitter_description %}{{ self.og_description() }}{% endblock %}">
<meta property="twitter:image" content="{% block twitter_image %}{{ self.og_image() }}{% endblock %}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
<link rel="alternate" type="application/rss+xml" title="Sunday Comics RSS Feed" href="{{ url_for('static', filename='feed.rss') }}">
{% block extra_css %}{% endblock %}
</head>
<body>
<header>
<nav>
<div class="container">
<div class="nav-brand">
<a href="{{ url_for('index') }}">Sunday Comics</a>
</div>
<ul class="nav-links">
<li><a href="{{ url_for('index') }}" {% if request.endpoint == 'index' %}class="active"{% endif %}>Latest</a></li>
<li><a href="{{ url_for('archive') }}" {% if request.endpoint == 'archive' %}class="active"{% endif %}>Archive</a></li>
<li><a href="{{ url_for('about') }}" {% if request.endpoint == 'about' %}class="active"{% endif %}>About</a></li>
</ul>
</div>
</nav>
</header>
<main>
<div class="container">
{% block content %}{% endblock %}
</div>
</main>
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-section">
<h3>Follow</h3>
<div class="social-links">
<!-- Uncomment and update with your social links -->
<!-- <a href="https://twitter.com/yourhandle" target="_blank">Twitter</a> -->
<!-- <a href="https://instagram.com/yourhandle" target="_blank">Instagram</a> -->
<!-- <a href="https://mastodon.social/@yourhandle" target="_blank">Mastodon</a> -->
<a href="{{ url_for('static', filename='feed.rss') }}">RSS Feed</a>
</div>
</div>
<div class="footer-section">
<h3>Newsletter</h3>
<!-- Replace with your newsletter service form -->
<!-- <form class="newsletter-form" action="#" method="post">
<input type="email" name="email" placeholder="Enter your email" required>
<button type="submit">Subscribe</button>
</form> -->
<p class="newsletter-placeholder">Newsletter coming soon!</p>
</div>
</div>
<div class="footer-bottom">
<p>&copy; 2025 Sunday Comics. All rights reserved.</p>
</div>
</div>
</footer>
<script src="{{ url_for('static', filename='js/comic-nav.js') }}"></script>
{% block extra_js %}{% endblock %}
</body>
</html>