Compare commits
7 Commits
c3be616e1e
...
7967eb3b49
Author | SHA1 | Date |
---|---|---|
Jez Cope | 7967eb3b49 | |
Jez Cope | 8013038a72 | |
Jez Cope | 91740b94bb | |
Jez Cope | 0154d15cde | |
Jez Cope | f49915e134 | |
Jez Cope | 246ba8bf87 | |
Jez Cope | 8b15b6b220 |
|
@ -14,6 +14,11 @@
|
|||
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
|
||||
{{ $style := resources.Get "style/main.sass" | resources.ToCSS }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
{{ with .Site.Params.comments.webmention }}<link rel="webmention" href="{{ . }}" />{{ end }}
|
||||
{{ with .Site.Params.comments.pingback }}<link rel="pingback" href="{{ . }}" />{{ end }}
|
||||
|
||||
{{ if .Site.Params.comments.cactus }}<link rel="stylesheet" href="https://latest.cactus.chat/style.css" type="text/css">{{ end }}
|
||||
{{ with .OutputFormats.Get "RSS" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
|
||||
{{- end }}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<div class="columns">
|
||||
<div class="column is-8 is-offset-2">
|
||||
{{ partial "comments/webmention" . }}
|
||||
{{ partial "comments/cactus" . }}
|
||||
{{ with .Site.DisqusShortname }}
|
||||
<div>
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
{{ if .Site.Params.comments.cactus }}
|
||||
<hr />
|
||||
<div class="content">
|
||||
<h2>Comments</h2>
|
||||
</div>
|
||||
<div id="cactus-comments"></div>
|
||||
<p>
|
||||
<em>Powered by <a href="https://cactus.chat/">Cactus Comments 🌵</a></em>
|
||||
</p>
|
||||
{{ end }}
|
|
@ -1,21 +1,13 @@
|
|||
{{ if .Site.Params.comments.webmention }}
|
||||
<hr />
|
||||
<div class="content">
|
||||
<h2>Comments</h2>
|
||||
<form method="get" action="https://quill.p3k.io/" target="_blank"><input type="hidden" name="dontask" value="1">
|
||||
<input type="hidden" name="me" value="https://commentpara.de/">
|
||||
<input type="hidden" name="reply" value="{{ .Permalink }}">
|
||||
<h2>Webmentions</h2>
|
||||
<p>
|
||||
You can respond to this post, <a href="{{ .Permalink }}">"{{ .Title }}"</a>, by:
|
||||
liking, boosting or replying to a tweet or <a href="https://joinmastodon.org/">toot</a> that mentions it; or
|
||||
sending a <a href="https://indieweb.org/Webmention">webmention</a> from your own site to <code>{{ .Permalink }}</code>
|
||||
|
||||
You can comment on this post, <a href="{{ .Permalink }}">"{{ .Title }}"</a>, by:
|
||||
<ul>
|
||||
<li>Replying to its tweet on Twitter or its toot on Mastodon</li>
|
||||
<li>Sending a Webmention from your own site to <code>{{ .Permalink }}</code></li>
|
||||
<li>Using this button: </li>
|
||||
</ul>
|
||||
<div class="control ml-6">
|
||||
<input class="button is-primary is-small" type="submit" value="Write a comment">
|
||||
</div>
|
||||
</form>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="webmentions">
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
<script type="text/javascript" src="/js/navbar.js"></script>
|
||||
|
||||
{{ if .Site.Params.comments.webmention }}
|
||||
{{ $webmention_js := resources.Get "js/webmention.js" | minify }}
|
||||
<script src="{{ $webmention_js.RelPermalink }}"
|
||||
data-page-url="{{ .Permalink }}"
|
||||
async></script>
|
||||
{{ if .File }}
|
||||
{{ $page_id := .File.BaseFileName }}
|
||||
{{ if .Site.Params.comments.webmention }}
|
||||
{{ $webmention_js := resources.Get "js/webmention.js" | minify }}
|
||||
<script src="{{ $webmention_js.RelPermalink }}"
|
||||
data-page-url="{{ .Permalink }}"
|
||||
async></script>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.comments.cactus }}
|
||||
<script type="text/javascript" src="https://latest.cactus.chat/cactus.js"
|
||||
data-default-homeserver-url="https://matrix.cactus.chat:8448"
|
||||
data-server-name="cactus.chat"
|
||||
data-site-name="{{ . }}"
|
||||
data-node="#cactus-comments"
|
||||
data-comment-section-id="{{ $page_id }}"></script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue