Edit blueprints, fake content and hooks
This commit is contained in:
parent
8235816462
commit
b43554a15b
14 changed files with 91 additions and 113 deletions
|
@ -26,6 +26,10 @@ Twitter-image:
|
|||
|
||||
----
|
||||
|
||||
Twitter-card-type: summary_large_image
|
||||
|
||||
----
|
||||
|
||||
Robots-noindex: default
|
||||
|
||||
----
|
||||
|
|
|
@ -26,6 +26,10 @@ Twitter-image:
|
|||
|
||||
----
|
||||
|
||||
Twitter-card-type: summary_large_image
|
||||
|
||||
----
|
||||
|
||||
Robots-noindex: default
|
||||
|
||||
----
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
Title: Galerie 3
|
||||
Title: Galerie-3
|
||||
|
||||
----
|
||||
|
||||
Text:
|
||||
Text:
|
||||
|
||||
----
|
||||
|
||||
Meta-description:
|
||||
Meta-description:
|
||||
|
||||
----
|
||||
|
||||
Meta-image:
|
||||
Meta-image:
|
||||
|
||||
----
|
||||
|
||||
Og-image:
|
||||
Og-image:
|
||||
|
||||
----
|
||||
|
||||
|
@ -22,7 +22,11 @@ Og-type: article
|
|||
|
||||
----
|
||||
|
||||
Twitter-image:
|
||||
Twitter-image:
|
||||
|
||||
----
|
||||
|
||||
Twitter-card-type: summary_large_image
|
||||
|
||||
----
|
||||
|
||||
|
@ -42,4 +46,4 @@ Robots-noimageindex: default
|
|||
|
||||
----
|
||||
|
||||
Robots-nosnippet: default
|
||||
Robots-nosnippet: default
|
|
@ -1,45 +0,0 @@
|
|||
Title: Galerie 4
|
||||
|
||||
----
|
||||
|
||||
Text:
|
||||
|
||||
----
|
||||
|
||||
Meta-description:
|
||||
|
||||
----
|
||||
|
||||
Meta-image:
|
||||
|
||||
----
|
||||
|
||||
Og-image:
|
||||
|
||||
----
|
||||
|
||||
Og-type: article
|
||||
|
||||
----
|
||||
|
||||
Twitter-image:
|
||||
|
||||
----
|
||||
|
||||
Robots-noindex: default
|
||||
|
||||
----
|
||||
|
||||
Robots-nofollow: default
|
||||
|
||||
----
|
||||
|
||||
Robots-noarchive: default
|
||||
|
||||
----
|
||||
|
||||
Robots-noimageindex: default
|
||||
|
||||
----
|
||||
|
||||
Robots-nosnippet: default
|
|
@ -1,45 +0,0 @@
|
|||
Title: Galerie 5
|
||||
|
||||
----
|
||||
|
||||
Text:
|
||||
|
||||
----
|
||||
|
||||
Meta-description:
|
||||
|
||||
----
|
||||
|
||||
Meta-image:
|
||||
|
||||
----
|
||||
|
||||
Og-image:
|
||||
|
||||
----
|
||||
|
||||
Og-type: article
|
||||
|
||||
----
|
||||
|
||||
Twitter-image:
|
||||
|
||||
----
|
||||
|
||||
Robots-noindex: default
|
||||
|
||||
----
|
||||
|
||||
Robots-nofollow: default
|
||||
|
||||
----
|
||||
|
||||
Robots-noarchive: default
|
||||
|
||||
----
|
||||
|
||||
Robots-noimageindex: default
|
||||
|
||||
----
|
||||
|
||||
Robots-nosnippet: default
|
|
@ -2,15 +2,15 @@ Title: Accueil
|
|||
|
||||
----
|
||||
|
||||
Meta-description:
|
||||
Meta-description:
|
||||
|
||||
----
|
||||
|
||||
Meta-image:
|
||||
Meta-image:
|
||||
|
||||
----
|
||||
|
||||
Og-image:
|
||||
Og-image:
|
||||
|
||||
----
|
||||
|
||||
|
@ -18,7 +18,11 @@ Og-type: website
|
|||
|
||||
----
|
||||
|
||||
Twitter-image:
|
||||
Twitter-image:
|
||||
|
||||
----
|
||||
|
||||
Twitter-card-type: summary_large_image
|
||||
|
||||
----
|
||||
|
||||
|
@ -38,4 +42,4 @@ Robots-noimageindex: default
|
|||
|
||||
----
|
||||
|
||||
Robots-nosnippet: default
|
||||
Robots-nosnippet: default
|
||||
|
|
|
@ -22,11 +22,15 @@ Og-image:
|
|||
|
||||
----
|
||||
|
||||
Og-type: website
|
||||
Og-type: profile
|
||||
|
||||
----
|
||||
|
||||
Twitter-image:
|
||||
Twitter-image:
|
||||
|
||||
----
|
||||
|
||||
Twitter-card-type: summary_large_image
|
||||
|
||||
----
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ Title: Xiao Wang
|
|||
|
||||
----
|
||||
|
||||
Favicon:
|
||||
Favicon:
|
||||
|
||||
----
|
||||
|
||||
|
@ -14,7 +14,19 @@ Instagram: https://www.instagram.com/exemple/
|
|||
|
||||
----
|
||||
|
||||
Meta-description:
|
||||
Meta-description:
|
||||
|
||||
----
|
||||
|
||||
Meta-author: Xiao Wang
|
||||
|
||||
----
|
||||
|
||||
Og-image:
|
||||
|
||||
----
|
||||
|
||||
Twitter-image:
|
||||
|
||||
----
|
||||
|
||||
|
@ -34,4 +46,4 @@ Robots-noimageindex: disabled
|
|||
|
||||
----
|
||||
|
||||
Robots-nosnippet: disabled
|
||||
Robots-nosnippet: disabled
|
||||
|
|
|
@ -23,3 +23,31 @@ fields:
|
|||
en: "Image displayed by social networks (format: JPEG or PNG)."
|
||||
fr: "Image affichée par les réseaux sociaux (format : JPEG ou PNG)."
|
||||
width: 1/4
|
||||
# Hidden fields
|
||||
og_image:
|
||||
type: hidden
|
||||
default:
|
||||
og_type:
|
||||
type: hidden
|
||||
default: article
|
||||
twitter_image:
|
||||
type: hidden
|
||||
default:
|
||||
twitter_card_type:
|
||||
type: hidden
|
||||
default: summary_large_image
|
||||
robots_noindex:
|
||||
type: hidden
|
||||
default: default
|
||||
robots_nofollow:
|
||||
type: hidden
|
||||
default: default
|
||||
robots_noarchive:
|
||||
type: hidden
|
||||
default: default
|
||||
robots_noimageindex:
|
||||
type: hidden
|
||||
default: default
|
||||
robots_nosnippet:
|
||||
type: hidden
|
||||
default: default
|
|
@ -3,4 +3,4 @@ label:
|
|||
fr: Référencement
|
||||
icon: search
|
||||
sections:
|
||||
seo_basic_meta: sections/generic_seo_basic_meta
|
||||
seo_basic_meta: sections/generic_seo_metadata
|
||||
|
|
|
@ -3,4 +3,4 @@ label:
|
|||
fr: Référencement
|
||||
icon: search
|
||||
sections:
|
||||
seo_basic_meta: sections/generic_seo_basic_meta
|
||||
seo_basic_meta: sections/generic_seo_metadata
|
||||
|
|
|
@ -3,4 +3,4 @@ label:
|
|||
fr: Référencement
|
||||
icon: search
|
||||
sections:
|
||||
seo_basic_meta: sections/generic_seo_basic_meta
|
||||
seo_basic_meta: sections/generic_seo_metadata
|
||||
|
|
|
@ -10,7 +10,8 @@ return [
|
|||
'diesdasdigital.meta-knight' => [
|
||||
'siteTitleAfterPageTitle' => false,
|
||||
'siteTitleAsHomePageTitle' => true,
|
||||
'separator' => ' | '
|
||||
'separator' => ' | ',
|
||||
'metaAuthor' => false
|
||||
],
|
||||
// Sitemapper plugin options
|
||||
'kirbyzone.sitemapper' => [
|
||||
|
@ -35,10 +36,12 @@ return [
|
|||
'twitter_image' => $newPage->meta_image()->value()
|
||||
]);
|
||||
}
|
||||
// Populate site meta_description field with home page meta_description field value after home page update
|
||||
// Populate site meta_description, og_image and twitter_image fields with home page meta_description, og_image and twitter_image fields value after home page update
|
||||
if ($newPage->template()->name() === 'home' && $newPage->meta_description()) {
|
||||
$this->site()->update([
|
||||
'meta_description' => $newPage->meta_description()->value()
|
||||
'meta_description' => $newPage->meta_description()->value(),
|
||||
'og_image' => $newPage->og_image()->value(),
|
||||
'twitter_image' => $newPage->twitter_image()->value()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
<head>
|
||||
<?php snippet('meta_information'); ?>
|
||||
<?php snippet('robots'); ?>
|
||||
</head>
|
||||
|
||||
<h1><?= $page->title() ?></h1>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue