Browse Source

add comment count

master
sipp11 10 years ago
parent
commit
f3abe36d8f
  1. 14
      index.html
  2. 2
      sync_to_prod.sh

14
index.html

@ -11,7 +11,7 @@ layout: default
<ul class="post-list"> <ul class="post-list">
{% for post in paginator.posts %} {% for post in paginator.posts %}
<li> <li>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} • <small>{{ post.categories | array_to_sentence_string }}</small></span> <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }} • <small>{{ post.categories | array_to_sentence_string }}<a href="{% if post.disqus_url %}{{ post.disqus_url | prepend: site.baseurl }}{% else %}{{ post.url | prepend: site.baseurl }}{% endif %}#disqus_thread">comments</a></small></span>
<h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2> <h2><a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h2>
</li> </li>
{% endfor %} {% endfor %}
@ -19,3 +19,15 @@ layout: default
{% include paginator.html %} {% include paginator.html %}
</div> </div>
<script>
var disqus_shortname = 'mycapsules';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>

2
sync_to_prod.sh

@ -4,7 +4,7 @@ RUSER=sipp11
RHOST=do3 RHOST=do3
PORT=22 PORT=22
RPATH=/opt/www/mycapsules RPATH=/opt/www/mycapsules
LPATH=/Volumes/2tblack/sipp11/blog/mycapsules/_site/ LPATH=./_site/
rsync -avu -e "ssh -p $PORT" $LPATH $RUSER@$RHOST:$RPATH \ rsync -avu -e "ssh -p $PORT" $LPATH $RUSER@$RHOST:$RPATH \
--exclude=.DS_Store --exclude=sync_ec2.sh --exclude=*.pyc \ --exclude=.DS_Store --exclude=sync_ec2.sh --exclude=*.pyc \

Loading…
Cancel
Save