aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2023-02-21 18:41:52 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2023-02-21 18:42:16 +0100
commit1e9c940fd80aa6d0b7af3665b6db87a02755ab3a (patch)
treef1b5a8adba592280824dbe20f063c2b6cdbbc95d
parent3b3e231bb850e57dc99d386e4e45b4c4b7bf3a97 (diff)
downloadguide.deuxfleurs.fr-1e9c940fd80aa6d0b7af3665b6db87a02755ab3a.tar.gz
guide.deuxfleurs.fr-1e9c940fd80aa6d0b7af3665b6db87a02755ab3a.zip
add drone yml
-rw-r--r--.drone.yml21
-rw-r--r--static/admin/config.yml40
2 files changed, 51 insertions, 10 deletions
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..37bb36b
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,21 @@
+---
+kind: pipeline
+name: default
+
+steps:
+ - name: build
+ image: ghcr.io/getzola/zola:v0.16.0
+ commands:
+ - build
+
+ - name: upload
+ image: plugins/s3
+ settings:
+ bucket: guide
+ access_key:
+ from_secret: aws_access_key_id
+ secret_key:
+ from_secret: aws_secret_acess_key
+ source: public/**/*
+ target: /
+ strip_prefix: public/
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 422684f..5f4cc4b 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -11,16 +11,36 @@ display_url: http://guide.web.vimaire.machine.dufour.io
locale: 'en'
collections:
+ - name: 'accueil'
+ label: 'Accueil'
+ editor:
+ preview: false
+ files:
+ - name: accueil2
+ label: Accueil2
+ file: 'content/_index.md'
+ fields:
+ - label: Title
+ name: title
+ widget: string
+ - label: Sort by
+ name: sort_by
+ widget: string
+ - label: Body
+ name: body
+ widget: markdown
+
+
- name: 'prise_en_main'
label: 'Prise en main'
folder: 'content/prise_en_main'
- summary: '{{title}} ({{dirname}})'
+ #summary: '{{title}} ({{dirname}})'
editor:
preview: false
create: true
- nested:
- depth: 3
- summary: '{{title}}'
+ #nested:
+ # depth: 3
+ # summary: '{{title}}'
fields:
- label: Title
name: title
@@ -31,7 +51,7 @@ collections:
- label: Body
name: body
widget: markdown
- meta: { path: { widget: string, label: 'Path', index_file: '_index' } }
+ #meta: { path: { widget: string, label: 'Path', index_file: '_index' } }
- name: 'formations'
label: 'Se former'
@@ -39,10 +59,10 @@ collections:
editor:
preview: false
create: true
- summary: '{{title}} ({{dirname}})'
- nested:
- depth: 3
- summary: '{{title}}'
+ #summary: '{{title}} ({{dirname}})'
+ #nested:
+ # depth: 3
+ # summary: '{{title}}'
fields:
- label: Title
name: title
@@ -53,4 +73,4 @@ collections:
- label: Body
name: body
widget: markdown
- meta: { path: { widget: string, label: 'Path', index_file: '_index' } }
+ #meta: { path: { widget: string, label: 'Path', index_file: '_index' } }