heartwood every commit a ring

Render the page title in changelog and documentation breadcrumbs

eb52218c by Isaac Bythewood · 2 days ago

Render the page title in changelog and documentation breadcrumbs

The home route passes the page title through `page.title`, but these two
templates referenced bare `{{ title }}`, so the breadcrumb's active item
and the h1 both rendered empty. The status app's home route happens to
pass `title` directly too, which masked the same template bug there.
modified templates/pages/changelog.html
@@ -15,7 +15,7 @@<nav aria-label="breadcrumb">  <ol class="breadcrumb mb-0">    <li class="breadcrumb-item"><a href="/">Home</a></li>    <li class="breadcrumb-item active" aria-current="page">{{ title }}</li>    <li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>  </ol></nav>{% endblock %}
@@ -26,7 +26,7 @@  <div class="row">    <div class="col-lg-8 offset-lg-2">      <div class="section-label mb-2">release log</div>      <h1 class="fw-bolder text-white" style="letter-spacing: -0.01em;">{{ title }}</h1>      <h1 class="fw-bolder text-white" style="letter-spacing: -0.01em;">{{ page.title }}</h1>      <p class="text-muted">Shipped changes, schema tweaks, and the occasional tease for something coming.</p>    </div>  </div>
modified templates/pages/documentation.html
@@ -15,7 +15,7 @@<nav aria-label="breadcrumb">  <ol class="breadcrumb mb-0">    <li class="breadcrumb-item"><a href="/">Home</a></li>    <li class="breadcrumb-item active" aria-current="page">{{ title }}</li>    <li class="breadcrumb-item active" aria-current="page">{{ page.title }}</li>  </ol></nav>{% endblock %}
@@ -26,7 +26,7 @@  <div class="row">    <div class="col-lg-8 offset-lg-2">      <div class="section-label mb-2">collector · recipes</div>      <h1 class="fw-bolder text-white" style="letter-spacing: -0.01em;">{{ title }}</h1>      <h1 class="fw-bolder text-white" style="letter-spacing: -0.01em;">{{ page.title }}</h1>      <p class="docs-lead">        All events are sent as JSON to a single <code>POST /collect/</code>        endpoint. The site tag pushes page_view, click, scroll, and page_leave