mirror of https://github.com/onweru/compose.git

weru
06.06.2021 600d54dc04fe3c588e6d60453633d100eb3e138a
modularize config file

Signed-off-by: weru <fromweru@gmail.com>
3 files added
1 files modified
136 ■■■■ changed files
exampleSite/config.toml 70 ●●●●● patch | view | raw | blame | history
exampleSite/config/_default/markup.toml 19 ●●●●● patch | view | raw | blame | history
exampleSite/config/_default/menus/menu.en.toml 15 ●●●●● patch | view | raw | blame | history
exampleSite/config/_default/params.toml 32 ●●●●● patch | view | raw | blame | history
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"]
exampleSite/config/_default/markup.toml
New file
@@ -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
exampleSite/config/_default/menus/menu.en.toml
New file
@@ -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/"
exampleSite/config/_default/params.toml
New file
@@ -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/"