From a47003eed2f7a6de99c06b7bd2a77e6912e46c35 Mon Sep 17 00:00:00 2001 From: Daniel Lafraia Date: Sun, 10 Apr 2016 15:12:31 -0300 Subject: [PATCH] Adding support for feedback link customization --- _config.yml | 5 +++++ _includes/feedback.html | 2 +- _includes/topnav.html | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 7adb61a..fefa7cb 100644 --- a/_config.yml +++ b/_config.yml @@ -30,6 +30,11 @@ exclude: feedback_email: tomjohnson1492@gmail.com # used as a contact email for the Feedback link in the top navigation bar +#feedback_disable: true +#feedback_text: "Need help?" +#feedback_link: "http://helpy.io/" +# change feedback link behaviour if you use a support ticketing system or something else + highlighter: rouge # library used for syntax highlighting diff --git a/_includes/feedback.html b/_includes/feedback.html index 09b3367..bcd5fbc 100644 --- a/_includes/feedback.html +++ b/_includes/feedback.html @@ -13,4 +13,4 @@ window.location.href = uri; } -
  • Feedback
  • \ No newline at end of file +
  • {% if site.feedback_link == null %}{% endif %} {% if site.feedback_text %}{{site.feedback_text}}{% else %}Feedback{% endif %}
  • diff --git a/_includes/topnav.html b/_includes/topnav.html index 50463d5..55932dc 100644 --- a/_includes/topnav.html +++ b/_includes/topnav.html @@ -44,7 +44,9 @@ {% endfor %} {% endfor %} - {% include feedback.html %} + {% if site.feedback_disable == null or site.feedback_disable == false %} + {% include feedback.html %} + {% endif %}