From 897451312c431da42d8c816c087ed637d0ade291 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 10 Dec 2015 10:49:09 +0100 Subject: [PATCH 1/4] Drop autofocus on comments form --- comments.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/comments.yaml b/comments.yaml index 6211da3..ea24031 100644 --- a/comments.yaml +++ b/comments.yaml @@ -14,7 +14,6 @@ form: - name: name label: Name placeholder: Enter your name - autofocus: on autocomplete: on type: text validate: From 7858289def0b6dc0f10e152b5368fa89627c0535 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 10 Dec 2015 20:36:26 +0100 Subject: [PATCH 2/4] Prepare release --- CHANGELOG.md | 6 ++++++ blueprints.yaml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30028a3..c820e1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v1.1.1 +## 12/10/2015 + +1. [](#improved) + Drop the autofocus on the comment form + # v1.1.0 ## 11/24/2015 diff --git a/blueprints.yaml b/blueprints.yaml index 23c8197..7416773 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Comments -version: 1.1.0 +version: 1.1.1 description: Adds a commenting functionality to your site icon: comment author: From 825cfe1b1b6f8f9b87072c92e99c94858d6f8acf Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 11 Dec 2015 12:19:55 +0100 Subject: [PATCH 3/4] Fix #12 Avoid double encoding comment text output and author name, already filtered and escaped when stored --- templates/partials/comments.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/partials/comments.html.twig b/templates/partials/comments.html.twig index 7a798e1..691dd86 100644 --- a/templates/partials/comments.html.twig +++ b/templates/partials/comments.html.twig @@ -35,9 +35,9 @@ {% for comment in grav.twig.comments|array_reverse %} - {{comment.text|e}} + {{comment.text}}
- {{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author|e}} + {{'PLUGIN_COMMENTS.WRITTEN_ON'|t}} {{comment.date|e}} {{'PLUGIN_COMMENTS.BY'|t}} {{comment.author}} {% endfor %} From b3c1a1c75030d5fd3426eacf3e79ebfbbda431f9 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 11 Dec 2015 13:15:07 -0700 Subject: [PATCH 4/4] Fix changelog format --- CHANGELOG.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c820e1c..22ae187 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,21 @@ # v1.1.1 -## 12/10/2015 +## 12/11/2015 1. [](#improved) - Drop the autofocus on the comment form + * Drop the autofocus on the comment form +1. [](#bugfix) + * Fix double encoding (#12) # v1.1.0 ## 11/24/2015 -1. [](#improved) - Use date instead of gmdate to respect the server local time (thanks @bovisp) -1. [](#improved) - Now works with multilang (thanks @bovisp) 1. [](#new) - Added french (@codebee-fr) and russian (@joomline) languages -1. [](#new) - Takes advantage of the new nonce support provided by the Form plugin + * Added french (@codebee-fr) and russian (@joomline) languages + * Takes advantage of the new nonce support provided by the Form plugin +1. [](#improved) + * Use date instead of gmdate to respect the server local time (thanks @bovisp) + * Now works with multilang (thanks @bovisp) + # v1.0.2 ## 11/13/2015 @@ -27,10 +28,11 @@ # v1.0.1 ## 11/11/2015 -1. [](#bugfix) - * Fix error when user/data/comments does not exist 1. [](#improved) * Use onAdminMenu instead of the deprecated onAdminTemplateNavPluginHook +1. [](#bugfix) + * Fix error when user/data/comments does not exist + # v1.0.0 ## 10/21/2015