Skip to content

Commit

Permalink
Add meta tags
Browse files Browse the repository at this point in the history
	new file:   docs/assets/Percona_docs.png
	modified:   mkdocs.yml
	modified:   overrides/main.html
	modified:   overrides/partials/header.html
  • Loading branch information
alina-derkach-oaza committed Apr 17, 2024
1 parent 6edb062 commit 298bd70
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
Binary file added docs/assets/Percona_docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 13 additions & 12 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,19 @@ markdown_extensions:
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true

plugins:
meta-descriptions:
export_csv: false
quiet: false
enable_checks: false
min_length: 50
max_length: 160

extra:
# consent:
# title: Cookie Consent
# description: >-
# We use cookies to recognize your preferences, as well as measure the effectiveness of our documentation to your needs, and whether you can find what you're searching for. With this consent, you're helping us to make our documentation better for you. Thank you. Read more about <a class="reference external" href="https://www.percona.com/20180524-cookie-policy" target="_blank">Percona Cookie Policy</a>.
# cookies:
# analytics: Google Analytics
# github: Github
# actions:
# - manage
# - accept
analytics:
provider: google
property: G-XXXXXXXXXX
property: G-J4J70BNH0G
feedback:
title: Was this page helpful?
ratings:
Expand All @@ -79,7 +78,9 @@ extra:
name: This page could be improved
data: 0
note: >-
Thank you for your feedback! Help us improve by following this <a href="#" target="_blank" rel="noopener">feedback form</a>.
Thank you for your feedback! Help us improve by following this <a href="https://docs.google.com/forms/d/1bkWACehjqlwA0AKf-qTJcXvYbOSYgze8iTPXjntqmNo/edit" target="_blank" rel="noopener">feedback form</a>.
copyright: >-
<a href="https://www.percona.com/about">Percona LLC</a> and its affiliates &copy; 2024 — <a href="#" onclick="Osano.cm.showDrawer('osano-cm-dom-info-dialog-open')">Cookie Preferences</a>
nav:
Expand Down
14 changes: 14 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,17 @@
</script>
<script src="https://cmp.osano.com/Azqe5vTyLOSbN3OuT/49ad85b5-0418-4794-ab81-7599dddd534c/osano.js"></script>
{% endblock %}

{% block extrahead %}
{{ super() }}
{% set title = config.site_name %}
{% if page and page.meta and page.meta.title %}
{% set title = title ~ " - " ~ page.meta.title %}
{% elif page and page.title and not page.is_homepage %}
{% set title = title ~ " - " ~ page.title %}
{% endif %}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:url" content="https://homepage-preview.onrender.com" />
<meta property="og:image" content="https://homepage-preview.onrender.com/assets/Percona_docs.png" />
{% endblock %}
2 changes: 1 addition & 1 deletion overrides/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<!-- Super Nav -->
<div class="superNav">
<div class="md-header__inner md-grid">
<a href="https://pmcf-percona.github.io/docs-home/" title="Percona Documentation home page">
<a href="https://homepage-preview.onrender.com" title="Percona Documentation home page">
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<mask id="a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
<path d="M0 0h24v24H0z"/>
Expand Down

0 comments on commit 298bd70

Please sign in to comment.