diff --git a/_includes/feedback.html b/_includes/feedback.html new file mode 100644 index 0000000..fae99e1 --- /dev/null +++ b/_includes/feedback.html @@ -0,0 +1,17 @@ +{% if page.type %}{% else %} +
+

+ Was this article helpful? Yes - No +

+

+ Well, that's awkward . Would you mind + {% capture issue_body %}### [{{ page.title }}]({{ page.path }}) issue:{% endcapture %} + {% capture issue_title %}Problem with page {{ page.path }}{% endcapture %} + opening an issue or + help us out? +

+

+ Thanks for the feedback! +

+
+{% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index 89c2c1d..e9eedbc 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,6 +5,7 @@ TinyMCE - {{ page.title }} + {% include top-menu.html %} @@ -48,6 +49,7 @@
{{ content }} + {% include feedback.html %}
diff --git a/_plugins/url_encode.rb b/_plugins/url_encode.rb new file mode 100644 index 0000000..777a4fa --- /dev/null +++ b/_plugins/url_encode.rb @@ -0,0 +1,11 @@ +require 'uri' + +module Jekyll + module URLEncode + def url_encode(input) + input = URI.escape(input, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) + end + end +end + +Liquid::Template.register_filter(Jekyll::URLEncode)