diff --git a/content/news/2023-11-16_bmmt-2024-date-set.md b/content/news/2023-11-16_bmmt-2024-date-set.md index 88247c8..94fc3a2 100644 --- a/content/news/2023-11-16_bmmt-2024-date-set.md +++ b/content/news/2023-11-16_bmmt-2024-date-set.md @@ -1,5 +1,5 @@ +++ -title = "BmMT 2024 will be on April 6, 2024 • BMT 2024 will be on November 2, 2024" +title = "BmMT 2024 will be held on April 6, 2024\nBMT 2024 will be held on November 2, 2024" +++ We are excited to announce that this year’s Berkeley mini Math Tournament (BmMT) diff --git a/templates/index.html b/templates/index.html index 90a592d..af421d9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,7 +10,9 @@ News

-

{{ title }}

+

+ {{ title | split(pat="\n") | join(sep=" • ") }} +

diff --git a/templates/macros.html b/templates/macros.html index 11dafff..88acb0c 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -24,3 +24,10 @@ {% macro index_math() %} F(z)=n=0fnznn!F(z) = \sum_{n=0}^\infty f_n \frac{z^n}{n!} {% endmacro index_math%} + +{% macro newline_break(str) %} +{% for line in str | split(pat="\n") %} +{{ line }} +{% if not loop.last %}
{% endif %} +{% endfor %} +{% endmacro newline_break %} diff --git a/templates/page.html b/templates/page.html index 91e8033..d911d1e 100644 --- a/templates/page.html +++ b/templates/page.html @@ -3,7 +3,9 @@ {% block content %}
-

{{ page.title }}

+

+ {{ macros::newline_break(str=page.title) }} +

{% if page.date %}

diff --git a/templates/section.html b/templates/section.html index e84b395..37e848f 100644 --- a/templates/section.html +++ b/templates/section.html @@ -7,7 +7,9 @@ {# =================== #}
-

{{ section.title }}

+

+ {{ macros::newline_break(str=section.title) }} +

{# ==================== #} @@ -45,7 +47,9 @@

{{ year }}

- {{ page.title }} + + {{ macros::newline_break(str=page.title) }} +

{% endfor %}