~admicos/ecmelberk.com unlisted

ref: b81c454f6f8fe67ca065bea1c30bf5b0811551cb ecmelberk.com/layouts/partials/discuss.html -rw-r--r-- 474 bytes View raw
b81c454fEcmel Berk Canlier Add comment system backed by my Pleroma instance a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ if isset .Params "discussion_toot" }}
{{ $discuss_js := resources.Get "discuss.js" | resources.Minify }}
{{ $toot_id := .Params.discussion_toot }}

<div class="discuss">
    <hr>

    <span class="header">
        Discuss
        <a href="https://fedi.ecmelberk.com/notice/{{ $toot_id }}">
            in the fediverse
        </a>
    </span>

    <div id="discuss" data-toot="{{ $toot_id }}"></div>
</div>

<script src="{{ $discuss_js.Permalink }}"></script>
{{ end }}