|
@@ -125,29 +125,29 @@
|
|
|
{% endif %}
|
|
|
</div>
|
|
|
</section>
|
|
|
- </div>
|
|
|
- </article>
|
|
|
- {% endblock content %}
|
|
|
+</div>
|
|
|
+</article>
|
|
|
+{% endblock content %}
|
|
|
|
|
|
- {% block script %}
|
|
|
+{% block script %}
|
|
|
{{ super() }}
|
|
|
{% include 'disqus_script_count.html' %}
|
|
|
{% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
|
|
|
- <script language="javascript" type="text/javascript">
|
|
|
- function uncollapse() {
|
|
|
- var hash_str = window.location.hash;
|
|
|
- if (window.location.hash.match(/^#comment-\d+$/))
|
|
|
- {
|
|
|
- var hash_str = '#disqus_thread';
|
|
|
+ <script language="javascript" type="text/javascript">
|
|
|
+ function uncollapse() {
|
|
|
+ var hash_str = window.location.hash;
|
|
|
+ if (window.location.hash.match(/^#comment-\d+$/))
|
|
|
+ {
|
|
|
+ var hash_str = '#disqus_thread';
|
|
|
+ }
|
|
|
+ $(hash_str).collapse({
|
|
|
+ toggle: true
|
|
|
+ })
|
|
|
}
|
|
|
- $(hash_str).collapse({
|
|
|
- toggle: true
|
|
|
- })
|
|
|
- }
|
|
|
- </script>
|
|
|
+ </script>
|
|
|
|
|
|
- <script type="text/javascript" language="JavaScript">
|
|
|
- uncollapse();
|
|
|
- </script>
|
|
|
+ <script type="text/javascript" language="JavaScript">
|
|
|
+ uncollapse();
|
|
|
+ </script>
|
|
|
{% endif %}
|
|
|
- {% endblock script %}
|
|
|
+{% endblock script %}
|