77 lines
3.7 KiB
HTML
77 lines
3.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}{{ site_title }}{% endblock %}</title>
|
|
<meta name="description" content="{% block meta_description %}{{ meta_description or site_tagline }}{% endblock %}">
|
|
<meta name="robots" content="{% block robots %}index, follow{% endblock %}">
|
|
<!-- Canonical + social-preview tags (rendered on every page). Paginated
|
|
listings keep their ?page= so page 2 doesn't canonicalise to page 1. -->
|
|
{% set page_arg = request.args.get('page') %}
|
|
<link rel="canonical" href="{{ request.url.split('?')[0] }}{% if page_arg and page_arg != '1' %}?page={{ page_arg }}{% endif %}">
|
|
<link rel="alternate" type="application/atom+xml" title="{{ site_title }}"
|
|
href="{{ url_for('public.feed') }}">
|
|
<meta property="og:type" content="{% block og_type %}website{% endblock %}">
|
|
<meta property="og:site_name" content="{{ site_title }}">
|
|
<meta property="og:title" content="{% block og_title %}{{ site_title }}{% endblock %}">
|
|
<meta property="og:description" content="{% block og_description %}{{ meta_description or site_tagline }}{% endblock %}">
|
|
<meta property="og:url" content="{{ request.url.split('?')[0] }}">
|
|
{% set social_image = og_image if og_image else header_image %}
|
|
{% if social_image %}
|
|
<meta property="og:image" content="{{ social_image }}">
|
|
{% endif %}
|
|
<meta name="twitter:card" content="{{ 'summary_large_image' if social_image else 'summary' }}">
|
|
<meta name="twitter:title" content="{% block twitter_title %}{{ site_title }}{% endblock %}">
|
|
<meta name="twitter:description" content="{% block twitter_description %}{{ meta_description or site_tagline }}{% endblock %}">
|
|
{% if social_image %}
|
|
<meta name="twitter:image" content="{{ social_image }}">
|
|
{% endif %}
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
<!-- Admin-custom CSS, written by /admin/appearance and served as a static asset. -->
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/custom.css') }}">
|
|
{% block head %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<div class="header-inner {% if header_image %}has-banner{% endif %}">
|
|
{% if header_image %}
|
|
<img src="{{ header_image }}" class="site-banner-img" alt="{{ site_title }}">
|
|
{% endif %}
|
|
<div class="site-logo">
|
|
<a href="{{ url_for('public.index') }}">{{ site_title }}</a>
|
|
{% if site_tagline %}<span class="hero-tagline">{{ site_tagline }}</span>{% endif %}
|
|
</div>
|
|
<nav class="main-nav" aria-label="Main navigation">
|
|
<ul class="nav-links">
|
|
<li class="nav-item"><a href="{{ url_for('public.index') }}">Home</a></li>
|
|
<li class="nav-item"><a href="{{ url_for('public.photos_index') }}">Photos</a></li>
|
|
{% for p in pages %}
|
|
<li class="nav-item"><a href="{{ url_for('public.page', slug=p.slug) }}">{{ p.title }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="site-main">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
|
|
<footer class="site-footer">
|
|
<div class="footer-inner">
|
|
<span>© {{ current_year() }}</span>
|
|
<span>Built with a simple CMS</span>
|
|
</div>
|
|
</footer>
|
|
|
|
<!-- (The old dropdown menu button/JS was removed; navigation is now simple
|
|
inline links shown directly in the header.) -->
|
|
|
|
<!-- Click any page image (incl. uploaded TinyMCE images) to view it full-size. -->
|
|
<script src="{{ url_for('static', filename='js/lightbox.js') }}"></script>
|
|
<!-- Full-album gallery viewer for /photos/<slug>. -->
|
|
<script src="{{ url_for('static', filename='js/gallery_lightbox.js') }}"></script>
|
|
</body>
|
|
</html>
|