From b001efcd9a6b0a898c8d58d4155e11a57d397820 Mon Sep 17 00:00:00 2001 From: Cyrille LOUARN Date: Sat, 6 Jan 2024 02:00:46 +0100 Subject: [PATCH] [1.11.0] - '! LOGO' mark --- CHANGELOG.md | 5 +++++ debian/control | 2 +- src/usr/bin/tyto | 4 ++-- src/var/lib/tyto/program/check.py | 2 +- src/var/lib/tyto/program/page.py | 21 +++++++++++++++++++++ src/var/lib/tyto/program/post.py | 1 + src/var/lib/tyto/program/wip.py | 2 +- src/var/lib/tyto/tpl_files/styles.css | 1 + src/var/lib/tyto/translations/logs_en.py | 7 ++++++- src/var/lib/tyto/translations/logs_fr.py | 6 +++++- src/var/lib/tyto/translations/site_en.py | 2 +- src/var/lib/tyto/translations/site_fr.py | 2 +- 12 files changed, 46 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f75117..4254793 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ Tyto - Littérateur # CURRENTLY IN DEV (in devel branch) ! +## [1.11.0] +- added "! LOGO" mark in article header +- - create HTML logo image in
>
+- fix: typos (HTML and translations) + ## [1.10.0] - added management of optional footer_about.html file created by user (see [help modules]) diff --git a/debian/control b/debian/control index c0de372..95f16ec 100644 --- a/debian/control +++ b/debian/control @@ -1,5 +1,5 @@ Package: tyto -Version: 1.10.0 +Version: 1.11.0 Section: custom Priority: optional Architecture: all diff --git a/src/usr/bin/tyto b/src/usr/bin/tyto index 4262f18..5e36ca1 100755 --- a/src/usr/bin/tyto +++ b/src/usr/bin/tyto @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# version: 1.10.0 -# date: 2024/01/04 17:18:36 +# version: 1.11.0 +# date: 2024-01-06 01:54:236 # Tyto - Littérateur # Copyright (C) 2023 Cyrille Louarn diff --git a/src/var/lib/tyto/program/check.py b/src/var/lib/tyto/program/check.py index 9ca75f0..bee04a1 100644 --- a/src/var/lib/tyto/program/check.py +++ b/src/var/lib/tyto/program/check.py @@ -146,7 +146,7 @@ def header_sl_tags(): # Set needed tags for ln, line in enumerate(article_header, 1): - # Options_marks (! NOMAP, ! NOTSS, ! TOC, ...) + # Options_marks (! NOMAP, ! NORSS, ! TOC, .! LOGO..) for mark in post.options_marks: if not post.options_marks[mark] \ and line.lstrip().startswith(mark): diff --git a/src/var/lib/tyto/program/page.py b/src/var/lib/tyto/program/page.py index 8867375..9f795bd 100644 --- a/src/var/lib/tyto/program/page.py +++ b/src/var/lib/tyto/program/page.py @@ -39,6 +39,9 @@ def create(): # Create specific article metas tags post_metas = article_metas() + # Include article logo (if "! LOGO" mark in metas header) + post_logo = include_logo() + # Create references in div post_refs = article_refs() @@ -57,6 +60,8 @@ def create(): nginx_mods%"navbar", #