Skip to content

Commit

Permalink
Merge pull request #312 from geotribu/comments/isso
Browse files Browse the repository at this point in the history
Déploiement d'Isso comme module de commentaires
  • Loading branch information
Guts authored Mar 30, 2021
2 parents e3b1fda + 8204372 commit 905f8af
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
28 changes: 21 additions & 7 deletions content/theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,28 @@

{% block disqus %}

<div class="md-source-date">
<small>
Contributions à cette page : {{ git_page_authors }}
</small>
</div>

{% include "partials/integrations/disqus.html" %}
{% if not page.is_homepage %}
{# Authoring based on git log #}
<div class="md-source-date">
<small>
Contributions à cette page : {{ git_page_authors }}
</small>
</div>

{# Comment system (Isso) #}
<div id="__comments">
<script
data-isso="{{ config.extra.comments_url }}/"
data-isso-require-author="true"
data-isso-require-email="true"
data-isso-reply-to-self="false"
data-isso-vote="true"
src="{{ config.extra.comments_url }}/js/embed.min.js">
</script>
<hr><section id="isso-thread"><h2>Commentaires</h2></section>
<noscript>Please enable JavaScript to view the comments.</noscript>
</div>
{% endif %}
{% endblock %}

{% block analytics %}
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ google_analytics:

# Customization
extra:
# disqus: 'geotribu-static' # comment system - disabled since ads
comments_url: https://comments.geotribu.fr # isso url
manifest: 'manifest.webmanifest' # PWA declaration
social:
- icon: 'fontawesome/solid/rss'
Expand Down

0 comments on commit 905f8af

Please sign in to comment.