{# SPDX-FileCopyrightText: 2026 Blagovest Petrov SPDX-FileCopyrightText: 2026 Vute Tech Ltd. SPDX-License-Identifier: GPL-3.0-or-later #} {#- The page skeleton, ported from the Hugo theme of dragomand.l10n-bg.dev (baseof.html and the head, header and footer partials). Bilingual: the mkdocs-static-i18n plugin builds the Bulgarian tree under bg/, and this template picks its strings by locale, like the Hugo i18n files did. -#} {%- set rel_url = page.url if page else '' -%} {%- if rel_url == '.' or rel_url == './' -%}{%- set rel_url = '' -%}{%- endif -%} {%- set locale = 'bg' if rel_url.startswith('bg/') or rel_url == 'bg' else 'en' -%} {%- set en_rel = rel_url[3:] if locale == 'bg' else rel_url -%} {%- set is_home = rel_url in ('', 'bg/') -%} {%- if locale == 'bg' -%} {%- set t = { 'skip': 'Към съдържанието', 'pages': 'Страници', 'resources': 'Ресурси', 'about': 'За сайта', 'made': 'Създаден с MkDocs', 'license': 'Dragomand е свободен софтуер под лиценз GNU GPL 3.0 или по-нов.', 'site_prefix': 'Съдържанието на този сайт е лицензирано под', 'site_license': 'Creative Commons Attribution-ShareAlike 4.0 International License', 'sponsored': 'С подкрепата на', 'on_this_page': 'На тази страница', 'description': 'Dragomand: изцяло офлайн машинен превод за работния плот на Линукс, през D-Bus.' } -%} {%- set resources = [ ('https://github.com/VuteTech/dragomand', 'Изходен код'), ('https://l10n-bg.dev/', 'Българска локализация на софтуер'), ('https://github.com/mozilla/translations', 'Преводните модели на Mozilla'), ('https://support.mozilla.org/bg/kb/website-translation', 'Firefox Translations') ] -%} {%- else -%} {%- set t = { 'skip': 'Skip to content', 'pages': 'Pages', 'resources': 'Resources', 'about': 'About this site', 'made': 'Made with MkDocs', 'license': 'Dragomand is free software, licensed under the GNU GPL 3.0 or later.', 'site_prefix': 'Site content is licensed under a', 'site_license': 'Creative Commons Attribution-ShareAlike 4.0 International License', 'sponsored': 'Sponsored by', 'on_this_page': 'On this page', 'description': config.site_description } -%} {%- set resources = [ ('https://github.com/VuteTech/dragomand', 'Source code'), ('https://l10n-bg.dev/', 'Bulgarian software localization'), ('https://github.com/mozilla/translations', 'Mozilla translation models'), ('https://support.mozilla.org/en-US/kb/website-translation', 'Firefox Translations') ] -%} {%- endif -%} {% block title %}{% if is_home or not page %}{{ config.site_name }}{% else %}{{ page.title }} - {{ config.site_name }}{% endif %}{% endblock %} {%- if config.site_url and page %} {%- endif %} {{ t.skip }}
{% block content %}{% endblock %}