Skip to content

Wrong title for pages in side menu #5

@thecross-fr

Description

@thecross-fr

Hello,

  1. Create a standard page with a title composed of two words.
    Example: Title: About me
  2. Run pelican using the brutalist template

Expected: link to page is shown in the side menu with label "About me".
Found: link to page is shown in the side menu with label "about-me".

How to fix it ?
File base.html, line 89.
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.slug }}</a></li>

To be replaced by:
<li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions