about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-16 18:23:03 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-03-16 18:23:03 +0100
commit91f4c0ec082582755637da9d4741001205e9a01a (patch)
treeb9a328dd6c6bdbfb2eb9179e697f3d0d9280dfab
parent084341e5b7d3b31ac7f2611118d7ecc03ef0d661 (diff)
downloadkronika-91f4c0ec082582755637da9d4741001205e9a01a.tar.gz
kronika-91f4c0ec082582755637da9d4741001205e9a01a.zip
Update netlify cms config
-rw-r--r--static/admin/config.yml24
-rw-r--r--wpisy/index.html.raw26
2 files changed, 42 insertions, 8 deletions
diff --git a/static/admin/config.yml b/static/admin/config.yml
index 7edd6cd..b472cc3 100644
--- a/static/admin/config.yml
+++ b/static/admin/config.yml
@@ -2,12 +2,12 @@ backend:
   name: git-gateway
 
 publish_mode: editorial_workflow
-display_url: https://puszcza.netlify.app
-site_url: https://puszcza.netlify.app
+site_url: https://nojs--api-puszcza.netlify.app
 logo_url: /19pdh.png
 locale: 'pl'
 
-media_folder: 'static/s'
+media_folder: 'wpisy/assets'
+public_folder: '/assets'
 
 collections:
   - name: posts
@@ -36,3 +36,21 @@ collections:
         name: body
         widget: markdown
         required: true
+  - name: "pages"
+    label: "Strony"
+    files:
+      - label: "Do pobrania"
+        name: "download"
+        file: "wpisy/do-pobrania.md"
+        fields:
+          - label: "Treść"
+            name: "body"
+            widget: "markdown"
+
+      - label: "Kontakt"
+        name: "contact"
+        files: "wpisy/kontakt.md"
+        fields:
+          - label: "Treść"
+            name: "body"
+            widget: "markdown"
diff --git a/wpisy/index.html.raw b/wpisy/index.html.raw
index caa2622..9cdba00 100644
--- a/wpisy/index.html.raw
+++ b/wpisy/index.html.raw
@@ -27,11 +27,27 @@
   font-size: 24px;
 }
 
+.about {
+  display: flex;
+  flex-direction: row;
+  padding: 4ex 2ex;
+}
+
+.about > div {
+  padding: 1ex;
+}
+
 @media (max-width: 420px) {
   .joinus {
     align-items: center;
   }
 }
+@media (max-width: 540px) {
+  .about {
+    flex-direction: column;
+  }
+
+}
 
 @media (prefers-color-scheme: dark) {
   section.joinus {
@@ -50,9 +66,9 @@
 
 <h1>19 PDH Puszcza</h1>
 
-<div class="content" style="padding: 4ex 0; display: flex">
-<div style="flex: 50%"><img src="assets/naszywka.png" height="240"></div>
-<div style="flex: 50%; text-align: left">
-O drużynie słów kilka, ale teraz nie mam weny więc jest te pare słów aby zapełnić lukę.
-</div>
+<div class="about content">
+  <div style="flex: 40%"><img src="assets/naszywka.png" height="240"></div>
+  <div style="flex: 60%; text-align: left">
+    O drużynie słów kilka, ale teraz nie mam weny więc jest te pare słów aby zapełnić lukę.
+  </div>
 </div>