From 1d83df845a442f45233cb40cbaa571e33adfd4e5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 7 May 2021 13:05:49 +0200 Subject: site schema: only one site per www.yml --- inc | 2 +- template/docs.html.j2 | 34 ++++++++++++++++------------------ template/rss.xml.j2 | 48 +++++++++++++++++++++++------------------------- www.yml | 17 ++++++++--------- 4 files changed, 48 insertions(+), 53 deletions(-) diff --git a/inc b/inc index 543f91c2..99649d50 160000 --- a/inc +++ b/inc @@ -1 +1 @@ -Subproject commit 543f91c2566e547d5c50d8e519ab57b10e8dd650 +Subproject commit 99649d50f26737d3a038e2052d0007a61226c32b diff --git a/template/docs.html.j2 b/template/docs.html.j2 index d60acc40..e19dddac 100644 --- a/template/docs.html.j2 +++ b/template/docs.html.j2 @@ -1,6 +1,5 @@ {% extends "common/base.j2" %} {% block body_content %} -{% for siteconfitem in siteconf %}
@@ -33,51 +32,51 @@
- +

{{ _("Merchant Backend Administration")}}

- {% trans docshost=siteconfitem['docshost'] %} + {% trans docshost=siteconf['docshost'] %} Tutorial and manual for operating a merchant. Also available as PDF. {% endtrans %}
- +

{{ _("Merchant API Tutorial") }}

{% trans %} Tutorial for processing Taler payments using the merchant backend API. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-api-tutorial.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-merchant-api-tutorial.pdf") }}
- +

{{ _("Exchange")}}

{% trans %} Operator's manual for the GNU Taler exchange. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-exchange-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-exchange-manual.pdf") }}
- +

{{ _("Bank Integration") }}

{% trans %} Manual for tightly integrating Taler with banking applications. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-bank-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-bank-manual.pdf") }}
- +

{{ _("Wallet") }}

@@ -89,25 +88,25 @@
- +

{{ _("Back office") }}

{% trans %} Manual to run the back-office Web application. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-backoffice-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-backoffice-manual.pdf") }}
- +

{{ _("Merchant POS Terminal") }}

{% trans %} Manual for configuring and using the point of sale app. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/taler-merchant-pos-terminal.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/taler-merchant-pos-terminal.pdf") }}
@@ -137,7 +136,7 @@
- +

{{ _("HTTP API")}}

@@ -147,14 +146,14 @@
- +

{{ _("Onboarding")}}

{% trans %} Description of our taler.net setup and how to contribute. {% endtrans %} - {{ gettext('Also available as PDF.', link="https://" + siteconfitem['docshost'] + "/pdf/developers-manual.pdf") }} + {{ gettext('Also available as PDF.', link="https://" + siteconf['docshost'] + "/pdf/developers-manual.pdf") }}
@@ -238,5 +237,4 @@
-{% endfor %} {% endblock body_content %} diff --git a/template/rss.xml.j2 b/template/rss.xml.j2 index b9a29f70..872e5513 100644 --- a/template/rss.xml.j2 +++ b/template/rss.xml.j2 @@ -20,29 +20,27 @@ #} - {% for siteconfitem in siteconf %} - - - {{ siteconfitem['rsstitle'] }} - {{ lang }} - {{ siteconfitem['rssdescr']|e }} - https://{{ siteconfitem['baseurl'] }}/ - {{ now }} - {% for newspostitem in newsposts %} - - https://{{ siteconfitem['baseurl'] }}/{{ lang }}{{ siteconfitem['newsloc'] }}{{ newspostitem['page'] }} - https://{{ siteconfitem['baseurl'] }}/{{ lang }}{{ siteconfitem['newsloc'] }}{{ newspostitem['page'] }} - {{ conv_date_rfc822(newspostitem["date"]) }} - {{ newspostitem['title']|e }} - - - {{ newspostitem['content'] }} - - ]]> - - - {% endfor %} - - {% endfor %} + + + {{ siteconf['rsstitle'] }} + {{ lang }} + {{ siteconf['rssdescr']|e }} + https://{{ siteconf['baseurl'] }}/ + {{ now }} + {% for newspostitem in newsposts %} + + https://{{ siteconf['baseurl'] }}/{{ lang }}{{ siteconf['newsloc'] }}{{ newspostitem['page'] }} + https://{{ siteconf['baseurl'] }}/{{ lang }}{{ siteconf['newsloc'] }}{{ newspostitem['page'] }} + {{ conv_date_rfc822(newspostitem["date"]) }} + {{ newspostitem['title']|e }} + + + {{ newspostitem['content'] }} + + ]]> + + + {% endfor %} + diff --git a/www.yml b/www.yml index 68db2c08..c5344221 100644 --- a/www.yml +++ b/www.yml @@ -1,13 +1,12 @@ siteconf: - - baseurl: https://taler.net/ - newsloc: /news/ - newsdir: news - rsstitle: Taler.net - rssdescr: "News posts published by Taler about changes related to Taler, releases and events" - rssloc: - rsslink: - rsslang: - docshost: docs.taler.net + baseurl: https://taler.net/ + newsloc: /news/ + rsstitle: Taler.net + rssdescr: "News posts published by Taler about changes related to Taler, releases and events" + rssloc: + rsslink: + rsslang: + docshost: docs.taler.net langs_full: &langs en: English ar: Arabic -- cgit v1.2.3