Merge pull request #47 from sennav/master

Fix disqus comments counter.
This commit is contained in:
Gilson Filho 2016-08-10 18:27:00 -03:00 committed by GitHub
commit 737084de97
4 changed files with 18 additions and 10 deletions

View File

@ -404,3 +404,7 @@ img::-moz-selection {
body { body {
webkit-tap-highlight-color: #0085a1; webkit-tap-highlight-color: #0085a1;
} }
.article-summary {
padding-top:10px;
padding-bottom: 10px;
}

View File

@ -1 +1 @@
{% if DISQUS_SITENAME %}<p>There are <a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a>.</p>{% endif %} {% if DISQUS_SITENAME %}<p>There are <a data-disqus-identifier="{{ article.url }}" href="{{ SITEURL }}/{{ article.url }}#disqus_thread">comments</a>.</p>{% endif %}

View File

@ -49,11 +49,15 @@
</a> </a>
{% if SHOW_FULL_ARTICLE %} {% if SHOW_FULL_ARTICLE %}
{{ article.content }} {{ article.content }}
{% elif article.has_summary %} {% else %}
<p class="article-summary">
{% if article.has_summary %}
{{ article.summary }} {{ article.summary }}
{% elif article.summary %} {% elif article.summary %}
{{ article.summary|striptags|truncate(140) }} {{ article.summary|striptags|truncate(140) }}
{% endif %} {% endif %}
</p>
{% endif %}
<p class="post-meta">Posted by <p class="post-meta">Posted by
{% for author in article.authors %} {% for author in article.authors %}
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a> <a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>

View File

@ -1,7 +1,7 @@
{% if article.status != "draft" %} {% if article.status != "draft" %}
<hr> {% if ADDTHIS_PUBID %}
<div class="sharing"> <hr>
{% if ADDTHIS_PUBID %} <div class="sharing">
<!-- AddThis Button BEGIN --> <!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_1"></a>
@ -18,6 +18,6 @@
</div> </div>
<script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PUBID }}"></script> <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADDTHIS_PUBID }}"></script>
<!-- AddThis Button END --> <!-- AddThis Button END -->
{% endif %} </div>
</div> {% endif %}
{% endif %} {% endif %}