From a7ba32fe57295d008a67bb023b8c708b13b1b9e0 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Tue, 21 Apr 2020 18:09:07 +0200 Subject: [PATCH] move from config file to config dir Signed-off-by: Toshaan Bharvani --- config/_default/config.toml | 22 ++++++++++++++++ config.toml => config/_default/menus.toml | 31 +++++------------------ config/production/config.toml | 3 +++ 3 files changed, 32 insertions(+), 24 deletions(-) create mode 100644 config/_default/config.toml rename config.toml => config/_default/menus.toml (55%) create mode 100644 config/production/config.toml diff --git a/config/_default/config.toml b/config/_default/config.toml new file mode 100644 index 0000000..4c6913f --- /dev/null +++ b/config/_default/config.toml @@ -0,0 +1,22 @@ +### config.toml +title = "PowerEL" +baseURL = "https://www.powerel.org/" +theme = "pel" +languageCode = "en-us" +dataDir = "data" +assetDir = "assets" +PaginatePath = "blog" +sectionPagesMenu = "main" +buildDrafts = false +pygmentsUseClasses = true +enableGitInfo = true +enableRobotsTXT = true + +[outputs] + section = [ "HTML", "Calendar", "RSS" ] + +[outputFormats] +[outputFormats.RSS] + mediatype = "application/rss" + baseName = "feed" + suffix = "xml" diff --git a/config.toml b/config/_default/menus.toml similarity index 55% rename from config.toml rename to config/_default/menus.toml index 4388bf4..eeebbb5 100644 --- a/config.toml +++ b/config/_default/menus.toml @@ -1,53 +1,36 @@ -### config.toml -title = "PowerEL" -baseURL = "https://www.powerel.org/" -theme = "pel" -languageCode = "en-us" -dataDir = "data" -PaginatePath = "blog" -sectionPagesMenu = "main" -buildDrafts = false -pygmentsUseClasses = true -enableGitInfo = true -enableRobotsTXT = true - ### navbar -[[menu.navbar]] +[[navbar]] name = "Home" identifier = "home" url = "/" weight = -1000 -[[menu.navbar]] +[[navbar]] name = "About" identifier = "about" url = "/about/" weight = -900 -[[menu.navbar]] +[[navbar]] name = "Get PEL" identifier = "download" url = "/download/" weight = -800 -[[menu.navbar]] +[[navbar]] name = "Repos" identifier = "repos" url = "/repos/" weight = -700 -[[menu.navbar]] +[[navbar]] name = "Community" identifier = "community" url = "/community/" weight = -600 -[[menu.navbar]] +[[navbar]] name = "Git" identifier = "git" url = "https://git.powerel.org/" weight = -500 -#[[menu.navbar]] +#[[navbar]] # name = "Bugs" # identifier = "bugs" # url = "https://bugzilla.powerel.org/" # weight = -400 - -[params.analytics.piwik] - URL = "https://stats.vantosh.com" - ID = "43" diff --git a/config/production/config.toml b/config/production/config.toml new file mode 100644 index 0000000..717fb59 --- /dev/null +++ b/config/production/config.toml @@ -0,0 +1,3 @@ +[params.analytics.piwik] + URI = "https://stats.vantosh.com" + ID = "43"