Add blog header, summary on homepage, pin Ko-fi widget to bottom right

This commit is contained in:
Graham McIntire 2026-04-18 15:59:05 -05:00
parent c69d8e2041
commit 9b6954db25
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59
2 changed files with 19 additions and 1 deletions

View file

@ -6,3 +6,15 @@ h5:before,
h6:before {
content: none;
}
.floatingchat-container-wrap,
.floatingchat-container-wrap-mobi {
left: auto !important;
right: 25px !important;
}
.floating-chat-kofi-popup-iframe,
.floating-chat-kofi-popup-iframe-mobi {
left: auto !important;
right: 25px !important;
}

View file

@ -26,13 +26,19 @@
{% set blog_section = get_section(path="blog/_index.md") %}
{% if blog_section.pages | length > 0 %}
<h2>Blog</h2>
{% set latest = blog_section.pages | first %}
<article>
<h2><a href="{{ latest.permalink }}">{{ latest.title }}</a></h2>
{% if latest.date %}
<p><time datetime="{{ latest.date | date(format="%Y-%m-%d") }}">{{ latest.date | date(format="%Y-%m-%d") }}</time></p>
{% endif %}
{{ latest.content | safe }}
{% if latest.summary %}
{{ latest.summary | safe }}
{% else %}
<p>{{ latest.content | striptags | truncate(length=400) }}</p>
{% endif %}
<p><a href="{{ latest.permalink }}">Read more &rarr;</a></p>
</article>
{% if blog_section.pages | length > 1 %}