Hello, in the blog section the month in which the post was made appears to be hardcoded before displaying the date/time as set in the config.
I already saw in Github that this was mentioned, but there was no solution for the problem.
Does anyone know how to solve this?
section form partials/blog_item.html.twig
<span class="posted-on">
<time class="entry-date published updated" datetime="{{ page.date|date(config.system.pages.dateformat.short) }}">{{ 'MONTHS_OF_THE_YEAR'|ta(page.date|date('n') - 1) }} {{ page.date|date(config.system.pages.dateformat.default) }}</time>
</span>
Github issue: https://github.com/getgrav/grav-theme-twentyfifteen/issues/4
November (text) before date. I want the text removed.
@SjoerdSmeets I believe the solution is mentioned in the issue itself on GitHub.
To rephrase the proposed solution:
Open file ‘/user/themes/twentyfifteen/templates/partials/blog_item.html.twig’ and remove the following on line 70:
{{ 'MONTHS_OF_THE_YEAR'|ta(page.date|date('n') - 1) }}
If the proposed solution didn’t work for you somehow, please let me know.
Please be advised to make the changes in an inherited theme. If you don’t, the changes will be lost when the theme gets updated by the authors. Which is not likely considering the commit rate, but a good practice anyway…
Apparently didn’t saw that the solution was in that ticket.
Thanks that worked for me!