Remove k3-image-clip plugin
This commit is contained in:
parent
ba25a9a198
commit
84de819756
6 changed files with 10 additions and 57 deletions
|
@ -1,3 +1,3 @@
|
|||
title: Image
|
||||
title: PDF
|
||||
accept:
|
||||
mime: application/pdf
|
||||
|
|
|
@ -9,4 +9,3 @@ size: small
|
|||
limit: 15
|
||||
image:
|
||||
ratio: 1/1
|
||||
back: white
|
||||
|
|
|
@ -19,18 +19,15 @@ fields:
|
|||
label:
|
||||
en: Meta image
|
||||
fr: Méta image
|
||||
type: image-clip
|
||||
type: files
|
||||
query: site.images
|
||||
uploads: false
|
||||
multiple: false
|
||||
required: true
|
||||
layout: cards
|
||||
image:
|
||||
cover: true
|
||||
back: white
|
||||
multiple: false
|
||||
required: true
|
||||
clip:
|
||||
minwidth: 1200
|
||||
minheight: 675
|
||||
ratio: fixed
|
||||
ratio: 1200/675
|
||||
help:
|
||||
en: "Image displayed by social networks (format: JPEG or PNG)."
|
||||
fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG)."
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
{# Image #}
|
||||
{% if site.meta_image is not empty %}
|
||||
<meta id="schema_image" itemprop="image" content="{{ site.meta_image.toImage.url }}">
|
||||
<meta id="schema_image" itemprop="image" content="{{ site.meta_image.toFile.url }}">
|
||||
{% endif %}
|
||||
|
||||
{% if page.template != 'error' %}
|
||||
|
@ -37,7 +37,7 @@
|
|||
<meta property="og:description" content="{{ site.meta_description }}">
|
||||
{% endif %}
|
||||
{% if site.meta_image is not empty %}
|
||||
<meta property="og:image" content="{{ site.meta_image.toImage.clip(1200, 675).url }}">
|
||||
<meta property="og:image" content="{{ site.meta_image.toFile.crop(1200, 675).url }}">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="675">
|
||||
{% endif %}
|
||||
|
@ -51,7 +51,7 @@
|
|||
<meta name="twitter:description" content="{{ site.meta_description }}">
|
||||
{% endif %}
|
||||
{% if site.meta_image is not empty %}
|
||||
<meta name="twitter:image" content="{{ site.meta_image.toImage.clip(1200, 675).url }}">
|
||||
<meta name="twitter:image" content="{{ site.meta_image.toFile.crop(1200, 675).url }}">
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue