💄 header image

This commit is contained in:
mi
2025-11-07 21:33:47 +10:00
parent ed0a1aadb2
commit 9cb726312a
5 changed files with 53 additions and 2 deletions

View File

@@ -33,12 +33,20 @@
{% block extra_css %}{% endblock %}
</head>
<body>
<header>
{% if header_image %}
<div class="site-header-image">
<img src="{{ url_for('static', filename='images/' + header_image) }}" alt="Sunday Comics Header">
</div>
{% endif %}
<header{% if header_image %} class="header-with-image"{% endif %}>
<nav>
<div class="container">
{% if not header_image %}
<div class="nav-brand">
<a href="{{ url_for('index') }}">Sunday Comics</a>
</div>
{% endif %}
<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>