Анонс и полное содержимое
Пример вывода анонса и полного содержимого в Jekyll.
---
layout: post
title: Заголовок
date: 2023-04-21 12:56 +0600
description: Описание
image: cover.jpg
thumbnail: cover.jpg
categories: []
tags: []
published: true
sitemap: true
excerpt_separator: <!--more-->
---
Краткое содержимое
<!--more-->
Полное содержимое
Затем в шаблоне.
{{ post.excerpt | markdownify | strip_html | truncatewords: 40 }}
Или.
{% assign separator_size = '<!--more-->' | size %}
{% assign size_excerpt = page.excerpt | size | plus: separator_size %}
{% assign size_content = page.content | size %}
{{ page.content | slice: size_excerpt, size_content }}