From 1b872f58be4888330bd9d0b3995fe2e34ee8765d Mon Sep 17 00:00:00 2001 From: eiselems Date: Thu, 2 Jun 2016 18:02:55 +0200 Subject: [PATCH] Add possibility to disable gesture navigation in config #170 --- _config.yml | 2 + _includes/js.html | 173 ++++++++++++++++++++++++---------------------- 2 files changed, 92 insertions(+), 83 deletions(-) diff --git a/_config.yml b/_config.yml index bcf870300d..7b9c4127c4 100755 --- a/_config.yml +++ b/_config.yml @@ -85,6 +85,8 @@ icon-192p: "/img/web-app/icon-192p.png" # Blog # ######## +enable-gesture-navigation: True + post-preview-words: 96 paginate: 5 diff --git a/_includes/js.html b/_includes/js.html index 3b9d04eaf5..8f6513199b 100755 --- a/_includes/js.html +++ b/_includes/js.html @@ -166,106 +166,113 @@ } -{% if page.section-type == "post" %} - - - - + +{% if site.enable-gesture-navigation %} - + {% if page.section-type == "post" %} - + + + + + -{% endif %} + -{% if page.section-type == "blog" %} + {% endif %} - + {% if page.section-type == "blog" %} + + + + + + - + - - - + {% endif %} -{% endif %} + {% if page.section-type == "blog" %} -{% if page.section-type == "blog" %} + - + - + - + {% endif %} -{% endif %} + {% if page.section-type == "post" %} -{% if page.section-type == "post" %} + + + - + - + {% endif %} - + {% endif %}