From 5be665825e392997cf53ce138d592ace9cee148b Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 29 Mar 2020 15:09:58 +0200 Subject: [PATCH] Added open graph and twitter metadata --- material/overrides/main.html | 21 +++++++++++++++++++-- src/overrides/main.html | 29 ++++++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/material/overrides/main.html b/material/overrides/main.html index 9a7929d9f..d4c0e9e9d 100644 --- a/material/overrides/main.html +++ b/material/overrides/main.html @@ -2,6 +2,23 @@ This file was automatically generated - do not edit -#} {% extends "base.html" %} -{% block announce %} - Material for MkDocs 5.0.0rc3 +{% block extrahead %} + {% set title = config.site_name %} + {% if page and page.title and not page.is_homepage %} + {% set title = config.site_name ~ " - " ~ page.title | striptags %} + {% endif %} + {% set image = 'assets/images/material.png' | url %} + + + + + + + + + + +{% endblock %} +{% block announce %} + Material for MkDocs 5.0.0rc4 {% endblock %} diff --git a/src/overrides/main.html b/src/overrides/main.html index a34edbe8e..c3b456209 100644 --- a/src/overrides/main.html +++ b/src/overrides/main.html @@ -22,7 +22,34 @@ {% extends "base.html" %} + +{% block extrahead %} + + + {% set title = config.site_name %} + {% if page and page.title and not page.is_homepage %} + {% set title = config.site_name ~ " - " ~ page.title | striptags %} + {% endif %} + + + {% set image = 'assets/images/material.png' | url %} + + + + + + + + + + + + + + +{% endblock %} + {% block announce %} - Material for MkDocs 5.0.0rc3 + Material for MkDocs 5.0.0rc4 {% endblock %}