mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
docs: Set <title> to article title.
Previously the title for all pages of the user and API documentation was just "Zulip", which does not only bad for UX but also for accessibility. We were already extracting the title from the Markdown for the og:title tag, so we just need to set the <title> tag. Since our documentation fetches pages with Ajax if you have JavaScript enabled, we also need to save the titles in the article cache. Part of #15948.
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
{% set entrypoint = "help" %}
|
||||
|
||||
{# Zulip User and API Documentation. #}
|
||||
{% block title %}
|
||||
<title>{{ OPEN_GRAPH_TITLE }}</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block portico_content %}
|
||||
<div class="app help terms-page inline-block{% if page_is_help_center %} help-center{% endif %}{% if page_is_api_center %} api-center{% endif %}">
|
||||
|
||||
Reference in New Issue
Block a user