feat: cms integration

This commit is contained in:
Cory Dransfeldt 2024-06-01 07:16:49 -07:00
parent ff77bdaf36
commit d23243b177
No known key found for this signature in database
1050 changed files with 1032 additions and 27229 deletions

View file

@ -1,14 +1,14 @@
{% assign posts = posts | getPopularPosts: analytics %}
{% if posts.size > 0 %}
{% assign postData = posts | getPopularPosts: analytics %}
{% if postData.size > 0 %}
<h2 class="link-list-header flex-centered">
{% tablericon "flame" "Popular" %}
Popular posts
</h2>
<ul class="link-list">
{% for post in posts limit: 5 %}
{% for post in postData limit: 5 %}
<li>
<a class="no-underline" href="{{post.url}}" title="{{ post.data.title | escape}}">
{{ post.data.title }}
<a class="no-underline" href="{{ post.url }}" title="{{ post.title | escape}}">
{{ post.title }}
</a>
</li>
{% endfor %}

View file

@ -5,12 +5,11 @@
</h2>
<ul class="link-list">
{% for link in links limit: 5 %}
{% assign author = link.data.link | stripUtm | authorLookup %}
<li>
<a href="{{ link.data.link }}" title="{{ link.data.title | escape }}">
{{ link.data.title }}
<a href="{{ link.link }}" title="{{ link.title | escape }}">
{{ link.title }}
</a>
{% if author %} via {{ author }}{% endif %}
{% if link.authors %} via <a href="{{ link.authors.url }}">{{ link.authors.name }}</a>{% endif %}
</li>
{% endfor %}
</ul>

View file

@ -1,4 +0,0 @@
<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 }}">
<button class="share icon-small icon-center-vertical" disabled>{% tablericon "share" "Share" %}</button>
</webcare-webshare>

View file

@ -1,6 +0,0 @@
{% assign filteredTags = tags | filterTags %}
<div{% if hasSpace %} style="margin-bottom:var(--sizing-md)"{% endif %}>
{% for tag in filteredTags limit: 10 %}
<a class="tag-element" href="/tags/{{ tag | downcase }}">{{ tag | formatTag }}</a>
{% endfor %}
</div>