diff --git a/layouts/apollo.yml b/layouts/apollo.yml index ae44111f27..8118fe57fe 100644 --- a/layouts/apollo.yml +++ b/layouts/apollo.yml @@ -54,10 +54,11 @@ definitions: - &site_name >- {{ config.site_name }} - # Page title with site name - - &page_title_with_site_name >- + # Page title. No site name suffix: `og:site_name` already prints "Apollo + # Docs" on its own line directly above the title in an embed. + - &page_title >- {%- if not page.is_homepage -%} - {{ page.meta.get("title", page.title) }} - {{ config.site_name }} + {{ page.meta.get("title", page.title) }} {%- else -%} {{ config.site_name }} {%- endif -%} @@ -83,7 +84,8 @@ tags: # Open Graph og:type: website - og:title: *page_title_with_site_name + og:site_name: *site_name + og:title: *page_title og:description: *page_description og:image: "{{ image.url }}" og:image:type: "{{ image.type }}" @@ -93,7 +95,7 @@ tags: # Twitter twitter:card: summary - twitter:title: *page_title_with_site_name + twitter:title: *page_title twitter:description: *page_description twitter:image: "{{ image.url }}" diff --git a/mkdocs.yml b/mkdocs.yml index 032e6955d2..450a34051c 100755 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,6 +8,7 @@ extra_css: - stylesheets/osano.css - stylesheets/pmm.css site_name: Apollo Docs +site_description: Setup guides, troubleshooting, and firmware documentation for Apollo Automation sensors. #site_url: https://apolloautomation.github.io/ site_url: https://wiki.apolloautomation.com repo_url: https://github.com/ApolloAutomation/docs diff --git a/overrides/main.html b/overrides/main.html new file mode 100644 index 0000000000..95c9a6f1a6 --- /dev/null +++ b/overrides/main.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block extrahead %} + {{ super() }} + + {#- + Discord tints the vertical stripe on the left edge of a link embed with + this tag. Material does not emit one, because the palette here uses a + custom primary rather than a named color. It must be `name=` rather than + `property=`, so it cannot come from the social card layout, which emits + `property=` for everything. + -#} + +{% endblock %}