From e0a989555b6bef9173088da9e0b980338a88ce0c Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 19 Jun 2024 14:44:10 +0200 Subject: Swiched the theme to bulma-css --- theme/bulma/templates/partial/cc_license.html | 31 ++++++++++ theme/bulma/templates/partial/copyright.html | 10 ++++ theme/bulma/templates/partial/footer.html | 7 +++ theme/bulma/templates/partial/nav.html | 17 ++++++ theme/bulma/templates/partial/pagination.html | 14 +++++ theme/bulma/templates/partial/sidebar.html | 78 +++++++++++++++++++++++++ theme/bulma/templates/partial/translations.html | 10 ++++ 7 files changed, 167 insertions(+) create mode 100644 theme/bulma/templates/partial/cc_license.html create mode 100644 theme/bulma/templates/partial/copyright.html create mode 100644 theme/bulma/templates/partial/footer.html create mode 100644 theme/bulma/templates/partial/nav.html create mode 100644 theme/bulma/templates/partial/pagination.html create mode 100644 theme/bulma/templates/partial/sidebar.html create mode 100644 theme/bulma/templates/partial/translations.html (limited to 'theme/bulma/templates/partial') diff --git a/theme/bulma/templates/partial/cc_license.html b/theme/bulma/templates/partial/cc_license.html new file mode 100644 index 0000000..756cc49 --- /dev/null +++ b/theme/bulma/templates/partial/cc_license.html @@ -0,0 +1,31 @@ +

+ {% set cc_slug = CC_LICENSE['slug'] %} + {% set cc_name = CC_LICENSE['name'] %} + {% set cc_version = CC_LICENSE['version'] %} + {% set cc_lang = CC_LICENSE['language'] or "en_US" %} + {% set cc_url = "http://creativecommons.org/licenses/{}/{}/deed.{}".format(cc_slug, cc_version, cc_lang) %} + © {{ COPYRIGHT_YEAR }} {{ COPYRIGHT_NAME }} - {{ _('This work is licensed under a %(cc)s', + cc='{}'.format(cc_url, cc_name)|safe) }} +

+{% include "partial/flex.html" %} +

+ {% if CC_LICENSE['icon'] != False %} + + Creative Commons License + + {% endif %} + {% if STATUSCAKE %} + {% include "partial/statuscake.html" %} + {% endif %} +

diff --git a/theme/bulma/templates/partial/copyright.html b/theme/bulma/templates/partial/copyright.html new file mode 100644 index 0000000..9fecc4e --- /dev/null +++ b/theme/bulma/templates/partial/copyright.html @@ -0,0 +1,10 @@ +

© {{ COPYRIGHT_YEAR }} {{ COPYRIGHT_NAME }}

+

+{{ + _('Built with %(pelican_url)s', + pelican_url='Pelican') +}} +

+{% if STATUSCAKE %} + {% include "partial/statuscake.html" %} +{% endif %} diff --git a/theme/bulma/templates/partial/footer.html b/theme/bulma/templates/partial/footer.html new file mode 100644 index 0000000..8a2309c --- /dev/null +++ b/theme/bulma/templates/partial/footer.html @@ -0,0 +1,7 @@ + diff --git a/theme/bulma/templates/partial/nav.html b/theme/bulma/templates/partial/nav.html new file mode 100644 index 0000000..a037522 --- /dev/null +++ b/theme/bulma/templates/partial/nav.html @@ -0,0 +1,17 @@ +{% if MAIN_MENU %} + +{% endif %} diff --git a/theme/bulma/templates/partial/pagination.html b/theme/bulma/templates/partial/pagination.html new file mode 100644 index 0000000..05dfc8c --- /dev/null +++ b/theme/bulma/templates/partial/pagination.html @@ -0,0 +1,14 @@ +{% if DEFAULT_PAGINATION %} + +{% endif %} diff --git a/theme/bulma/templates/partial/sidebar.html b/theme/bulma/templates/partial/sidebar.html new file mode 100644 index 0000000..75ebaf1 --- /dev/null +++ b/theme/bulma/templates/partial/sidebar.html @@ -0,0 +1,78 @@ + diff --git a/theme/bulma/templates/partial/translations.html b/theme/bulma/templates/partial/translations.html new file mode 100644 index 0000000..9c5e4fd --- /dev/null +++ b/theme/bulma/templates/partial/translations.html @@ -0,0 +1,10 @@ +{% macro translations_for(article) %} + {% if article.translations %} +
+ {{article.lang}} + {% for translation in article.translations %} + {{ translation.lang }} + {% endfor %} +
+ {% endif %} +{% endmacro %} -- cgit v1.2.3