From a69a03f684835f81ecc699e0cbb73b0bd3b02f3c Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 06:01:43 +0000 Subject: [PATCH 1/2] Make the m in BmMT render as small-caps - Revert alert headers back to uppercase - Add small-caps styling to BmMT in nav links and event cards - Update nav_link/mobile_nav_link macros to support safe HTML labels - Add bmmt shortcode for use in markdown content Co-Authored-By: Oliver Ni --- templates/base.html | 8 ++++---- templates/index.html | 8 ++++---- templates/macros.html | 6 +++--- templates/shortcodes/alert.html | 2 +- templates/shortcodes/bmmt.html | 1 + 5 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 templates/shortcodes/bmmt.html diff --git a/templates/base.html b/templates/base.html index c6a96bc..1b82e91 100644 --- a/templates/base.html +++ b/templates/base.html @@ -85,8 +85,8 @@ {{ macros::mobile_nav_link(path="@/blog/_index.md", label="Blog") }} {{ macros::mobile_nav_link(path="@/about.md", label="About") }} {{ macros::mobile_nav_link(path="@/resources/index.md", label="Resources") }} - {{ macros::mobile_nav_link(path="@/events/bmmt-2026.md", label="BmMT 2026") }} - {{ macros::mobile_nav_link(path="@/events/bmmt-2026-online.md", label="BmMT 2026 Online") }} + {{ macros::mobile_nav_link(path="@/events/bmmt-2026.md", label='BmMT 2026') }} + {{ macros::mobile_nav_link(path="@/events/bmmt-2026-online.md", label='BmMT 2026 Online') }} @@ -106,8 +106,8 @@ {{ macros::nav_link(path="@/blog/_index.md", label="Blog") }} {{ macros::nav_link(path="@/about.md", label="About") }} {{ macros::nav_link(path="@/resources/index.md", label="Resources") }} - {{ macros::nav_link(path="@/events/bmmt-2026.md", label="BmMT 2026") }} - {{ macros::nav_link(path="@/events/bmmt-2026-online.md", label="BmMT 2026 Online") }} + {{ macros::nav_link(path="@/events/bmmt-2026.md", label='BmMT 2026') }} + {{ macros::nav_link(path="@/events/bmmt-2026-online.md", label='BmMT 2026 Online') }} {% endblock %} diff --git a/templates/index.html b/templates/index.html index a10807f..4dec3de 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,7 @@
-

+

{{ label }}

@@ -26,7 +26,7 @@

- {{ name }} + {{ name | safe }}

{{ date }}

@@ -117,7 +117,7 @@

Recent & Upcoming Events

