Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MONTHS_OF_THE_YEAR constant name #16

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

xhs345
Copy link
Contributor

@xhs345 xhs345 commented Aug 12, 2019

Had to fix the constant name, otherwise, it won't be displayed correctly in newer versions. See example https://learn.getgrav.org/16/cookbook/twig-recipes

Had to fix the constant name, otherwise, it won't be displayed correctly in newer versions. See example https://learn.getgrav.org/16/cookbook/twig-recipes
@xhs345 xhs345 changed the title Fix constant name Fix MONTHS_OF_THE_YEAR constant name Aug 12, 2019
@darthcrawl
Copy link

In gateway/templates/partials/blog_item.html.twig look for the line:

{{ 'MONTHS_OF_THE_YEAR'|ta(page.date|date('n') - 1) }} {{ page.date|date('d, Y') }}

Change it to:

{{ page.date|date('M d, Y') }}

Issue fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants