Skip to content

Commit

Permalink
add meta tags
Browse files Browse the repository at this point in the history
	modified:   overrides/main.html
	modified:   overrides/partials/header.html
  • Loading branch information
alina-derkach-oaza committed Apr 17, 2024
1 parent c9111fd commit 8fe7fe6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,16 @@
</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 8fe7fe6

Please sign in to comment.