Skip to content

page.summary only works when isolated on a newline. #2562

Open
@digitalillusions

Description

Bug Report

I've upgraded from Zola 0.18.0 to 0.19.1 today and found that my use of page.summary is broken.

When writing the <!-- more --> tag inline into markdown content, the page.summary variable does not get populated. For example

Hello hello <!-- more --> this is a test.

will not work. However,

Hello hello
<!-- more -->
this is a test

will work. Unfortunately, this will add a newline between Hello hello and this is a test when using page.content, which is a bummer because now I cant take part of a paragraph as a page summary anymore.

It would be cool to get back the functionality for <!-- more --> to be inlinable. I assume this might have something to do with the recent fix for footnotes?

Environment

Zola version: 0.19.1

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions