diff --git a/blueprints.yaml b/blueprints.yaml index 430058e..2959d08 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -204,6 +204,18 @@ form: size: medium default: "" + owner_title: + type: text + label: Owner title + size: medium + default: "" + + wordcount_title: + type: text + label: Word count title + size: medium + default: "" + analytics: type: textarea label: Analytics script diff --git a/paxover.yaml b/paxover.yaml index 2028948..6313170 100644 --- a/paxover.yaml +++ b/paxover.yaml @@ -1,4 +1,6 @@ enabled: true +owner_title: +wordcount_title: analytics: social_buttons: contact: diff --git a/templates/post.html.twig b/templates/post.html.twig index 47b2a41..ea4a1af 100644 --- a/templates/post.html.twig +++ b/templates/post.html.twig @@ -5,7 +5,7 @@

{{ page.title }}

-

{{ page.date|date("d.m.Y H:i") }}{% if config.plugins.readingtime.enabled %} | {{ page.content|readingtime }}{% endif %}

+

{{ page.date|date("d.m.Y H:i") }}{% if config.plugins.readingtime.enabled %} | {{ page.content|readingtime }}{% endif %}{% if config.plugins.wordcount.enabled and grav.user.title == theme_config.owner_title %} | {{ getWordCount(content) }} {{ theme_config.wordcount_title }}{% endif %}

Tagi: {% for tag in page.taxonomy.tag %}{{ tag }} {% endfor %}

{{ page.content | raw }}