{# il2ks-template: templates/il2ks/base.html v1 - copy this line along when you override #} {% load i18n static il2ks %}{% comment %} The site layout. Server owners may override this file or any block through /custom/templates (TD-25). Blocks (keep this list short and stable): title the text; default: "<page_title> · <site title>". Views can set `page_title` in the context. head extra <head> content (meta tags, a page's own stylesheet). nav the <ul> of header navigation links (Players, Aircraft, Leaderboards, the "History" dropdown with Missions and Sorties, then `nav_links` from the admin). content the page itself, inside <main>. footer the footer's inner content (it holds the language menu, `{% language_menu %}`). scripts extra scripts, after htmx, il2ks.js and localtime.js (real-world times in the viewer's time zone, FR-WEB-17). Context from il2ks.web.context_processors.site: site (SiteSettings), nav_links [NavItem(label, url, icon)], site_links [(label, url)], theme_css (the :root colour/font overrides), data_updated (datetime or None), il2ks_version, logo_url ('' when no logo), bg_css/home_bg/header_bg (background pictures), icon_url/apple_touch_icon_url (tab icon). The theme is documented in static/il2ks/site.css (tokens first). {% endcomment %}<!doctype html> {% get_current_language as LANGUAGE_CODE %}<html lang="{{ LANGUAGE_CODE }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="color-scheme" content="light dark"> {% if icon_url %}<link rel="icon" href="{{ icon_url }}" type="image/png" sizes="32x32"> <link rel="apple-touch-icon" href="{{ apple_touch_icon_url }}">{% else %}<link rel="icon" href="{% static 'il2ks/img/brand/favicon.svg' %}" type="image/svg+xml">{% endif %} <title>{% block title %}{% if page_title %}{{ page_title }} · {% endif %}{{ site.site_title }}{% endblock %} {% if theme_css %}{% endif %} {% if bg_css %}{% endif %} {% block head %}{% endblock %}
{% block content %}{% endblock %}
{% block scripts %}{% endblock %}