Sha256: 05b6119ed56898752dd92b5823683c0b8259381f1060e8d24d9d6a4fe2b18eb7

Contents?: true

Size: 637 Bytes

Versions: 2

Compression:

Stored size: 637 Bytes

Contents

{% if page.comments.artalk or site.comments.artalk and layout.type == "post" %}
<script src="https://cdn.jsdelivr.net/npm/artalk/dist/Artalk.min.js"></script>
<script>
    $(document).ready(function () {
        if ($("#artalk").length > 0) {
            Artalk.init({
                el: '#artalk',
                pageKey: '{{ page.url }}',
                server: '{{ site.comments.artalk_url }}',
                site: '{{ site.comments.artalk_name }}',
                uaBadge: '{% if site.comments.artalk_uaBadge %}{{ site.comments.artalk_uaBadge }}{% else %}true{% endif %}'
            });
        }
    });
</script>
{% endif %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-h2o-ac-1.5.0 _includes/plugins/comments/artalk_js.html
jekyll-theme-h2o-ac-1.4.0 _includes/plugins/comments/artalk_js.html