chore: refactoring
This commit is contained in:
parent
df5fddefc0
commit
e0593447eb
40 changed files with 181 additions and 232 deletions
23
src/includes/partials/blocks/mastodon-post.liquid
Normal file
23
src/includes/partials/blocks/mastodon-post.liquid
Normal file
|
@ -0,0 +1,23 @@
|
|||
{%- if post -%}
|
||||
<script type="module" src="/assets/scripts/components/mastodon-post.js"></script>
|
||||
<template id="mastodon-post-template">
|
||||
<blockquote data-key="content"></blockquote>
|
||||
<dl>
|
||||
<dt>{% tablericon "refresh" %}</dt>
|
||||
<dd data-key="reblogs_count"></dd>
|
||||
<dt>{% tablericon "message-circle" %}</dt>
|
||||
<dd data-key="replies_count"></dd>
|
||||
<dt>{% tablericon "star" %}</dt>
|
||||
<dd data-key="favourites_count"></dd>
|
||||
</dl>
|
||||
</template>
|
||||
<span class="client-side">
|
||||
<div class="mastodon-post-wrapper">
|
||||
<mastodon-post>
|
||||
<a href="{{ post }}">
|
||||
Discuss on Mastodon
|
||||
</a>
|
||||
</mastodon-post>
|
||||
</div>
|
||||
</span>
|
||||
{%- endif -%}
|
Reference in a new issue