diff --git a/_config.yml b/_config.yml index 7a62d34..0d26ace 100644 --- a/_config.yml +++ b/_config.yml @@ -1,6 +1,7 @@ title: So Simple Theme description: A simple and clean responsive Jekyll theme for words and photos. logo: site-logo.png +disqus_shortname: sosimpletheme #Comment out url when working locally to resolve base urls correctly url: http://mmistakes.github.io/so-simple-theme diff --git a/_includes/disqus_comments.html b/_includes/disqus_comments.html new file mode 100644 index 0000000..0e1f7e3 --- /dev/null +++ b/_includes/disqus_comments.html @@ -0,0 +1,21 @@ + + +comments powered by Disqus \ No newline at end of file diff --git a/_includes/scripts.html b/_includes/scripts.html index afdb812..0402cb2 100644 --- a/_includes/scripts.html +++ b/_includes/scripts.html @@ -15,4 +15,5 @@ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); - \ No newline at end of file + +{% include disqus_comments.html %} \ No newline at end of file diff --git a/_layouts/post.html b/_layouts/post.html index 01fea71..f9d8d38 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -24,10 +24,12 @@ {{ site.owner.name }} photo + {% if page.comments %}Comment{% endif %} Permalink
{{ content }} + {% if page.comments %}
{% endif %}