Skip to content

feat(translations): add menuitems translations - #703

Open
asierrayk wants to merge 1 commit into
Pelican-Elegant:masterfrom
asierrayk:menu-items-names
Open

feat(translations): add menuitems translations#703
asierrayk wants to merge 1 commit into
Pelican-Elegant:masterfrom
asierrayk:menu-items-names

Conversation

@asierrayk

@asierrayk asierrayk commented Jun 28, 2021

Copy link
Copy Markdown

Prerequisites

Recommended Steps

  • My patch adds a new feature, therefore I have also added a help article about it
  • My patch changes Elegant behavior, therefore I have updated the help article to reflect this change
  • My commits are signed

Description

Now it's possible to define custom values for menuitems. Home is separated from the rest since you have the ability to add pages as menu item between them.

HOME_MENUITEM = 'Inicio'

MENUITEMS = (
    ('categories', 'Categorías', CATEGORIES_URL),
    ('tags', 'Etiquetas', TAGS_URL),
    ('archives', 'Archivos', ARCHIVES_URL),
)

first value in tuple is needed to enable active class of the menu item
image

Close #139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Ability to configure items displayed in menu bar

2 participants