Skip to content

Commit 6352889

Browse files
author
Vinit Kumar
committed
Merge pull request #2 from vinitkumar/gh-pages
Fix ugly footer due to disqus
2 parents 3bd9306 + 178f217 commit 6352889

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ paginate: 8
66
description: Jekyll theme for Programmers
77
intro: gCode is a Jekyll theme most suited to be used on tech blogs that like their content to shine.
88
logo: logo.png
9-
disqus_shortname: gotchacode
9+
disqus_shortname:
1010
# url: http://gotchacode.com
1111
#Comment out url when working locally to resolve base urls correctly
1212
#url:

_includes/disqus_comments.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div id="disqus_thread"></div>
33
<script type="text/javascript">
44
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
5-
var disqus_shortname = ''; // required: replace example with your forum shortname
5+
var disqus_shortname = '{{ site.disqus_shortname }}'; // required: replace example with your forum shortname
66

77
/* * * DON'T EDIT BELOW THIS LINE * * */
88
(function() {

_layouts/post.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ <h2>{{ page.title }}</h2>
1818
<a href="https://twitter.com/share" class="twitter-share-button" data-via="{{ site.owner.twitter }}" data-size="large" data-hashtags="gotchacode">Tweet</a>
1919
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
2020

21+
{% if site.disqus_shortname %}
2122
{% include disqus_comments.html %}
23+
{% endif %}

0 commit comments

Comments
 (0)