diff --git a/blueprints.yaml b/blueprints.yaml index 2959d08..3bfcd7b 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -8,11 +8,11 @@ author: name: Tymoteusz Jóźwiak email: tymoteusz@jozwiak.top url: https://jozwiak.top -homepage: https://github.com/tymoteuszjozwiak/paxover +homepage: https://codeberg.org/tymoteuszjozwiak/paxover demo: https://jozwiak.top keywords: paxover -bugs: https://github.com/tymoteuszjozwiak/paxover/issues -license: MIT +bugs: https://codeberg.org/tymoteuszjozwiak/paxover/issues +license: dependencies: - { name: grav, version: ">=1.6.0" } @@ -38,7 +38,21 @@ form: label: Tag title help: Title displayed on tag view page size: medium - default: "Tag:" + default: "Tag" + + blog.tags_title: + type: text + label: Tags title + help: Title displayed on tag list + size: medium + default: "Tagi" + + blog.series_title: + type: text + label: Series title + help: Title displayed on series field + size: medium + default: "Seria" blog.pagination_limit: type: text @@ -52,14 +66,7 @@ form: label: Pagination "newer" help: Title displayed on "newer" button size: medium - default: "" - - blog.pagination_newer_en: - type: text - label: Pagination "newer" EN - help: English translation of the previous field - size: medium - default: "Newer" + default: "Nowsze" blog.pagination_older: type: text @@ -68,25 +75,11 @@ form: size: medium default: "Starsze" - blog.pagination_older_en: - type: text - label: Pagination "older" EN - help: English translation of the previous field - size: medium - default: "Older" - blog.share: type: text label: Share section title size: medium - default: "" - - blog.share_en: - type: text - label: Share section title EN - help: English translation of the previous field - size: medium - default: "Share" + default: "Udostępnij" blog.share_buttons: type: list @@ -202,19 +195,19 @@ form: label: Footer year help: Website start year displayed in footer size: medium - default: "" + default: "2022" owner_title: type: text label: Owner title size: medium - default: "" + default: "Owner" wordcount_title: type: text label: Word count title size: medium - default: "" + default: "słów" analytics: type: textarea @@ -246,41 +239,14 @@ form: type: text label: Comments section title size: medium - default: "" - - cusdis.title_en: - type: text - label: Comments section title EN - help: English translation of the previous field - size: medium - default: "Comments" + default: "Komentarze" cusdis.disable_comments: type: text label: Disable comments info text help: Information displayed where the comments are disabled size: medium - default: "" - - cusdis.disable_comments_en: - type: text - label: Disable comments info text EN - help: English version of the previous field - size: medium - default: "" - - cusdis.legal_info: - type: textarea - label: Cusdis legal info - size: big - default: "" - - cusdis.legal_info_en: - type: textarea - label: Cusdis legal info EN - help: English version of the previous field - size: big - default: "" + default: "Komentarze są wyłączone dla tego artykułu" cusdis.lang: type: textarea @@ -288,10 +254,3 @@ form: help: More info at https://cusdis.com/doc#/advanced/i18n?id=contributing-more-languages size: big default: "" - - cusdis.lang_en: - type: textarea - label: Cusdis language override EN - help: English version of the previous field - size: big - default: "" diff --git a/paxover.yaml b/paxover.yaml index 6313170..121e802 100644 --- a/paxover.yaml +++ b/paxover.yaml @@ -7,15 +7,14 @@ contact: contact_en: lang_title_en: blog: - slug: /blog - tag_title: "Tag:" - pagination_limit: 7 + slug: + tag_title: + tags_title: + series_title: + pagination_limit: pagination_newer: - pagination_newer_en: pagination_older: - pagination_older_en: share: - share_en: share_buttons: footer: title: @@ -26,10 +25,5 @@ cusdis: domain: app_id: title: - title_en: disable_comments: - disable_comments_en: lang: - lang_en: - legal_info: - legal_info_en: diff --git a/templates/en/blog.html.twig b/templates/en/blog.html.twig deleted file mode 100644 index 4f0ad2f..0000000 --- a/templates/en/blog.html.twig +++ /dev/null @@ -1,44 +0,0 @@ - -{% extends 'partials/base.html.twig' %} - -{% if uri.param('tag') %} - {% set page_title = theme_config.blog.tag_title | default('Tag: ') ~ uri.param('tag') %} -{% else %} - {% set page_title = theme_config.blog.title | default('Blog') %} -{% endif %} - -{% block content %} - -{% set collection = page.collection({ - 'items': '@self.children', - 'pagination': true, - 'order': {'by': 'date', 'dir': 'desc'}, - 'limit': theme_config.blog.pagination_limit}) -%} -{% set itemsInCollection = page.collection({'items': collection.params.items})|length %} -{% set currentPage = uri.param('page')|default('1') %} -{% set itemsPerPage = collection.params.limit %} -{% set pagesInCollection = (itemsInCollection / itemsPerPage)|round(0, 'ceil') %} - - {% if page_title == 'Blog' %} - {{ page.content | raw }} - {% else %} -
This page doesn't exist
-{% endblock %} \ No newline at end of file diff --git a/templates/en/partials/comments.html.twig b/templates/en/partials/comments.html.twig deleted file mode 100644 index 87d8deb..0000000 --- a/templates/en/partials/comments.html.twig +++ /dev/null @@ -1,22 +0,0 @@ -{% if theme_config.cusdis.domain %} -{{ theme_config.cusdis.disable_comments_en|raw }}
- {% else %} - {% if theme_config.cusdis.lang_en %} - - {% endif %} - - - {% if theme_config.cusdis.legal_info_en %} -{{ theme_config.cusdis.legal_info_en|raw }}
- {% endif %} - {% endif %} -{% endif %} \ No newline at end of file diff --git a/templates/en/partials/share.html.twig b/templates/en/partials/share.html.twig deleted file mode 100644 index 097faa1..0000000 --- a/templates/en/partials/share.html.twig +++ /dev/null @@ -1,8 +0,0 @@ -{{ theme_config.cusdis.legal_info|raw }}
- {% endif %} {% endif %} {% endif %} \ No newline at end of file