docs: Add proper backlink to the homepage from /help and /api.

Currently, the "Home" link at the top takes one to the doc root,
i.e., /help or /api. This is a little misleading since "Home"
seems to be more synonymous with the Zulip homepage.

This commit adds a proper backlink to the top logo that takes you to
the homepage and renames "Home" to be more specific. The text after
"|" will now take you to the doc root instead (/help or /api). Note
that this allows us to link the /help and /api pages from the
homepage while ensuring that backlinks allow the visitor to get back
to the homepage.
This commit is contained in:
Eeshan Garg
2021-06-29 13:40:16 -02:30
committed by Tim Abbott
parent e9189d63ab
commit 5a94bfcb88
5 changed files with 21 additions and 9 deletions

View File

@@ -10,7 +10,7 @@
<div class="app help terms-page inline-block{% if page_is_help_center %} help-center{% endif %}{% if page_is_api_center %} api-center{% endif %}">
<div class="sidebar">
<div class="content">
<h1><a href="{{ doc_root }}" class="no-underline">Home</a></h1>
<h1><a href="https://zulip.com" class="no-underline">Zulip homepage</a></h1>
{{ render_markdown_path(sidebar_index, api_uri_context) }}
<h1 class="home-link"><a href="/" class="no-underline">Back to Zulip</a></h1>
</div>