WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@s4b7r
Copy link

@s4b7r s4b7r commented Oct 2, 2021

I looked for a way to display the 'update' date of an edited post. Didn't take too long to implement it. If you like, you can pull this upstream.

Copy link

@skyn1x0 skyn1x0 left a comment

Choose a reason for hiding this comment

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

<p class="post-meta">
    {% if page.date-updated %}
    <time datetime="{{ page.date }}">Published {{ page.date | date: site.theme_config.date_format }}</time>
    <br><time datetime="{{ page.date-updated }}">Updated {{ page.date-updated | date: site.theme_config.date_format }}</time>
    {% else %}
    <time datetime="{{ page.date }}">{{ page.date | date: site.theme_config.date_format }}</time>
    {% endif %}
  </p>

I thought it looked a bit weird having text beside the updated date and no text beside the published date, so here's a change for that. Might just be my personal preference, but figured it might be useful to someone else.

biswaone pushed a commit to biswaone/no-style-please that referenced this pull request May 31, 2025
fix(css): Font size inconsistency in code snippets on iOS
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