From 833ce18b0a64696e2566edc48c20af9581a2830c Mon Sep 17 00:00:00 2001 From: Arnas Udovicius Date: Tue, 23 Aug 2022 08:26:45 +0300 Subject: [PATCH] added logo --- templates/all_texts.gmi | 4 ++-- templates/category.gmi | 4 ++-- templates/en/about.gmi | 3 ++- templates/en/index.gmi | 4 ++-- templates/macros.tpl | 2 ++ templates/page.gmi | 4 ++-- templates/search.gmi | 4 ++-- templates/sgs/about.gmi | 3 ++- templates/sgs/index.gmi | 4 ++-- templates/tag.gmi | 4 ++-- 10 files changed, 20 insertions(+), 16 deletions(-) diff --git a/templates/all_texts.gmi b/templates/all_texts.gmi index 39c6a29..525fce7 100644 --- a/templates/all_texts.gmi +++ b/templates/all_texts.gmi @@ -1,5 +1,5 @@ -{% import "macros.tpl" category_url, tag_url, text_url %} -# Arna alkierios :: {% if lang == "sgs" %}Vėsė tekstā{% else %}All texts{% endif %} +{% import "macros.tpl" category_url, tag_url, text_url, logo %} +# {{ logo() }} Arna alkierios :: {% if lang == "sgs" %}Vėsė tekstā{% else %}All texts{% endif %} {% for file in tree.Files %}{{ text_url(lang, file) }} {% endfor %} diff --git a/templates/category.gmi b/templates/category.gmi index 1612a29..21aa483 100644 --- a/templates/category.gmi +++ b/templates/category.gmi @@ -1,5 +1,5 @@ -{% import "macros.tpl" category_url, tag_url, text_url %} -# Arna alkierios :: {{ path }} +{% import "macros.tpl" category_url, tag_url, text_url, logo %} +# {{ logo() }} Arna alkierios :: {{ path }} {% if indexFile %}{{ indexFile.Content }} diff --git a/templates/en/about.gmi b/templates/en/about.gmi index 040614a..f65c7a1 100644 --- a/templates/en/about.gmi +++ b/templates/en/about.gmi @@ -1,4 +1,5 @@ -# Arna alkierios :: About +{% import "../macros.tpl" logo %} +# {{ logo() }} Arna alkierios :: About I am Arns Udovič, also you can find me by Zordsdavini. diff --git a/templates/en/index.gmi b/templates/en/index.gmi index cb42cb5..df2245b 100644 --- a/templates/en/index.gmi +++ b/templates/en/index.gmi @@ -1,5 +1,5 @@ -{% import "../macros.tpl" category_url, tag_url, text_url %} -# Arna alkierios +{% import "../macros.tpl" category_url, tag_url, text_url, logo %} +# {{ logo() }} Arna alkierios Welcome to my capsule in Gemini space. diff --git a/templates/macros.tpl b/templates/macros.tpl index eb40dd9..ea23039 100644 --- a/templates/macros.tpl +++ b/templates/macros.tpl @@ -3,3 +3,5 @@ {% macro tag_url(lang, tag, count) export %}=> /{{ lang }}/t/{{ tag }} 🏷 {{ tag }}{% if count %} ({{ count }}){% endif %} {% endmacro %} {% macro text_url(lang, file) export %}=> /{{ lang }}/f/{{ file.CategoriesAsUrl() }}/{{ file.Id }}/{{ file.GmiName() }} ✒ {{ file.Description }} ({{ file.Created }}) {% endmacro %} + +{% macro logo() export %}🌛{% endmacro %} diff --git a/templates/page.gmi b/templates/page.gmi index c73a61b..ad8d5f6 100644 --- a/templates/page.gmi +++ b/templates/page.gmi @@ -1,5 +1,5 @@ -{% import "macros.tpl" category_url, tag_url, text_url %} -# Arna alkierios :: {{ file.File.Description }} +{% import "macros.tpl" category_url, tag_url, text_url, logo %} +# {{ logo() }} Arna alkierios :: {{ file.File.Description }} {{ file.Content }} diff --git a/templates/search.gmi b/templates/search.gmi index 9acc9dd..979db90 100644 --- a/templates/search.gmi +++ b/templates/search.gmi @@ -1,5 +1,5 @@ -{% import "macros.tpl" text_url %} -# Arna alkierios :: {% if lang == "sgs" %}Paėiška{% else %}Search{% endif %} +{% import "macros.tpl" text_url, logo %} +# {{ logo() }} Arna alkierios :: {% if lang == "sgs" %}Paėiška{% else %}Search{% endif %} {% if lang == "sgs" %}Ėiškuota vagol{% else %}Searched by{% endif %}: {{ q }} {% if tree.Files|length == 0 %}{% if lang == "sgs" %}Nieka narada{% else %}Nothing found{% endif %}...{% else %} diff --git a/templates/sgs/about.gmi b/templates/sgs/about.gmi index b32ef35..22fd54e 100644 --- a/templates/sgs/about.gmi +++ b/templates/sgs/about.gmi @@ -1,4 +1,5 @@ -# Arna alkierios :: Aple +{% import "../macros.tpl" logo %} +# {{ logo() }} Arna alkierios :: Aple Eso Udovič Arns, dā vadėnamo Zordsdavini arba Ousėnio. diff --git a/templates/sgs/index.gmi b/templates/sgs/index.gmi index 4e860cd..8394f25 100644 --- a/templates/sgs/index.gmi +++ b/templates/sgs/index.gmi @@ -1,5 +1,5 @@ -{% import "../macros.tpl" category_url, tag_url, text_url %} -# Arna alkierios +{% import "../macros.tpl" category_url, tag_url, text_url, logo %} +# {{ logo() }} Arna alkierios Sveikė atvīkėn i mona kapsolė Gemini ertie. diff --git a/templates/tag.gmi b/templates/tag.gmi index 9b4ac92..71ce497 100644 --- a/templates/tag.gmi +++ b/templates/tag.gmi @@ -1,5 +1,5 @@ -{% import "macros.tpl" category_url, tag_url, text_url %} -# Arna alkierios :: [{{ tag }}] +{% import "macros.tpl" category_url, tag_url, text_url, logo %} +# {{ logo() }} Arna alkierios :: [{{ tag }}] {% for file in tree.Files %}{{ text_url(lang, file) }} {% endfor %}