Skip to content

Commit c80a3cd

Browse files
committed
Add tawk.to possibility with switch, thanks to Juan Jose Amor Iglesias
1 parent d526659 commit c80a3cd

3 files changed

Lines changed: 22 additions & 7 deletions

File tree

_config.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,19 @@ sass:
206206

207207
google_analytics_tracking_id: UA-60112281-1
208208

209+
210+
209211
# _ _ _
210212
# | |_ __ ___ _| | __| |_ ___
211213
# | __/ _` \ \ /\ / / |/ /| __/ _ \
212214
# | || (_| |\ V V /| < | || (_) |
213-
# \__\__,_| \_/\_/ |_|\_(_)__\___/
215+
# \__\__,_| \_/\_/ |_|\_(_)__\___/ More › https://www.tawk.to/knowledgebase/
216+
#
217+
# tawk.to is a free live chat app that lets you monitor and chat
218+
# with visitors on your website or from a free customizable page
219+
#
220+
# To load the script add tawkto: true in front matter of each page
214221
#
215222
# used in _includes/footer_scripts.html
216223

217-
tawkto_embed_uri: https://embed.tawk.to/5407146b59df1e704b00001b/default
224+
# tawkto_embed_uri:

_includes/footer_scripts.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@
2323
</script>
2424
{% endif %}
2525

26-
{% if site.tawkto_embed_uri %}
27-
<!--Start of Tawk.to Script-->
26+
27+
{% comment %}
28+
# Start of Tawk.to Script
29+
#
30+
# More information in _config.yml
31+
#
32+
{% endcomment %}
33+
{% if site.tawkto_embed_uri and page.tawkto == true %}
2834
<script type="text/javascript">
2935
var $_Tawk_API={},$_Tawk_LoadStart=new Date();
3036
(function(){
@@ -36,6 +42,5 @@
3642
s0.parentNode.insertBefore(s1,s0);
3743
})();
3844
</script>
39-
<!--End of Tawk.to Script-->
4045
{% endif %}
4146

pages/changelog.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ header:
88
image_fullwidth: "header_unsplash_9.jpg"
99
permalink: "/changelog/"
1010
---
11+
2015-06-29 // Version 1.3
12+
: Added the possibility of using [tawk.to][8] via front matter switch `tawkto: true` in front matter. Thank you [Juan Jose Amor Iglesias][9] for the suggestion.
13+
1114
2015-05-04 // Version 1.2.1
1215
: Added `meta_title` to `<head>`. Use it in frontmatter for SEO purposes.
1316

@@ -108,6 +111,6 @@ permalink: "/changelog/"
108111
[5]: {{ site.url }}/design/video/
109112
[6]: https://www.google.de/maps/place/Strandpaviljoen+Joep+B.V./@51.9960733,5.830135,6z/data=!4m2!3m1!1s0x47cf5918df69093b:0x7c11ab31102c1c8a
110113
[7]: fontcustom.com
111-
[8]: #
112-
[9]: #
114+
[8]: https://www.tawk.to
115+
[9]: https://github.com/jjamor
113116
[10]: #

0 commit comments

Comments
 (0)