post-summary.html
Some checks failed
Build and Deploy / build (push) Has been cancelled
Build and Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-04-18 17:12:15 +02:00
parent ac7f7e6111
commit ee61f8fff8
2 changed files with 6 additions and 7 deletions

View File

@@ -28,12 +28,8 @@
| replace: '<br />', ' ' | replace: '<br />', ' '
| strip_newlines | strip_newlines
| strip | strip
| truncate: 200
-%} -%}
{%- unless include.full_text -%}
{%- assign max_length = include.max_length | default: 200 -%}
{%- assign content = content | truncate: max_length -%}
{%- endunless -%}
{{- content -}} {{- content -}}
{%- endif -%} {%- endif -%}

View File

@@ -1,5 +1,6 @@
--- ---
layout: none layout: compress
swcache: true
--- ---
[ [
{% for post in site.posts %} {% for post in site.posts %}
@@ -8,7 +9,9 @@ layout: none
"categories" : "{{ post.categories }}", "categories" : "{{ post.categories }}",
"tags" : "{{ post.tags | join: ', ' }}", "tags" : "{{ post.tags | join: ', ' }}",
"url" : "{{ site.baseurl }}{{ post.url }}", "url" : "{{ site.baseurl }}{{ post.url }}",
"date" : "{{ post.date }}" "date" : "{{ post.date }}",
{% capture content -%}{% include post-summary.html full_text=true %}{%- endcapture -%}
"content": {{ content | jsonify }}
} {% unless forloop.last %},{% endunless %} } {% unless forloop.last %},{% endunless %}
{% endfor %} {% endfor %}
] ]