{{ self::event( class="col-span-6 bg-gradient-to-br shadow-lg from-fuchsia-700 to-fuchsia-900 text-white", - name="Berkeley mini Math Tournament 2026", + name='Berkeley mini Math Tournament 2026', date="April 12, 2026", href="/events/bmmt-2026/", description="Our annual “mini” in-person tournament for middle school and advanced elementary school students showcases the beauty and fun of mathematics through exciting formats like the Puzzle Round and Relay Round, preparing them for future mathematical endeavors." @@ -125,7 +125,7 @@

Recent & Upcoming Events

{{ self::event( class="col-span-4 bg-gradient-to-br shadow-lg from-orange-700 to-orange-900 text-white", - name="BmMT 2026 Online", + name='BmMT 2026 Online', date="June 6, 2026", href="/events/bmmt-2026-online/", description="The online, synchronous version of our “mini“ math tournament for middle school and advanced elementary school students unable to travel to California!" diff --git a/templates/macros.html b/templates/macros.html index 8a308f8..1dcd41b 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -45,10 +45,10 @@

{{ year }}

{% endmacro nav_link %} @@ -58,7 +58,7 @@

{{ year }}

{% set active = current_url | default(value='') == href %} - {{ label }} + {{ label | safe }} {% endmacro mobile_nav_link %} diff --git a/templates/shortcodes/alert.html b/templates/shortcodes/alert.html index 0bd054d..f393be4 100644 --- a/templates/shortcodes/alert.html +++ b/templates/shortcodes/alert.html @@ -10,7 +10,7 @@ {% endif %}
-

+

{{ title }}

diff --git a/templates/shortcodes/bmmt.html b/templates/shortcodes/bmmt.html new file mode 100644 index 0000000..b1a057e --- /dev/null +++ b/templates/shortcodes/bmmt.html @@ -0,0 +1 @@ +BmMT \ No newline at end of file From 06a61fc6ef289fcc61e267529f224c6847681f34 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 07:02:13 +0000 Subject: [PATCH 2/2] Scope small-caps to only BmMT in uppercase alert headers - Revert nav link, event card, and macro changes - Remove standalone bmmt shortcode - In alert shortcode, replace 'BmMT' in title with a span that overrides text-transform:none and applies font-variant:small-caps so the 'm' renders as a small capital within the uppercase header Co-Authored-By: Oliver Ni --- templates/base.html | 8 ++++---- templates/index.html | 6 +++--- templates/macros.html | 6 +++--- templates/shortcodes/alert.html | 2 +- templates/shortcodes/bmmt.html | 1 - 5 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 templates/shortcodes/bmmt.html diff --git a/templates/base.html b/templates/base.html index 1b82e91..c6a96bc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -85,8 +85,8 @@ {{ macros::mobile_nav_link(path="@/blog/_index.md", label="Blog") }} {{ macros::mobile_nav_link(path="@/about.md", label="About") }} {{ macros::mobile_nav_link(path="@/resources/index.md", label="Resources") }} - {{ macros::mobile_nav_link(path="@/events/bmmt-2026.md", label='BmMT 2026') }} - {{ macros::mobile_nav_link(path="@/events/bmmt-2026-online.md", label='BmMT 2026 Online') }} + {{ macros::mobile_nav_link(path="@/events/bmmt-2026.md", label="BmMT 2026") }} + {{ macros::mobile_nav_link(path="@/events/bmmt-2026-online.md", label="BmMT 2026 Online") }}
@@ -106,8 +106,8 @@ {{ macros::nav_link(path="@/blog/_index.md", label="Blog") }} {{ macros::nav_link(path="@/about.md", label="About") }} {{ macros::nav_link(path="@/resources/index.md", label="Resources") }} - {{ macros::nav_link(path="@/events/bmmt-2026.md", label='BmMT 2026') }} - {{ macros::nav_link(path="@/events/bmmt-2026-online.md", label='BmMT 2026 Online') }} + {{ macros::nav_link(path="@/events/bmmt-2026.md", label="BmMT 2026") }} + {{ macros::nav_link(path="@/events/bmmt-2026-online.md", label="BmMT 2026 Online") }} {% endblock %} diff --git a/templates/index.html b/templates/index.html index 4dec3de..6145cee 100644 --- a/templates/index.html +++ b/templates/index.html @@ -26,7 +26,7 @@

- {{ name | safe }} + {{ name }}

{{ date }}

@@ -117,7 +117,7 @@

Recent & Upcoming Events

{{ self::event( class="col-span-6 bg-gradient-to-br shadow-lg from-fuchsia-700 to-fuchsia-900 text-white", - name='Berkeley mini Math Tournament 2026', + name="Berkeley mini Math Tournament 2026", date="April 12, 2026", href="/events/bmmt-2026/", description="Our annual “mini” in-person tournament for middle school and advanced elementary school students showcases the beauty and fun of mathematics through exciting formats like the Puzzle Round and Relay Round, preparing them for future mathematical endeavors." @@ -125,7 +125,7 @@

Recent & Upcoming Events

{{ self::event( class="col-span-4 bg-gradient-to-br shadow-lg from-orange-700 to-orange-900 text-white", - name='BmMT 2026 Online', + name="BmMT 2026 Online", date="June 6, 2026", href="/events/bmmt-2026-online/", description="The online, synchronous version of our “mini“ math tournament for middle school and advanced elementary school students unable to travel to California!" diff --git a/templates/macros.html b/templates/macros.html index 1dcd41b..8a308f8 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -45,10 +45,10 @@

{{ year }}

{% endmacro nav_link %} @@ -58,7 +58,7 @@

{{ year }}

{% set active = current_url | default(value='') == href %} - {{ label | safe }} + {{ label }} {% endmacro mobile_nav_link %} diff --git a/templates/shortcodes/alert.html b/templates/shortcodes/alert.html index f393be4..867216f 100644 --- a/templates/shortcodes/alert.html +++ b/templates/shortcodes/alert.html @@ -12,7 +12,7 @@

- {{ title }} + {{ title | replace(from="BmMT", to='BmMT') | safe }}

{{ body | markdown | safe }} diff --git a/templates/shortcodes/bmmt.html b/templates/shortcodes/bmmt.html deleted file mode 100644 index b1a057e..0000000 --- a/templates/shortcodes/bmmt.html +++ /dev/null @@ -1 +0,0 @@ -BmMT \ No newline at end of file