Skip to content

Add events page intro (meetup, asana form), new events, and sort order#504

Open
mtuteja-git wants to merge 1 commit intovalkey-io:mainfrom
mtuteja-git:more-events-and-updates
Open

Add events page intro (meetup, asana form), new events, and sort order#504
mtuteja-git wants to merge 1 commit intovalkey-io:mainfrom
mtuteja-git:more-events-and-updates

Conversation

@mtuteja-git
Copy link
Copy Markdown
Contributor

Description

Linked the form to add more events + linked the meetup charter. Also added more upcoming events like Percona Live, Laracon US, etc.

Issues Resolved

n/a

Check List

  • [ X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

Signed-off-by: Manvika Tuteja <manvikatuteja16@gmail.com>
@mtuteja-git
Copy link
Copy Markdown
Contributor Author

Screenshot 2026-04-19 at 9 27 16 PM

Comment thread templates/events.html
var dateStr = monthNames[dateObj.getMonth()] + ' ' + dateObj.getDate() + ', ' + dateObj.getFullYear();
var eventMonth = e.date.substring(0, 7);
var today = new Date().toISOString().substring(0, 10);
// var today = new Date().toISOString().substring(0, 10);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you can remove this if it's no longer needed.

Copy link
Copy Markdown
Member

@madolson madolson left a comment

Choose a reason for hiding this comment

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

Sorting improvement is good UX. A few minor things to clean up.

event_type = "third-party"
location = "San Francisco, CA, USA"
external_url = "https://builder.aws.com/content/3BM4ZJR7CsJiD7kytzRthwa3o9G/opensearch-project-and-valkey-bay-area-meetup-april-2026"
+++ No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing trailing newline. All existing event files end with a newline after +++. Same issue in all four new event files.

@@ -0,0 +1,9 @@
+++
title = "Bay Area OpenSearch + Valkey Meetup - April 2026"
date = 2026-04-20
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Existing events use date = 2026-04-09 01:01:01 (with a time component). These new files omit it. Either works for Zola, but should be consistent with the existing convention.

Comment thread templates/events.html

{% block main_content %}

<div class="events-intro" style="text-align: center; max-width: 800px; margin: 0 auto 2rem;">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Inline styles — is there a stylesheet where .events-intro could be defined instead? The rest of the page uses CSS classes.

Comment thread templates/events.html
var allEvents = events.slice().sort(function(a, b) { return b.date.localeCompare(a.date); });
var today = new Date().toISOString().substring(0, 10);
var currentMonth = today.substring(0, 7);
var thisMonth = events.filter(function(e) { return e.date.substring(0, 7) === currentMonth && e.date >= today; })
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: thisMonth is slightly misleading since it filters out past days this month. Maybe thisMonthUpcoming or similar.

Comment thread templates/events.html
var past = events.filter(function(e) { return e.date < today; })
.sort(function(a, b) { return b.date.localeCompare(a.date); });
var allEvents = thisMonth.concat(upcoming).concat(past);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Indentation is off — var allEvents uses 1 space indent while surrounding code uses 2 spaces. Same with the commented-out line below.

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