From cea717a4943a735bf4c000d09d630b67f97f2735 Mon Sep 17 00:00:00 2001 From: Franco Masotti Date: Sat, 19 Dec 2020 18:53:28 +0100 Subject: [PATCH] Changed comments URL structure. --- _config.yml | 4 ++-- _includes/comments.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_config.yml b/_config.yml index af0c0c1..b0ce27c 100644 --- a/_config.yml +++ b/_config.yml @@ -19,7 +19,7 @@ software: author: name: "Franco Masotti" - email: "franco.masotti@live.com" + email: "frnmst.blog@outlook.com" buymeacoffee: message: "Buy me a coffee" url: "https://buymeacoff.ee/frnmst" @@ -138,7 +138,7 @@ defaults: ## Other Params include: [ "_pages" ] -exclude: [ "LICENSE", "README.md", "CNAME", "vendor", "Gemfile", "Makefile" ] +exclude: [ "LICENSE", "README.md", "CNAME", "vendor", "Gemfile", "Makefile", "Pipfile", "Pipfile.lock", ".pre-commit-config.yaml" ] ## Ruby gems plugins: diff --git a/_includes/comments.html b/_includes/comments.html index 4e4f0cf..26c6013 100644 --- a/_includes/comments.html +++ b/_includes/comments.html @@ -4,13 +4,13 @@ {% assign mail_username = mail_substring[0] %} {% assign mail_domain = mail_substring[1] %} {% if page.is_post %} - {% capture mailto_prefix %}{{ mail_username }}+{{ page.path | remove: ".md" | remove: "_posts/" }}{% endcapture %} + {% capture mailto_subject %}{{ page.path | remove: ".md" | remove: "_posts/" | urlencode }}{% endcapture %} {% else %} - {% capture mailto_prefix %}{{ mail_username }}+{{ page.path | remove: ".html" | remove: ".md" | remove: "_pages/" }}{% endcapture %} + {% capture mailto_subject %}{{ page.path | remove: ".html" | remove: ".md" | remove: "_pages/" | urlencode }}{% endcapture %} {% endif %}

- + Post a new comment