Edit snippet comments
This commit is contained in:
parent
e30484f323
commit
4ce2c3e214
2 changed files with 11 additions and 11 deletions
|
@ -1,16 +1,16 @@
|
|||
<!-- Basic metadata -->
|
||||
{# Basic metadata #}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<html lang="fr">
|
||||
|
||||
<!-- Schema -->
|
||||
{# Schema #}
|
||||
<style itemscope itemtype="https://schema.org/WebSite" itemref="schema_name schema_description schema_image"></style>
|
||||
|
||||
<!-- Title -->
|
||||
{# Title #}
|
||||
<title>{{ site.title }} | {{ page.title }}</title>
|
||||
<meta id="schema_name" itemprop="name" content="{{ site.title }} | {{ page.title }}">
|
||||
|
||||
<!-- Description -->
|
||||
{# 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 }}">
|
||||
|
@ -19,16 +19,16 @@
|
|||
<meta id="schema_description" itemprop="description" content="{{ site.homePage.meta_description }}">
|
||||
{% endif %}
|
||||
|
||||
<!-- Canonical URL -->
|
||||
{# Canonical URL #}
|
||||
<link rel="canonical" href="{{ page.url }}">
|
||||
|
||||
<!-- Author -->
|
||||
{# Author #}
|
||||
<meta name="author" content="{{ site.title }}">
|
||||
|
||||
<!-- Date -->
|
||||
{# Date #}
|
||||
<meta name="date" content="{{ page.modified('Y-m-d') }}">
|
||||
|
||||
<!-- Image -->
|
||||
{# 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 %}
|
||||
|
@ -37,7 +37,7 @@
|
|||
|
||||
{% if page.template != 'error' %}
|
||||
|
||||
<!-- Open Graph -->
|
||||
{# Open Graph #}
|
||||
<meta property="og:title" content="{{ site.title ~ ' | ' ~ page.title }}">
|
||||
{% if page.meta_description is not empty %}
|
||||
<meta property="og:description" content="{{ page.meta_description }}">
|
||||
|
@ -56,7 +56,7 @@
|
|||
<meta property="og:url" content="{{ page.url }}">
|
||||
<meta property="og:type" content="{{ page.og_type }}">
|
||||
|
||||
<!-- Twitter Card -->
|
||||
{# Twitter Card #}
|
||||
<meta name="twitter:card" content="{{ page.twitter_card_type.value }}">
|
||||
<meta name="twitter:title" content="{{ site.title ~ ' | ' ~ page.title }}">
|
||||
{% if page.meta_description is not empty %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue