Compare commits
3 commits
efaf931449
...
6e27c1c53b
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e27c1c53b | |||
| b039131102 | |||
| ae85772faa |
15 changed files with 136 additions and 103 deletions
|
|
@ -2,7 +2,7 @@ title: Membre de l'équipe
|
||||||
accept: image/*
|
accept: image/*
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
name:
|
member_name:
|
||||||
label: Nom
|
label: Nom
|
||||||
type: text
|
type: text
|
||||||
required: true
|
required: true
|
||||||
|
|
|
||||||
|
|
@ -39,22 +39,7 @@ tabs:
|
||||||
size: medium
|
size: medium
|
||||||
template: member
|
template: member
|
||||||
image:
|
image:
|
||||||
ratio: 1/1
|
ratio: 2/3
|
||||||
cover: true
|
cover: true
|
||||||
|
text: "{{ file.member_name }}"
|
||||||
info: "{{ file.role }}"
|
info: "{{ file.role }}"
|
||||||
# SEO
|
|
||||||
seo:
|
|
||||||
label: SEO
|
|
||||||
icon: search
|
|
||||||
sections:
|
|
||||||
meta:
|
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
meta_title:
|
|
||||||
label: Meta Title
|
|
||||||
type: text
|
|
||||||
meta_description:
|
|
||||||
label: Meta Description
|
|
||||||
type: textarea
|
|
||||||
size: small
|
|
||||||
maxlength: 160
|
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,12 @@ tabs:
|
||||||
fields:
|
fields:
|
||||||
intro:
|
intro:
|
||||||
label: Introduction
|
label: Introduction
|
||||||
type: textarea
|
type: writer
|
||||||
size: small
|
nodes:
|
||||||
|
- heading
|
||||||
|
headings:
|
||||||
|
- 1
|
||||||
|
buttons: false
|
||||||
help: "Résumé ou accroche de l'article"
|
help: "Résumé ou accroche de l'article"
|
||||||
|
|
||||||
# Contenu
|
# Contenu
|
||||||
|
|
@ -73,8 +77,11 @@ tabs:
|
||||||
cover:
|
cover:
|
||||||
label: Image de couverture
|
label: Image de couverture
|
||||||
type: files
|
type: files
|
||||||
|
layout: cards
|
||||||
max: 1
|
max: 1
|
||||||
accept: image/*
|
accept: image/*
|
||||||
|
image:
|
||||||
|
ratio: 16/9
|
||||||
uploads:
|
uploads:
|
||||||
template: image
|
template: image
|
||||||
|
|
||||||
|
|
@ -88,16 +95,3 @@ tabs:
|
||||||
query: site.find('blog').children.listed
|
query: site.find('blog').children.listed
|
||||||
max: 3
|
max: 3
|
||||||
help: "Articles similaires à afficher en bas de page"
|
help: "Articles similaires à afficher en bas de page"
|
||||||
|
|
||||||
# SEO
|
|
||||||
seo:
|
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
meta_title:
|
|
||||||
label: Meta Title
|
|
||||||
type: text
|
|
||||||
meta_description:
|
|
||||||
label: Meta Description
|
|
||||||
type: textarea
|
|
||||||
size: small
|
|
||||||
maxlength: 160
|
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,4 @@ tabs:
|
||||||
template: article
|
template: article
|
||||||
info: "{{ page.date.toDate('d/m/Y') }}"
|
info: "{{ page.date.toDate('d/m/Y') }}"
|
||||||
create: article
|
create: article
|
||||||
sortBy: date desc
|
sortBy: date desc
|
||||||
|
|
||||||
# SEO
|
|
||||||
seo:
|
|
||||||
label: SEO
|
|
||||||
icon: search
|
|
||||||
|
|
@ -8,8 +8,14 @@ columns:
|
||||||
type: fields
|
type: fields
|
||||||
fields:
|
fields:
|
||||||
text:
|
text:
|
||||||
type: textarea
|
type: writer
|
||||||
size: huge
|
marks:
|
||||||
|
- bold
|
||||||
|
- italic
|
||||||
|
- underline
|
||||||
|
- strike
|
||||||
|
- green
|
||||||
|
- pixel
|
||||||
sidebar:
|
sidebar:
|
||||||
width: 1/3
|
width: 1/3
|
||||||
sections:
|
sections:
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,15 @@ tabs:
|
||||||
fields:
|
fields:
|
||||||
title:
|
title:
|
||||||
label: Titre
|
label: Titre
|
||||||
type: text
|
type: writer
|
||||||
|
nodes: false
|
||||||
|
marks:
|
||||||
|
- bold
|
||||||
|
- italic
|
||||||
|
- underline
|
||||||
|
- strike
|
||||||
|
- green
|
||||||
|
- pixel
|
||||||
required: true
|
required: true
|
||||||
help: "Ex: PLAY THE REAL."
|
help: "Ex: PLAY THE REAL."
|
||||||
textes:
|
textes:
|
||||||
|
|
@ -23,19 +31,3 @@ tabs:
|
||||||
text_bloc:
|
text_bloc:
|
||||||
label: bloc de texte
|
label: bloc de texte
|
||||||
type: text
|
type: text
|
||||||
# SEO
|
|
||||||
seo:
|
|
||||||
label: SEO
|
|
||||||
icon: search
|
|
||||||
sections:
|
|
||||||
meta:
|
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
meta_title:
|
|
||||||
label: Meta Title
|
|
||||||
type: text
|
|
||||||
meta_description:
|
|
||||||
label: Meta Description
|
|
||||||
type: textarea
|
|
||||||
size: small
|
|
||||||
maxlength: 160
|
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,14 @@ columns:
|
||||||
fields:
|
fields:
|
||||||
description:
|
description:
|
||||||
label: Description
|
label: Description
|
||||||
type: textarea
|
type: writer
|
||||||
size: medium
|
marks:
|
||||||
|
- bold
|
||||||
|
- italic
|
||||||
|
- underline
|
||||||
|
- strike
|
||||||
|
- green
|
||||||
|
- pixel
|
||||||
|
|
||||||
# Sidebar
|
# Sidebar
|
||||||
- width: 1/3
|
- width: 1/3
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,9 @@ tabs:
|
||||||
required: true
|
required: true
|
||||||
subtitle:
|
subtitle:
|
||||||
label: Sous-titre
|
label: Sous-titre
|
||||||
type: textarea
|
type: writer
|
||||||
size: small
|
marks: false
|
||||||
|
nodes: false
|
||||||
cta_text:
|
cta_text:
|
||||||
width: 1/2
|
width: 1/2
|
||||||
label: Texte du bouton CTA
|
label: Texte du bouton CTA
|
||||||
|
|
@ -46,19 +47,3 @@ tabs:
|
||||||
cover: true
|
cover: true
|
||||||
uploads:
|
uploads:
|
||||||
template: video
|
template: video
|
||||||
# SEO
|
|
||||||
seo:
|
|
||||||
label: SEO
|
|
||||||
icon: search
|
|
||||||
sections:
|
|
||||||
meta:
|
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
meta_title:
|
|
||||||
label: Meta Title
|
|
||||||
type: text
|
|
||||||
meta_description:
|
|
||||||
label: Meta Description
|
|
||||||
type: textarea
|
|
||||||
size: small
|
|
||||||
maxlength: 160
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,3 @@ tabs:
|
||||||
template: game
|
template: game
|
||||||
info: "{{ page.status_label }}"
|
info: "{{ page.status_label }}"
|
||||||
create: game
|
create: game
|
||||||
|
|
||||||
# SEO
|
|
||||||
seo:
|
|
||||||
label: SEO
|
|
||||||
icon: search
|
|
||||||
|
|
|
||||||
|
|
@ -17,20 +17,3 @@ tabs:
|
||||||
template: project
|
template: project
|
||||||
info: "{{ page.catchphrase }}"
|
info: "{{ page.catchphrase }}"
|
||||||
create: project
|
create: project
|
||||||
|
|
||||||
# SEO
|
|
||||||
seo:
|
|
||||||
label: SEO
|
|
||||||
icon: search
|
|
||||||
sections:
|
|
||||||
meta:
|
|
||||||
type: fields
|
|
||||||
fields:
|
|
||||||
meta_title:
|
|
||||||
label: Meta Title
|
|
||||||
type: text
|
|
||||||
meta_description:
|
|
||||||
label: Meta Description
|
|
||||||
type: textarea
|
|
||||||
size: small
|
|
||||||
maxlength: 160
|
|
||||||
|
|
|
||||||
|
|
@ -23,12 +23,26 @@ columns:
|
||||||
fields:
|
fields:
|
||||||
catchphrase:
|
catchphrase:
|
||||||
label: Phrase d'accroche
|
label: Phrase d'accroche
|
||||||
type: text
|
type: writer
|
||||||
|
nodes: false
|
||||||
|
marks:
|
||||||
|
- bold
|
||||||
|
- italic
|
||||||
|
- underline
|
||||||
|
- strike
|
||||||
|
- green
|
||||||
|
- pixel
|
||||||
help: "Ex: Transformez votre lecture en aventure."
|
help: "Ex: Transformez votre lecture en aventure."
|
||||||
description:
|
description:
|
||||||
label: Description
|
label: Description
|
||||||
type: textarea
|
type: writer
|
||||||
size: medium
|
marks:
|
||||||
|
- bold
|
||||||
|
- italic
|
||||||
|
- underline
|
||||||
|
- strike
|
||||||
|
- green
|
||||||
|
- pixel
|
||||||
help: Description complète du projet
|
help: Description complète du projet
|
||||||
|
|
||||||
images:
|
images:
|
||||||
|
|
@ -54,6 +68,7 @@ columns:
|
||||||
type: files
|
type: files
|
||||||
layout: cards
|
layout: cards
|
||||||
max: 1
|
max: 1
|
||||||
|
size: small
|
||||||
accept: image/*
|
accept: image/*
|
||||||
image:
|
image:
|
||||||
ratio: 1/1
|
ratio: 1/1
|
||||||
|
|
|
||||||
24
site/plugins/custom-marks/assets/front.css
Normal file
24
site/plugins/custom-marks/assets/front.css
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* Styles pour les marks personnalisés - Front-end
|
||||||
|
* À inclure dans ton CSS principal ou à importer
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Mark Green - Couleur verte */
|
||||||
|
.green {
|
||||||
|
color: #04fea0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mark Pixel - Typo serif (remplacer par ta typo pixel) */
|
||||||
|
.pixel {
|
||||||
|
font-family: Georgia, "Times New Roman", serif;
|
||||||
|
/* Remplace par ta font pixel, ex:
|
||||||
|
font-family: "Press Start 2P", cursive;
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Combinaison des deux marks */
|
||||||
|
.green.pixel,
|
||||||
|
.pixel.green {
|
||||||
|
color: #04fea0;
|
||||||
|
font-family: Georgia, "Times New Roman", serif;
|
||||||
|
}
|
||||||
18
site/plugins/custom-marks/index.css
Normal file
18
site/plugins/custom-marks/index.css
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* Styles pour les marks personnalisés dans le panel Kirby */
|
||||||
|
|
||||||
|
/* Mark Green - Couleur verte */
|
||||||
|
.k-writer span.green {
|
||||||
|
color: #04fea0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Mark Pixel - Typo serif (placeholder pour future typo pixel) */
|
||||||
|
.k-writer span.pixel {
|
||||||
|
font-family: Georgia, "Times New Roman", serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Combinaison des deux marks */
|
||||||
|
.k-writer span.green.pixel,
|
||||||
|
.k-writer span.pixel.green {
|
||||||
|
color: #04fea0;
|
||||||
|
font-family: Georgia, "Times New Roman", serif;
|
||||||
|
}
|
||||||
32
site/plugins/custom-marks/index.js
Normal file
32
site/plugins/custom-marks/index.js
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
panel.plugin("custom/marks", {
|
||||||
|
writerMarks: {
|
||||||
|
green: {
|
||||||
|
button: {
|
||||||
|
icon: "brush",
|
||||||
|
label: "Vert"
|
||||||
|
},
|
||||||
|
commands() {
|
||||||
|
return () => this.toggle();
|
||||||
|
},
|
||||||
|
name: "green",
|
||||||
|
schema: {
|
||||||
|
parseDOM: [{ tag: "span.green" }],
|
||||||
|
toDOM: () => ["span", { class: "green" }, 0]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
pixel: {
|
||||||
|
button: {
|
||||||
|
icon: "grid-full",
|
||||||
|
label: "Pixel"
|
||||||
|
},
|
||||||
|
commands() {
|
||||||
|
return () => this.toggle();
|
||||||
|
},
|
||||||
|
name: "pixel",
|
||||||
|
schema: {
|
||||||
|
parseDOM: [{ tag: "span.pixel" }],
|
||||||
|
toDOM: () => ["span", { class: "pixel" }, 0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
3
site/plugins/custom-marks/index.php
Normal file
3
site/plugins/custom-marks/index.php
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
Kirby::plugin('custom/marks', []);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue