Skip to content

Add backbone for announcements page - #1

Merged
bedroesb merged 13 commits into
mainfrom
add-backbone
Sep 28, 2026
Merged

bedroesb merged 13 commits into
mainfrom
add-backbone

Conversation

@bedroesb

Copy link
Copy Markdown
Contributor

This is still a demo and thus contains lots of placeholders.

README will follow later.

@bedroesb
bedroesb requested a review from kdp-cloud September 22, 2026 08:35
Comment thread script/new.rb Outdated
Comment thread assets/favicon.svg
Comment thread _layouts/entry.html Outdated
Comment thread _plugins/local_times.rb Outdated
Comment thread _plugins/local_times.rb Outdated
Comment thread _plugins/local_times.rb

# Jekyll has already put `timezone:` from _config.yml into ENV["TZ"], so
# Time.local picks the right offset for that date, DST included.
def localize(value)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happens when people remove timezone or make a typo? As it is now, the else branch of your case statement will just return the invalid value. Wouldn't it make more sense to return a default value like 'UTC' in the 'else' branch?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The idea is that the CI validate.rb fails and the user has to fix the date in his PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't like to make assumptions and put defaults tbh :/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But I did make the validate script stricter

Comment thread 404.html Outdated
@bedroesb
bedroesb requested a review from kdp-cloud September 28, 2026 07:36
@bedroesb

Copy link
Copy Markdown
Contributor Author

Due to time, I will merge. If you want to guard the timezone better, you can do it in a PR :)

@bedroesb
bedroesb merged commit b864d2a into main Sep 28, 2026
1 check passed
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