Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvjeantet <valere.jeantet@gmail.com>2020-09-11 10:05:05 +0300
committervjeantet <valere.jeantet@gmail.com>2020-09-11 10:05:05 +0300
commit850417fb1688315ffde89841aedc0d93c7bdfc5e (patch)
tree0cc5ec1806dfd290d807459794523f3edd212f73 /exampleSite
parent2be32f844845b7d197bdd3e417ea93ede0b65543 (diff)
refactor netlify config
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config-template.toml12
-rw-r--r--exampleSite/config.toml10
-rw-r--r--exampleSite/content/_layout/netlifycms/config.md13
3 files changed, 11 insertions, 24 deletions
diff --git a/exampleSite/config-template.toml b/exampleSite/config-template.toml
index 60f11be..a8acdfa 100644
--- a/exampleSite/config-template.toml
+++ b/exampleSite/config-template.toml
@@ -30,17 +30,7 @@ menushortcutsnewtab = false # set true to open shortcuts links to a new tab/wind
#editURL = "https://github.com/vjeantet/hugo-theme-docport/edit/master/exampleSite/content/"
enableGitInfo = true
-# NetlifyCMS Options
-#editWithNetlifyCMSURL = "admin/#/collections/pages/entries/"
-#netlifycms_backend_name = "github"
-#netlifycms_backend_repo = "vjeantet/hugo-theme-docport"
-#netlifycms_backend_branch = "master"
-#netlifycms_backend_open_authoring = true
-#netlifycms_backend_authtype = " implicit"
-#netlifycms_backend_api_id = "L4M2L3K4ML23K4ML3K42LK342L3M4K23MLK42L3MK4"
-#netlifycms_backend_api_root = " https://xxxxxxxxxx/api/v4"
-#netlifycms_backend_base_url = "https://xxxxxxxxxxxxx"
-#netlifycms_backend_auth_endpoint = "oauth/authorize"
+
[mediaTypes]
[mediaTypes."application/netlifyconfig"]
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 669853e..6ab59da 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -36,16 +36,6 @@ menushortcutsnewtab = false # set true to open shortcuts links to a new tab/wind
editWithNetlifyCMSURL = "admin/#/collections/pages/entries/"
enableGitInfo = true
-netlifycms_backend_name = "github"
-netlifycms_backend_repo = "vjeantet/hugo-theme-docport"
-netlifycms_backend_branch = "master"
-netlifycms_backend_open_authoring = true
-#netlifycms_backend_authtype = " implicit"
-#netlifycms_backend_api_id = "L4M2L3K4ML23K4ML3K42LK342L3M4K23MLK42L3MK4"
-#netlifycms_backend_api_root = " https://xxxxxxxxxx/api/v4"
-#netlifycms_backend_base_url = "https://xxxxxxxxxxxxx"
-#netlifycms_backend_auth_endpoint = "oauth/authorize"
-
[mediaTypes]
[mediaTypes."application/netlifyconfig"]
suffixes = ["yml"]
diff --git a/exampleSite/content/_layout/netlifycms/config.md b/exampleSite/content/_layout/netlifycms/config.md
index 1d97d50..f7b6c1e 100644
--- a/exampleSite/content/_layout/netlifycms/config.md
+++ b/exampleSite/content/_layout/netlifycms/config.md
@@ -1,8 +1,15 @@
---
-netlifycms_content_folder: exampleSite/content
+netlifycms_content_folder: "exampleSite/content"
outputs:
- netlifyyaml
-title: Netlify config file
url: /admin/config.yml
---
-
+backend:
+ name: "github"
+ repo: "vjeantet/hugo-theme-docport"
+ branch: "master"
+ open_authoring: true
+
+media_folder: "static/images/uploads" # Media files will be stored in the repo under images/uploads
+public_folder: "/images/uploads" # The src attribute for uploaded media will begin with /images/uploads
+publish_mode: editorial_workflow \ No newline at end of file