Merge pull request #200 from sumnerevans/isso-support

Isso support
This commit is contained in:
Alexandre Vicenzi 2020-04-16 17:12:47 +02:00 committed by GitHub
commit ee4c79b7dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 55 additions and 1 deletions

View file

@ -31,6 +31,7 @@ The minimalist [Pelican](http://blog.getpelican.com/) theme.
- [Google Tag Manager](https://www.google.com/tagmanager/)
- [Matomo Analytics (formerly Piwik)](https://matomo.org/)
- [StatusCake](https://www.statuscake.com/)
- [Isso](https://posativ.org/isso/)
## Plugins Support

20
static/isso/isso.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -269,6 +269,12 @@ main {
}
}
}
// Add a bit of padding between each of the entry boxes in the Isso auth
// section. By default, they are squished together, which looks terrible.
section#isso-thread .auth-section .input-wrapper {
margin-right: 5px;
}
}
footer {
@ -303,7 +309,8 @@ main {
}
}
a.btn {
a.btn,
section#isso-thread section.auth-section p.post-action input {
background-color: @btn-bg;
padding: .6em .6em;
font-size: .8em;
@ -312,6 +319,7 @@ a.btn {
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border: none;
border-radius: .25em;
}

View file

@ -94,5 +94,6 @@
{% endif %}
{% include "partial/disqus.html" %}
{% include "partial/isso.html" %}
</article>
{% endblock %}

View file

@ -0,0 +1,23 @@
{% if ISSO_URL %}
<!-- Isso -->
<section id="isso-thread" data-title="{{ article.title|e }}"></section>
<script
type="text/javascript"
{% if ISSO_EMBED_JS_PATH %}
src="{{ ISSO_EMBED_JS_PATH }}"
{% else %}
src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/isso/isso.min.js"
{% endif %}
{% if ISSO_URL %}
data-isso="{{ ISSO_URL }}"
{% endif %}
{% for opt, val in ISSO_OPTIONS.items() %}
data-isso-{{ opt }}="{{ val }}"
{% endfor %}
></script>
<noscript>
{{ _('Please enable JavaScript to view comments.') }}
</noscript>
<!-- End Isso -->
{% endif %}

View file

@ -83,6 +83,7 @@ msgid "Tags"
msgstr ""
#: templates/partial/disqus.html:13
#: templates/partial/isso.html:20
msgid "Please enable JavaScript to view comments."
msgstr ""