Skip to content

Commit 3d47ed7

Browse files
committed
Fix section title for error identifier detail + introduce algoliaSectionTitle
1 parent a04ed7e commit 3d47ed7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

website/src/_layouts/_sidebar.njk

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<div class="sidebar w-64 md:block hidden flex-none pr-4 border-r border-gray-200 fixed bg-white overflow-y-auto top-0 bottom-0 mt-16 pt-6 pl-4 md:pl-0 z-10 md:z-auto" data-bind="css: { hidden: !sidebarOpen() }, event: { click: handleSidebarClick }">
88
<div class="flex items-center">
99
<span id="sectionTitle" class="group flex-grow items-center px-3 py-2 text-lg leading-5 font-bold text-gray-900">{{ sectionTitle }}</span>
10+
11+
<span id="algoliaSectionTitle" class="hidden">{% block algoliaSectionTitle %}{{ sectionTitle }}{% endblock %}</span>
12+
1013
<a href="#" class="md:hidden text-gray-400 hover:text-gray-500" data-bind="click: closeSidebar">
1114
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
1215
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />

website/src/user-guide/errorIdentifierDetail.njk

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ pageType: documentation
88
layout: null
99
eleventyComputed:
1010
title: "{{ errorIdentifier.identifier }}"
11-
sectionTitle: Error Identifiers
11+
sectionTitle: User Guide
1212
---
1313

1414
{% extends "../_layouts/_sidebar.njk" %}
1515

1616
{% block mainTitle %}{% endblock %}
1717
{% block editPageLink %}{% endblock %}
1818

19+
{% block algoliaSectionTitle %}Error Identifiers{% endblock %}
20+
1921
{% block scripts %}
2022
<script src="/tmp/js/error-identifier-detail.ts" type="module"></script>
2123
{% endblock %}

0 commit comments

Comments
 (0)