Edit administration panel layout
This commit is contained in:
parent
9c50caa6d7
commit
155b10cc9d
18 changed files with 75 additions and 252 deletions
|
@ -6,21 +6,13 @@
|
|||
<style itemscope itemtype="https://schema.org/WebSite" itemref="schema_name schema_description schema_image"></style>
|
||||
|
||||
{# Title #}
|
||||
{% if page.isHomePage %}
|
||||
<title>{{ site.title }}</title>
|
||||
<meta id="schema_name" itemprop="name" content="{{ site.title }}">
|
||||
{% else %}
|
||||
<title>{{ site.title }} | {{ page.title }}</title>
|
||||
<meta id="schema_name" itemprop="name" content="{{ site.title }} | {{ page.title }}">
|
||||
{% endif %}
|
||||
<title>{{ site.title }}</title>
|
||||
<meta id="schema_name" itemprop="name" content="{{ site.title }}">
|
||||
|
||||
{# Description #}
|
||||
{% if page.meta_description is not empty %}
|
||||
<meta name="description" content="{{ page.meta_description }}">
|
||||
<meta id="schema_description" itemprop="description" content="{{ page.meta_description }}">
|
||||
{% elseif site.homePage.meta_description is not empty %}
|
||||
<meta name="description" content="{{ site.homePage.meta_description }}">
|
||||
<meta id="schema_description" itemprop="description" content="{{ site.homePage.meta_description }}">
|
||||
{% if site.meta_description is not empty %}
|
||||
<meta name="description" content="{{ site.meta_description }}">
|
||||
<meta id="schema_description" itemprop="description" content="{{ site.meta_description }}">
|
||||
{% endif %}
|
||||
|
||||
{# Canonical URL #}
|
||||
|
@ -33,53 +25,33 @@
|
|||
<meta name="date" content="{{ page.modified('Y-m-d') }}">
|
||||
|
||||
{# Image #}
|
||||
{% if page.meta_image is not empty %}
|
||||
<meta id="schema_image" itemprop="image" content="{{ page.meta_image.toImage.url }}">
|
||||
{% elseif site.homePage.meta_image is not empty %}
|
||||
<meta id="schema_image" itemprop="image" content="{{ site.homePage.meta_image.toImage.url }}">
|
||||
{% if site.meta_image is not empty %}
|
||||
<meta id="schema_image" itemprop="image" content="{{ site.meta_image.toImage.url }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.template != 'error' %}
|
||||
|
||||
{# Open Graph #}
|
||||
{% if page.isHomePage %}
|
||||
<meta property="og:title" content="{{ site.title }}">
|
||||
{% else %}
|
||||
<meta property="og:title" content="{{ site.title ~ ' | ' ~ page.title }}">
|
||||
<meta property="og:title" content="{{ site.title }}">
|
||||
{% if site.meta_description is not empty %}
|
||||
<meta property="og:description" content="{{ site.meta_description }}">
|
||||
{% endif %}
|
||||
{% if page.meta_description is not empty %}
|
||||
<meta property="og:description" content="{{ page.meta_description }}">
|
||||
{% elseif site.homePage.meta_description is not empty %}
|
||||
<meta property="og:description" content="{{ site.homePage.meta_description }}">
|
||||
{% endif %}
|
||||
{% if page.meta_image is not empty %}
|
||||
<meta property="og:image" content="{{ page.meta_image.toImage.clip(1200, 675).url }}">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="675">
|
||||
{% elseif site.homePage.meta_image is not empty %}
|
||||
<meta property="og:image" content="{{ site.homePage.meta_image.toImage.clip(1200, 675).url }}">
|
||||
{% if site.meta_image is not empty %}
|
||||
<meta property="og:image" content="{{ site.meta_image.toImage.clip(1200, 675).url }}">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="675">
|
||||
{% endif %}
|
||||
<meta property="og:url" content="{{ page.url }}">
|
||||
<meta property="og:type" content="{{ page.og_type }}">
|
||||
<meta property="og:type" content="{{ site.og_type }}">
|
||||
|
||||
{# Twitter Card #}
|
||||
<meta name="twitter:card" content="{{ page.twitter_card_type.value }}">
|
||||
{% if page.isHomePage %}
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
{% else %}
|
||||
<meta name="twitter:title" content="{{ site.title ~ ' | ' ~ page.title }}">
|
||||
<meta name="twitter:card" content="{{ site.twitter_card_type.value }}">
|
||||
<meta name="twitter:title" content="{{ site.title }}">
|
||||
{% if site.meta_description is not empty %}
|
||||
<meta name="twitter:description" content="{{ site.meta_description }}">
|
||||
{% endif %}
|
||||
{% if page.meta_description is not empty %}
|
||||
<meta name="twitter:description" content="{{ page.meta_description }}">
|
||||
{% elseif site.homePage.meta_description is not empty %}
|
||||
<meta name="twitter:description" content="{{ site.homePage.meta_description }}">
|
||||
{% endif %}
|
||||
{% if page.meta_image is not empty %}
|
||||
<meta name="twitter:image" content="{{ page.meta_image.toImage.clip(1200, 675).url }}">
|
||||
{% elseif site.homePage.meta_image is not empty %}
|
||||
<meta name="twitter:image" content="{{ site.homePage.meta_image.toImage.clip(1200, 675).url }}">
|
||||
{% if site.meta_image is not empty %}
|
||||
<meta name="twitter:image" content="{{ site.meta_image.toImage.clip(1200, 675).url }}">
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue