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

github.com/onweru/compose.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweru <fromweru@gmail.com>2021-05-07 00:06:36 +0300
committerweru <fromweru@gmail.com>2021-05-07 00:06:40 +0300
commit600d54dc04fe3c588e6d60453633d100eb3e138a (patch)
tree639b940821c310ba69cc4c834095234e56bea1f9
parent9702e74bededdcb70c938a1ff7ca0e2c8413f725 (diff)
modularize config file
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r--exampleSite/config.toml70
-rw-r--r--exampleSite/config/_default/markup.toml19
-rw-r--r--exampleSite/config/_default/menus/menu.en.toml15
-rw-r--r--exampleSite/config/_default/params.toml32
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 @@ enableGitInfo = true
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/"