From 34f5218cc8e41d9cf7c5c886263861493bba462e Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Mon, 5 Sep 2022 17:24:21 +0200 Subject: [PATCH] templates: Replace default HTML title and meta-description elements. Removes the default title element of "Zulip" from `base.html` and the default meta-description sentence from `meta_tags.html`. Also removes default open graph metadata. For portico templates that would would fail tests, set both `PAGE_TITLE` and `PAGE_DESCRIPTION` variables with appropriate content. Co-authored-by: Alya Abbott --- templates/corporate/apps.html | 5 +++++ templates/corporate/attribution.html | 8 ++------ .../corporate/case-studies/asciidoctor-case-study.html | 7 ++++--- .../corporate/case-studies/idrift-case-study.html | 7 ++++--- templates/corporate/case-studies/lean-case-study.html | 5 ++--- .../case-studies/recurse-center-case-study.html | 8 +++++--- templates/corporate/case-studies/rust-case-study.html | 7 ++++--- templates/corporate/case-studies/tum-case-study.html | 7 ++++--- templates/corporate/case-studies/ucsd-case-study.html | 8 +++++--- templates/corporate/communities.html | 5 +++++ templates/corporate/development-community.html | 9 ++++----- templates/corporate/features.html | 6 ++++-- templates/corporate/for/business.html | 8 +++++--- templates/corporate/for/communities.html | 8 +++++--- templates/corporate/for/education.html | 8 +++----- templates/corporate/for/events.html | 9 ++++----- templates/corporate/for/open-source.html | 9 ++++----- templates/corporate/for/research.html | 9 ++++----- templates/corporate/for/use-cases.html | 6 +++--- templates/corporate/hello.html | 6 ++++++ templates/corporate/history.html | 10 ++++++---- templates/corporate/jobs.html | 7 ++++--- templates/corporate/plans.html | 9 ++++----- templates/corporate/security.html | 8 +++++--- templates/corporate/self-hosting.html | 9 ++++----- templates/corporate/team.html | 8 +++++--- templates/corporate/why-zulip.html | 10 +++++----- templates/zerver/base.html | 2 -- templates/zerver/meta_tags.html | 7 ++----- zerver/tests/test_docs.py | 1 + 30 files changed, 118 insertions(+), 98 deletions(-) diff --git a/templates/corporate/apps.html b/templates/corporate/apps.html index 6bebb7ca82..e6af6d75f4 100644 --- a/templates/corporate/apps.html +++ b/templates/corporate/apps.html @@ -1,6 +1,11 @@ {% extends "zerver/portico.html" %} {% set entrypoint = "landing-page" %} +{% set PAGE_TITLE = "Download the Zulip app for your device" %} + +{% set PAGE_DESCRIPTION = "Zulip has apps for every platform. Download the Zulip + app for macOS, Windows, Linux, Android, iOS or Terminal." %} + {% block customhead %}