Skip to content

Links to images broken in summary #1705

@Yaroslav-95

Description

@Yaroslav-95

Bug Report

Before version 0.15.0 zola would correctly generate links to any images that belonged to a page (e.g. a blog post) that were contained in a summary and rendered outside that page (e.g. the index page). From version 0.15.0 onward this is broken.

Inside the page, the link is generated correctly, but outside it, in the summary, it is not; instead of something like /blog/post/image.jpg you get image.jpg.

Environment

Zola version: 0.15.0, 0.15.1

Expected Behavior

The link in the summary should be something like /blog/post/image.jpg.

Current Behavior

zola renders something like image.jpg instead.

Step to reproduce

Build a site with a post that has a picture in its summary and whose template renders summaries. An example of such a site: https://git.yaroslavps.com/yaroslavps.com/ under /food/.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions