feat: recent activity

This commit is contained in:
Cory Dransfeldt 2024-09-18 19:32:26 -07:00
parent d36f589bdf
commit 6055a00193
No known key found for this signature in database
12 changed files with 85 additions and 64 deletions

View file

@ -2,6 +2,5 @@
layout: default
permalink: /
---
{% render "partials/home/status.liquid" status:status, music:music, books:books.all, tv:tv %}
{% render "partials/home/posts.liquid" icon: "pencil-star", title: "Featured", postData:posts, postType: "featured" %}
{% render "partials/home/posts.liquid" icon: "clock", title: "Recent posts", postData:posts %}
{% render "partials/home/status.liquid" music:music, books:books.all, tv:tv, movies:movies, links:links %}
{% render "partials/home/recent-posts.liquid" posts:posts %}

View file

@ -10,7 +10,10 @@ permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}
<div class="posts-wrapper">
{% for post in pagination.items %}
<article>
<time datetime="{{ post.date }}">{{ post.date | date: "%B %e, %Y" }}</time>
<time datetime="{{ post.date }}">
{%- if post.featured -%}{% tablericon "star" "featured" %}{%- endif -%}
{{ post.date | date: "%B %e, %Y" }}
</time>
<h3>
<a href="{{ post.slug }}">{{ post.title }}</a>
</h3>

View file

@ -8,8 +8,13 @@ permalink: "{{ post.slug }}/index.html"
schema: blog
---
<article class="standalone">
<time datetime="{{ post.date }}">{{ post.date | date: "%B %e, %Y" }}</time>
<h3>{{ post.title }}</h3>
<time datetime="{{ post.date }}">
{%- if post.featured -%}{% tablericon "star" "featured" %}{%- endif -%}
{{ post.date | date: "%B %e, %Y" }}
</time>
<h3>
{{ post.title }}
</h3>
<div>
{% render "partials/blocks/banners/old-post.liquid", date:post.date %}
{%- if post.image -%}