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

Add default date format to pagination #390

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

ashawley
Copy link
Collaborator

@ashawley ashawley commented Feb 7, 2019

This is similar to #389. If people don't have this configured in their _config.yml, then things will break. This was also pulled from #334, since it shouldn't be a breaking change.

{% else %}
{{ post.date | date: "%b %-d, %Y" }}
{% endif %}
</p>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unlike #389, we have to use if-else. There's no way to use the default feature of Liquid.

@ashawley ashawley merged commit 0f30943 into johno:master Feb 12, 2019
@ashawley ashawley deleted the default-date-format branch February 12, 2019 03:01
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.

1 participant