Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Notepad Date Format

Started by Muut Archive 11 years ago · 3 replies · 247 views
11 years ago

While this question doesn't apply to just Grav, I'll ask it here: Is there a way updated version of the Notepad theme could support more than one date format? Specifically, I'd like to use the YYYY-MM-DD format, which requires putting the month and year above the big red digits representing the day. I should have the coding figured out for my purposes, but this could be a useful update for the theme's users in general. Thank you!

11 years ago

user/themes/notepad/templates/partials/article.html.twig

11 years ago

Thank you. I fixed it for my purposes. I'll try to drop a line on GitHub if I get a chance. Maybe they can add a note to the documentation (if they haven't done so already), advising users to modify user/themes/notepad/templates/partials/article.html.twig in order to change the date format. It turned out to be very simple. (Nonprogrammer here.)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4053 9 years ago
Archive · by Muut Archive, 9 years ago
1 2931 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago