Skip to content

Commit

Permalink
Fix section title for error identifier detail + introduce algoliaSect…
Browse files Browse the repository at this point in the history
…ionTitle
  • Loading branch information
ondrejmirtes committed Jun 5, 2024
1 parent a04ed7e commit 3d47ed7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions website/src/_layouts/_sidebar.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<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 }">
<div class="flex items-center">
<span id="sectionTitle" class="group flex-grow items-center px-3 py-2 text-lg leading-5 font-bold text-gray-900">{{ sectionTitle }}</span>

<span id="algoliaSectionTitle" class="hidden">{% block algoliaSectionTitle %}{{ sectionTitle }}{% endblock %}</span>

<a href="#" class="md:hidden text-gray-400 hover:text-gray-500" data-bind="click: closeSidebar">
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
Expand Down
4 changes: 3 additions & 1 deletion website/src/user-guide/errorIdentifierDetail.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ pageType: documentation
layout: null
eleventyComputed:
title: "{{ errorIdentifier.identifier }}"
sectionTitle: Error Identifiers
sectionTitle: User Guide
---

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

{% block mainTitle %}{% endblock %}
{% block editPageLink %}{% endblock %}

{% block algoliaSectionTitle %}Error Identifiers{% endblock %}

{% block scripts %}
<script src="/tmp/js/error-identifier-detail.ts" type="module"></script>
{% endblock %}
Expand Down

0 comments on commit 3d47ed7

Please sign in to comment.