diff --git a/src/assets/public/admin/config.yml b/src/assets/public/admin/config.yml
index bfbf16e7..bba64237 100644
--- a/src/assets/public/admin/config.yml
+++ b/src/assets/public/admin/config.yml
@@ -1,7 +1,7 @@
backend:
name: github
repo: aloxe/reunionweb # Path to your GitHub repository
- branch: test
+ branch: ecrire
base_url: https://my.reunionweb.org # Path to ext auth provider
media_folder: "media/uploads"
@@ -32,3 +32,19 @@ collections:
- {label: "Publish Date", name: "date", widget: "datetime", time_format: false, date_format: "YYYY-MM", format: "YYYY-MM"}
- {label: "categorie", name: "categorie", widget: "array"}
- {label: "Body", name: "body", widget: "markdown"}
+ - label: "Settings"
+ name: "settings"
+ editor:
+ preview: false
+ files:
+ - label: "Liens"
+ name: "liens"
+ file: "src/data/liens.yaml"
+ fields:
+ - { label: Id, name: id, widget: number }
+ - { label: title, name: title, widget: string }
+ - { label: url, name: url, widget: string }
+ - { label: parent, name: parent, widget: string }
+ - { label: importance, name: importance, widget: number }
+ - { label: description, name: description, widget: string }
+ - { label: article, name: article, widget: array }
diff --git a/src/layouts/macros/title.njk b/src/layouts/macros/title.njk
index 0e89220b..e9c5e7c1 100644
--- a/src/layouts/macros/title.njk
+++ b/src/layouts/macros/title.njk
@@ -17,7 +17,7 @@
{{post.data.short or post.data.title}}
{% endif %}
{% if post.data.date and url === post.data.date.split("-").join('') %} {# articles #}
- {# .split("-").join('') | date("yyyy-MM") %} #}
+ {# .split("-").join('') | date("YYYY-MM") %} #}
{{ post.data.title }}
{% endif %}
{% endfor %}
diff --git a/src/layouts/sitemap.njk b/src/layouts/sitemap.njk
index 09daa6c3..3137dec4 100644
--- a/src/layouts/sitemap.njk
+++ b/src/layouts/sitemap.njk
@@ -5,7 +5,7 @@
{%- for item in collections.article %}
{{ item.url | absoluteUrl(meta.url) }}
- {{ item.date | date("yyyy-MM-dd")}}
+ {{ item.date | date("YYYY-MM-dd")}}
{{ item.data.sitemapChangefreq | default("monthly") }}
{{ item.data.sitemapPriority | default(0.8) }}
@@ -14,7 +14,7 @@
{%- if item.url.split("/")[1] === "" %}
{{ item.url | absoluteUrl(meta.url) }}
- {{ item.date | date("yyyy-MM-dd")}}
+ {{ item.date | date("YYYY-MM-dd")}}
{{ item.data.sitemapChangefreq | default("weekly") }}
{{ item.data.sitemapPriority | default(0.8) }}
@@ -22,7 +22,7 @@
{%- if item.url.split("/")[1] === "decouverte" %}
{{ item.url | absoluteUrl(meta.url) }}
- {{ item.date | date("yyyy-MM-dd")}}
+ {{ item.date | date("YYYY-MM-dd")}}
{{ item.data.sitemapChangefreq | default("yearly") }}
{{ item.data.sitemapPriority | default(0.7) }}
@@ -30,7 +30,7 @@
{%- if item.url.split("/")[1] === "liens" %}
{{ item.url | absoluteUrl(meta.url) }}
- {{ item.date | date("yyyy-MM-dd")}}
+ {{ item.date | date("YYYY-MM-dd")}}
{{ item.data.sitemapChangefreq | default("monthly") }}
{{ item.data.sitemapPriority | default(0.5) }}
@@ -41,7 +41,7 @@
{%- set snipeturl = "/"+categoryUrl(item.slug) | trim %}
{{ snipeturl | absoluteUrl(meta.url) }}
- {{ page.date | date("yyyy-MM-dd")}}
+ {{ page.date | date("YYYY-MM-dd")}}
monthly
0.3