feat: refactor feeds; reduce dependencies
This commit is contained in:
parent
4067148658
commit
d768007f1c
375 changed files with 2568 additions and 13971 deletions
|
@ -10,7 +10,7 @@
|
|||
"id": "{{ entry.url | btoa }}",
|
||||
"title": "{{ entry.title | replaceQuotes }}",
|
||||
"url": "{{ entry.url }}",
|
||||
"content_text": "{{ entry.title | replaceQuotes }}{% if tagMap %} {{ entry.url | tagLookup: tagMap }}{% endif %} {{ entry.url }}",
|
||||
"content_text": "{{ entry.title | replaceQuotes }} {{ entry.url }}",
|
||||
"date_published": "{{ entry.date | stringToRFC822Date }}"
|
||||
}{% if not forloop.last %},{% endif %}
|
||||
{%- endfor %}
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{%- assign shareLink = postUrl | findPost: linkPosts -%}
|
||||
{%- if shareLink %}
|
||||
<script type="module" src="/assets/scripts/components/mastodon-post.js"></script>
|
||||
<template id="mastodon-post-template">
|
||||
<div class="mastodon-post-wrapper">
|
||||
<blockquote data-key="content"></blockquote>
|
||||
<dl>
|
||||
<dt>{% tablericon "refresh" "Reposts" %}</dt>
|
||||
<dd data-key="reblogs_count"></dd>
|
||||
<dt>{% tablericon "message-circle" "Replies" %}</dt>
|
||||
<dd data-key="replies_count"></dd>
|
||||
<dt>{% tablericon "star" "Favorites" %}</dt>
|
||||
<dd data-key="favourites_count"></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</template>
|
||||
<span class="client-side">
|
||||
<mastodon-post>
|
||||
<a href="{{ shareLink }}">
|
||||
Discuss on Mastodon
|
||||
</a>
|
||||
</mastodon-post>
|
||||
</span>
|
||||
{% endif -%}
|
|
@ -6,8 +6,8 @@
|
|||
<ul class="link-list">
|
||||
{% for link in links limit: 5 %}
|
||||
<li>
|
||||
<a href="{{link.url}}" title="{{link.title | escape}}">
|
||||
{{ link.title }}
|
||||
<a href="{{ link.url }}" title="{{ link.data.title | escape }}">
|
||||
{{ link.data.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<script type="module" src="/assets/scripts/components/webcare-webshare.js"></script>
|
||||
<webcare-webshare share-text="{{ title }} {{ url | tagLookup: tagMap }}" share-url="{{ url }}" copy-text="{{ title }} {{ url | tagLookup: tagMap }} {{ url }}">
|
||||
<webcare-webshare share-text="{{ title }} {{ url }}" share-url="{{ url }}" copy-text="{{ title }} {{ url }} {{ url }}">
|
||||
<button class="share icon-small icon-center-vertical" disabled>{% tablericon "share" "Share" %}</button>
|
||||
</webcare-webshare>
|
Reference in a new issue