docs.datacontroller.io/theme/main.html
2021-07-04 15:33:21 +03:00

40 lines
1.2 KiB
HTML

{% extends "base.html" %}
{% block extrahead %}
<meta name="author" content="Allan Bowe">
{% 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 | striptags %}
{% endif %}
<meta property="og:type" content="website" />
{% if page and page.meta and page.meta.og_title %}
{% set og_title = page.meta.og_title %}
{% elif page %}
{% set og_title = 'Data Controller Documentation' %}
{% endif %}
<meta property="og:title" content="{{og_title}}">
<meta property="og:url" content="{{ page.canonical_url }}" />
{% if page and page.meta and page.meta.og_image %}
{% set og_image = page.meta.og_image %}
{% elif page %}
{% set og_image = 'https://www.rawsas.com/wp-content/uploads/2018/07/dc_social.png' %}
{% endif %}
<meta property='og:image' content="{{og_image}}"/>
<meta property="og:image:type" content="image/png" />
{% if page and page.meta and page.meta.description %}
<meta property="og:description" content="{{ page.meta.description }}" />
{% elif config.site_description %}
<meta property="og:description" content="{{ config.site_description }}" />
{% endif %}
{% endblock %}