Skip to content

Conversation

@Digital-Grinnell
Copy link

Pull request

Proposed changes

I found that in the footer displaying "Last updated" showing only the year (%Y) was unhelpful. I changed the display format to "%Y-%b-%d" so it shows, for example, "2025-Feb-26" instead of just "2025". Since the display doesn't show hours or minutes there should be few, if any, timezone issues.

Types of changes

  • New feature (non-breaking change which adds functionality).
  • Enhancement (non-breaking change which enhances functionality)
  • Bug Fix (non-breaking change which fixes an issue).
  • Breaking change (fix or feature that would cause existing functionality to change).

Checklist

  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@evanwill
Copy link
Contributor

evanwill commented Feb 27, 2025

@Digital-Grinnell we are going to decline to merge this one. In the past we had more specific dates in the footer, but after discussion moved to just the year. It is most conventional for websites to display just year in the footer (often with a copyright notice). This helps users gauge general idea if the site is actively updated or how old it is. For most digital collections and exhibits a year is plenty of date for the user perspective. For developers a more specific date is useful--so that is provided in comments in the <head>.

I think it would be useful to publish snippets like this on the Discussions board or the CB Blog so others could learn from it if they are interested in similar customization.

@evanwill evanwill closed this Feb 27, 2025
@Digital-Grinnell
Copy link
Author

Thanks Evan, just now seeing this and I understand. In my other work I typically put the build date, including the time, ONLY on the About page. That way most visitors never see it, but my collaborators and I know where to look for it.

I like your suggestion about posting the snippet for others, just don't have time to do that right now. I'll try to get around to it soon.

If you think that putting a more complete date ONLY on the About page would be helpful, then here is the code I've adopted in my site...

    <div class="col-md-12 text-center pt-3 pb-1">
        {% assign stamp = site.time | date: '%Y-%b-%d' %}
        {% if page.url == "/about.html" %}
            {% assign stamp = site.time | date: '%B %-d, %Y @ %l:%M%P %Z' %}
        {% endif %}
        <p class="text-white">Last updated: {{ stamp }}</p>
    </div>

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