Browse Source

gts comments tweak

master
Jon Kelbie 5 months ago
parent
commit
3392c8df00
  1. 14
      themes/nipponalba/layouts/_default/single.jp.html
  2. 3
      themes/nipponalba/layouts/partials/head.html

14
themes/nipponalba/layouts/_default/single.jp.html

@ -35,8 +35,7 @@
<hr/>
<section id="interactions"><h4>インタラクション</h4>
<section id="interactions_intro">このサイトでは、<a href="https://indieweb.org/Webmention" title="Webmention is a web standard for mentions and conversations across the web, a powerful building block that is used for a growing federated network of comments, likes, reposts, and other rich interactions across the decentralized social web." class="u-url" target="_blank">webmentions</a>や「cactus chat」のmatrixを使って交流することができます(
現在、機能していません)。ゲスト(ログインしていない人)のコメントはまだできませんが、<a href="https://matrix.to/#/@jon:kelbie.scot" class="u-url" target="_blank">matrix</a><a href="mailto:jon@kelbie.scot" class="u-url">メール</a>でご連絡ください。<br/><br/>
<section id="interactions_intro">このサイトでの交流は、Fediverseのアプリや<a href="https://indieweb.org/Webmention" title="Webmention is a web standard for mentions and conversations across the web, a powerful building block that is used for a growing federated network of comments, likes, reposts, and other rich interactions across the decentralized social web." class="u-url" target="_blank">webmentions</a>で可能です。 または<a href="https://matrix.to/#/@jon:kelbie.scot" class="u-url" target="_blank">matrix</a><a href="mailto:jon@kelbie.scot" class="u-url">メール</a>でご連絡ください。<br/><br/>
<label for="toggle_comments" id="comments_label">コメント</label> | <label for="toggle_webmentions" id="webmentions_label">Webmentions</label></section>
<input type="radio" name="interactions" id="toggle_comments" checked="checked"><input type="radio" name="interactions" id="toggle_webmentions">
<section id="webmentions_frame"><section id="webmention-form">
@ -63,17 +62,6 @@
{{ end }}</section>
<h4>Comments & Replies</h4>{{ partial "webmention.html" $mentions }}
</section>{{ end }}</section>
<section id="comments_frame">
<div id="comment-section"></div>
<script>
initComments({
node: document.getElementById("comment-section"),
defaultHomeserverUrl: "https://kelbie.scot",
serverName: "kelbie.scot",
siteName: "jon.kelbie.scot",
commentSectionId: "{{ .Page.Params.slug }}"
})
</script></section>
</section>
</article>
{{ else if eq .Type "bookmarkof" }}

3
themes/nipponalba/layouts/partials/head.html

@ -10,9 +10,6 @@
<link rel="preload" as="font" href="/fonts/Inter-Regular.woff" type="font/woff" crossorigin="anonymous" />
<base href="{{ .Site.BaseURL }}">
<script type="module" src="/assets/js/mastodon-comments.js"></script>
<script type="text/javascript" src="/api/cactuschat/cactus.js"></script>
<link rel="stylesheet" href="/api/cactuschat/style.css" type="text/css">
<link rel="stylesheet" href="/api/cactuschat/custom.css" type="text/css">
<!-- indieweb stuff -->
<link rel="me" href="mailto:jon@kelbie.scot" />
<link rel="me" href="https://note.com/jon_kelbie" />

Loading…
Cancel
Save