From 600d54dc04fe3c588e6d60453633d100eb3e138a Mon Sep 17 00:00:00 2001
From: weru <fromweru@gmail.com>
Date: Thu, 06 May 2021 21:06:40 +0000
Subject: [PATCH] modularize config file

---
 exampleSite/config.toml                        |   70 -----------------------
 exampleSite/config/_default/menus/menu.en.toml |   15 +++++
 exampleSite/config/_default/markup.toml        |   19 ++++++
 exampleSite/config/_default/params.toml        |   32 ++++++++++
 4 files changed, 67 insertions(+), 69 deletions(-)

diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 614aba6..4e94415 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -10,72 +10,4 @@
 disableKinds = ["taxonomy", "taxonomyTerm"]
 
 [outputs]
-  home = ["HTML", "RSS","JSON"]
-
-#  menu items
-[[menu.main]]
-  name = "Docs"
-  weight = 2
-  url = "docs/"
-
-[[menu.main]]
-  name = "Example"
-  weight = 3
-  url = "https://docs.neuralvibes.com"
-
-[markup]
-  [markup.goldmark]
-    [markup.goldmark.renderer]
-      unsafe = true
-    [markup.goldmark.extensions]
-      typographer = false
-  [markup.highlight]
-    codeFences = true
-    guessSyntax = false
-    hl_Lines = ""
-    lineNoStart = 1
-    lineNos = true
-    lineNumbersInTable = false
-    noClasses = false
-    style = "monokai"
-    tabWidth = 2
-  [markup.tableOfContents]
-    endLevel = 4
-    ordered = false
-    startLevel = 2
-
-# Everything below this are Site Params
-
-[params]
-
-  uniqueHomePage = true # change to false to add sidebar to homepage
-
-  repo = "https://github.com/onweru/compose"
-
-  time_format_blog = "Monday, January 02, 2006"
-  time_format_default = "January 2, 2006"
-  enableDarkMode = true # set to false to disable darkmode by default # user will still have the option to use dark mode
-
-  # sets the maximum number of lines per codeblock. The codeblock will however be scrollable and expandable.
-  codeMaxLines = 7
-
-  # disable showing line numbers by default. Switch to `true` if you'd rather have them on.
-  codeLineNumbers = false
-
-  # Site logo
-  [params.logo]
-    lightMode = "images/compose.svg"
-    darkMode = "images/compose-light.svg"
-
-  [params.source]
-    name = "GitHub"
-    iconLight = "images/GitHubMarkLight.svg"
-    iconDark = "images/GitHubMarkDark.svg"
-    url = "https://github.com/onweru/compose/"
-
-  # optional
-  # attribution. Feel free to delete this
-  [params.author]
-    name = "Weru"
-    url = "https://neuralvibes.com/author/"
-
+  home = ["HTML", "RSS","JSON"]
\ No newline at end of file
diff --git a/exampleSite/config/_default/markup.toml b/exampleSite/config/_default/markup.toml
new file mode 100644
index 0000000..adc933a
--- /dev/null
+++ b/exampleSite/config/_default/markup.toml
@@ -0,0 +1,19 @@
+[goldmark]
+  [goldmark.renderer]
+    unsafe = true
+  [goldmark.extensions]
+    typographer = false
+[highlight]
+  codeFences = true
+  guessSyntax = false
+  hl_Lines = ""
+  lineNoStart = 1
+  lineNos = true
+  lineNumbersInTable = false
+  noClasses = false
+  style = "monokai"
+  tabWidth = 2
+[tableOfContents]
+  endLevel = 4
+  ordered = false
+  startLevel = 2
\ No newline at end of file
diff --git a/exampleSite/config/_default/menus/menu.en.toml b/exampleSite/config/_default/menus/menu.en.toml
new file mode 100644
index 0000000..2db667d
--- /dev/null
+++ b/exampleSite/config/_default/menus/menu.en.toml
@@ -0,0 +1,15 @@
+#  menu items
+[[main]]
+  name = "Docs"
+  weight = 2
+  url = "docs/"
+
+[[main]]
+  name = "Example"
+  weight = 3
+  url = "https://docs.neuralvibes.com"
+
+# [[main]]
+#   name = "Blog"
+#   weight = 4
+#   url = "blog/"
\ No newline at end of file
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
new file mode 100644
index 0000000..791d741
--- /dev/null
+++ b/exampleSite/config/_default/params.toml
@@ -0,0 +1,32 @@
+mainSections = ["posts"] # use it for blog page section 
+
+uniqueHomePage = true # change to false to add sidebar to homepage
+
+repo = "https://github.com/onweru/compose"
+
+time_format_blog = "Monday, January 02, 2006"
+time_format_default = "January 2, 2006"
+enableDarkMode = true # set to false to disable darkmode by default # user will still have the option to use dark mode
+
+# sets the maximum number of lines per codeblock. The codeblock will however be scrollable and expandable.
+codeMaxLines = 7
+
+# disable showing line numbers by default. Switch to `true` if you'd rather have them on.
+codeLineNumbers = false
+
+# Site logo
+[logo]
+  lightMode = "images/compose.svg"
+  darkMode = "images/compose-light.svg"
+
+[source]
+  name = "GitHub"
+  iconLight = "images/GitHubMarkLight.svg"
+  iconDark = "images/GitHubMarkDark.svg"
+  url = "https://github.com/onweru/compose/"
+
+# optional
+# attribution. Feel free to delete this
+[author]
+  name = "Weru"
+  url = "https://neuralvibes.com/author/"

--
Gitblit v1.10.0