Open Laborratte5 opened 1 week ago
Name | Link |
---|---|
Latest commit | 7a4fcdd296d909f738abe6827dd14c156ca14b8d |
Latest deploy log | https://app.netlify.com/sites/hugo-blog-awesome/deploys/66dc31b3408ba70008c0f830 |
Deploy Preview | https://deploy-preview-234--hugo-blog-awesome.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@Laborratte5 thanks for the improvement.
I don't like the idea of having 2 date formatting options in the config. It can be confusing.
Does it make sense to remove the dateFormat
config option (which I suppose isn't used anywhere)?
The dateFormat
is used to format the date in the post list (or rather postCard.html).
So I would change my PR to use this option instead and remove the postDateFormat
option.
The
dateFormat
is used to format the date in the post list (or rather postCard.html). So I would change my PR to use this option instead and remove thepostDateFormat
option.
Sounds good 👍
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
Add extra option to change the date format displayed at the beginning of the single.html
What problem does this PR solve?
The date format at the beginning of post did not follow the
dateFormat
config option.Is this PR adding a new feature?
I added an extra option
postDateFormat
to set the date format at the beginning of a post. I added this option because I like the idea of being able to display the date more verbose at the start of the post. (Moreover this makes it possible to add this in a backwards compatible manner, by not changing the current behavior if thepostDateFormat
option is not defined)Is this PR related to any issue or discussion?
See #177
PR Checklist