Add blog header, summary on homepage, pin Ko-fi widget to bottom right
This commit is contained in:
parent
c69d8e2041
commit
9b6954db25
2 changed files with 19 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 →</a></p>
|
||||
</article>
|
||||
|
||||
{% if blog_section.pages | length > 1 %}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue