Skip to content

  rendering in titles #79

@Librist-org

Description

@Librist-org

In French, a non-breaking space is used before double punctuation marks (: ; ! ?) and between quotation marks and text (« texte »).
If page titles contain a non-breaking space, in feeds   become  , causing “ ” to appear in title.
There is no such problem with the content of the page.

So, in templates, why not use: <title>{{ item.title|safe_truncate_html()|raw }}</title>, in the same way as for content
Instead of: <title>{{ item.title|e }}</title> ?

(problem encountered elsewhere: pmoreno-rodriguez/grav-theme-mundana#22 (comment))

Metadata

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