diff --git a/assets/css/src/html.css b/assets/css/src/html.css
index 847671c..5f46e5d 100644
--- a/assets/css/src/html.css
+++ b/assets/css/src/html.css
@@ -49,10 +49,3 @@ html {
border-radius: 0px;
border: none;
}
-
-a:not(.no-line) {
- text-decoration: dotted;
- text-decoration-color: #fff;
- text-decoration-line: underline;
- text-underline-offset: 0.2rem;
-}
diff --git a/assets/css/src/texts.css b/assets/css/src/texts.css
index 65d339e..f471329 100644
--- a/assets/css/src/texts.css
+++ b/assets/css/src/texts.css
@@ -47,6 +47,14 @@ button {
align-items: center;
}
+a:not(.no-line) {
+ text-decoration: dotted;
+ text-decoration-color: #fff;
+ text-decoration-line: underline;
+ text-underline-offset: 0.2rem;
+ text-decoration-thickness: 0.5px;
+}
+
article p {
margin-bottom: var(--unit--vertical);
}
diff --git a/assets/js/script.js b/assets/js/script.js
index 2feb279..5059283 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -1,10 +1,13 @@
+const remFactor = 16;
+const verticalUnit = 1.3 * remFactor;
+
function openTab(data, tab) {
data.activeTab === tab ? (data.activeTab = "") : (data.activeTab = tab);
}
function scrollToElem(selector) {
setTimeout(() => {
- const yOffset = -185;
+ const yOffset = -9 * verticalUnit;
const elem = document.querySelector(selector);
const top = elem.getBoundingClientRect().top;
window.scrollTo({
diff --git a/content/1_1988/1_l-inhumain-de-jean-francois-lyotard/article.txt b/content/1_1988/1_l-inhumain-de-jean-francois-lyotard/article.txt
deleted file mode 100644
index e64b831..0000000
--- a/content/1_1988/1_l-inhumain-de-jean-francois-lyotard/article.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-Title: L'inhumain de Jean-François Lyotard
-
-----
-
-Body:
-
-----
-
-Published: 2024-01-25
-
-----
-
-Category: texte
-
-----
-
-Author: - user://dI1JqUzV
-
-----
-
-Uuid: 1NS0sykH1trVN1ly
\ No newline at end of file
diff --git a/content/1_1988/year.txt b/content/1_1988/year.txt
deleted file mode 100644
index b77e0c2..0000000
--- a/content/1_1988/year.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-Title: 1988
-
-----
-
-Uuid: RCYpCxu3DTH9HvPu
\ No newline at end of file
diff --git a/content/articles/1_1988/year.txt b/content/articles/1_1988/year.txt
new file mode 100644
index 0000000..26e94c6
--- /dev/null
+++ b/content/articles/1_1988/year.txt
@@ -0,0 +1,5 @@
+Title: 1988
+
+----
+
+Uuid: QSTPXlaDnnN5uITb
\ No newline at end of file
diff --git a/content/articles/articles.txt b/content/articles/articles.txt
new file mode 100644
index 0000000..c9bea6b
--- /dev/null
+++ b/content/articles/articles.txt
@@ -0,0 +1,9 @@
+Title: Articles
+
+----
+
+Categories: objet, texte, image, film, scène
+
+----
+
+Uuid: IBp23Db7518Sg0V1
\ No newline at end of file
diff --git a/site/blueprints/pages/articles.yml b/site/blueprints/pages/articles.yml
new file mode 100644
index 0000000..9bd5358
--- /dev/null
+++ b/site/blueprints/pages/articles.yml
@@ -0,0 +1,13 @@
+title: Articles
+
+columns:
+ - width: 1/2
+ fields:
+ categories:
+ type: tags
+ - width: 1/2
+ sections:
+ yearsSection:
+ label: Années
+ type: pages
+ template: year
diff --git a/site/blueprints/pages/year.yml b/site/blueprints/pages/year.yml
index 4a89cbe..04de684 100644
--- a/site/blueprints/pages/year.yml
+++ b/site/blueprints/pages/year.yml
@@ -3,7 +3,13 @@ image:
icon: calendar
back: black
-sections:
- articles:
- type: pages
- template: article
+columns:
+ - width: 1/3
+ sections:
+ articles:
+ type: pages
+ template: article
+ - width: 2/3
+ fields:
+ edito:
+ type: textarea
diff --git a/site/blueprints/site.yml b/site/blueprints/site.yml
index 62871a7..a4eb933 100644
--- a/site/blueprints/site.yml
+++ b/site/blueprints/site.yml
@@ -3,16 +3,15 @@ title: Site
tabs:
contentTab:
label: Contenu
- sections:
- fieldsSection:
- label: Contenu
- type: fields
+ columns:
+ - width: 1/3
+ sections:
+ informativePages:
+ label: Pages d'informations
+ type: pages
+ template: static
+ - width: 2/3
fields:
- categories:
- type: tags
edito:
+ label: Éditorial
type: writer
- categoriesSection:
- label: Années
- type: pages
- template: year
diff --git a/site/config/config.php b/site/config/config.php
index e0ff3d9..a9fa6c9 100644
--- a/site/config/config.php
+++ b/site/config/config.php
@@ -1,5 +1,28 @@
true
+ 'debug' => true,
+ 'panel' => [
+ 'menu' => [
+ 'site' => [
+ 'label' => 'Accueil',
+ 'current' => function ($current) {
+ $path = Kirby::instance()->request()->path()->toString();
+ return Str::contains($path, 'site');
+ }
+ ],
+ 'articles' => [
+ 'icon' => 'folder',
+ 'label' => 'Articles',
+ 'link' => 'pages/articles',
+ 'current' => function ($current) {
+ $path = Kirby::instance()->request()->path()->toString();
+ return Str::contains($path, 'pages/articles');
+ }
+ ],
+ '-',
+ 'users',
+ 'system'
+ ]
+ ]
];
\ No newline at end of file
diff --git a/site/templates/articles.php b/site/templates/articles.php
new file mode 100644
index 0000000..e69de29