From 6693ce412159f4886adceb761d034c0df019ea98 Mon Sep 17 00:00:00 2001
From: prayashkrsaha <63157885+prayashkrsaha@users.noreply.github.com>
Date: Mon, 12 Aug 2024 00:16:49 +0530
Subject: [PATCH 1/3] Create index.html
---
static/admin/index.html | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 static/admin/index.html
diff --git a/static/admin/index.html b/static/admin/index.html
new file mode 100644
index 0000000..cc8acbe
--- /dev/null
+++ b/static/admin/index.html
@@ -0,0 +1,22 @@
+
+
+
+
+ Content Manager
+
+
+
+
+
+
+
From fd7a21aad2d50e87da7a7e99706c2031ccf1016d Mon Sep 17 00:00:00 2001
From: prayashkrsaha <63157885+prayashkrsaha@users.noreply.github.com>
Date: Mon, 12 Aug 2024 00:18:02 +0530
Subject: [PATCH 2/3] Create config.yaml
---
static/admin/config.yaml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 static/admin/config.yaml
diff --git a/static/admin/config.yaml b/static/admin/config.yaml
new file mode 100644
index 0000000..320b9ab
--- /dev/null
+++ b/static/admin/config.yaml
@@ -0,0 +1,17 @@
+backend:
+ name: git-gateway
+ branch: master # or main if you're using a different default branch
+
+media_folder: "static/images/uploads" # Media files will be stored here
+public_folder: "/images/uploads"
+
+collections:
+ - name: "blog"
+ label: "Blog"
+ folder: "content/blog"
+ create: true
+ slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
+ fields:
+ - { label: "Title", name: "title", widget: "string" }
+ - { label: "Date", name: "date", widget: "datetime" }
+ - { label: "Body", name: "body", widget: "markdown" }
From a425035ea1c64dc59368c1f5f63bcc4f195757ef Mon Sep 17 00:00:00 2001
From: prayashkrsaha <63157885+prayashkrsaha@users.noreply.github.com>
Date: Mon, 12 Aug 2024 00:18:41 +0530
Subject: [PATCH 3/3] Update netlify.toml
---
netlify.toml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/netlify.toml b/netlify.toml
index 2a5b2a8..6ca55b2 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -23,4 +23,9 @@
# If it should show more verbose logs (optional, default = true)
debug = true
# Relative path to source directory in case you use Hugo's "--s" option
- srcdir = "exampleSite"
\ No newline at end of file
+ srcdir = "exampleSite"
+
+[[redirects]]
+ from = "/admin/*"
+ to = "/admin/index.html"
+ status = 200