Every page sat in the 40rem reading column, so the admin wrapper's 60rem never applied and the notes table, which can't shrink that far, ran past the header's right edge. Admin pages now set a 60rem frame for header, content and footer; post previews wrap, and tables scroll sideways on narrow screens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
75 lines
2.8 KiB
HTML
75 lines
2.8 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 %}{{ config.SITE_NAME }}{% endblock %}</title>
|
|
<meta name="color-scheme" content="light dark">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
<link rel="alternate" type="application/rss+xml" title="{{ config.SITE_NAME }} RSS Feed" href="{{ absolute_url_for('public.feed') }}">
|
|
<link rel="alternate" type="application/xml+opml" title="{{ config.SITE_NAME }} Feed Subscription List" href="{{ absolute_url_for('public.opml') }}">
|
|
|
|
{# Webmention endpoint (v1.6.0) #}
|
|
{% if config.WEBMENTION_ENABLED %}
|
|
<link rel="webmention" href="/webmention">
|
|
<link rel="micropub" href="{{ absolute_url_for('micropub.micropub_endpoint') }}">
|
|
<link rel="indieauth-metadata" href="{{ absolute_url_for('indieauth.metadata') }}">
|
|
<link rel="authorization_endpoint" href="{{ absolute_url_for('indieauth.authorize') }}">
|
|
<link rel="token_endpoint" href="{{ absolute_url_for('indieauth.token') }}">
|
|
{% endif %}
|
|
|
|
{# rel-me links from discovered author profile (v1.2.0 Phase 2) #}
|
|
{% if author and author.rel_me_links %}
|
|
{% for profile_url in author.rel_me_links %}
|
|
<link rel="me" href="{{ profile_url }}">
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body{% block body_class %}{% endblock %}>
|
|
{% if config.DEV_MODE %}
|
|
<div class="dev-mode-warning">
|
|
WARNING: DEVELOPMENT MODE - Authentication bypassed
|
|
</div>
|
|
{% endif %}
|
|
|
|
<header class="site-header">
|
|
<a class="site-title" href="/">{{ config.SITE_NAME }}</a>
|
|
<nav class="site-nav">
|
|
<a href="/">Home</a>
|
|
<a href="{{ url_for('public.likes') }}">Likes</a>
|
|
<a href="{{ url_for('public.feed') }}">RSS</a>
|
|
{% if g.me %}
|
|
<a href="{{ url_for('admin.dashboard') }}">Admin</a>
|
|
{% else %}
|
|
<a href="{{ url_for('auth.login_form') }}">Log in</a>
|
|
{% endif %}
|
|
<form class="site-search" action="/search" method="get" role="search">
|
|
<input type="search" name="q" placeholder="Search" aria-label="Search"
|
|
value="{{ request.args.get('q', '') }}" minlength="2" maxlength="100" required>
|
|
<button type="submit" aria-label="Search">Search</button>
|
|
</form>
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="flash flash-{{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<footer class="site-footer">
|
|
<p>
|
|
Powered by <a href="https://git.thesatelliteoflove.com/phil/StarPunk">StarPunk</a> v{{ config.get('VERSION', '0.5.0') }}
|
|
</p>
|
|
</footer>
|
|
</body>
|
|
</html>
|