From 7eef9e1e7ab4a6ec208e2bbe6816e040f7083796 Mon Sep 17 00:00:00 2001 From: Nelson/Roberto Date: Sat, 23 May 2020 14:47:26 +0000 Subject: Minor changes to config files to work with hugoThemes site generator script. --- exampleSite/config/_default/config.toml | 71 +------------------- exampleSite/config/development/config.toml | 5 -- exampleSite/config/live-demo/config.toml | 54 +++++++++++++++ exampleSite/config/production/config.toml | 104 ++++++++++++++++------------- 4 files changed, 113 insertions(+), 121 deletions(-) create mode 100644 exampleSite/config/live-demo/config.toml diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index dfb4da6..9392736 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -29,73 +29,4 @@ link = "https://twitter.com/" [[params.share]] title = "linkedin" icon = "fa-linkedin" -link = "https://www.linkedin.com" - - -## Everything below this is specific to the hugoBasicExample -[menu] - [[menu.main]] - identifier = "about" - name = "About" - url = "/about/" - weight = 10 - [[menu.main]] - identifier = "blog" - name = "Blog" - url = "/post/" - weight = 20 - [[menu.main]] - identifier = "taxonomies" - name = "Taxonomies" - url = "#" - weight = 30 - [[menu.main]] - parent = "taxonomies" - identifier = "categories" - name = "Categories" - url = "/categories/" - weight = 31 - [[menu.main]] - parent = "taxonomies" - identifier = "tags" - name = "Tags" - url = "/tags/" - weight = 31 - [[menu.main]] - parent = "taxonomies" - identifier = "series" - name = "Series" - url = "/series/" - weight = 33 - -[taxonomies] - category = "categories" - tag = "tags" - series = "series" - -[privacy] - - [privacy.vimeo] - disabled = false - simple = true - - [privacy.twitter] - disabled = false - enableDNT = true - simple = true - - [privacy.instagram] - disabled = false - simple = true - - [privacy.youtube] - disabled = false - privacyEnhanced = true - -[services] - - [services.instagram] - disableInlineCSS = true - - [services.twitter] - disableInlineCSS = true \ No newline at end of file +link = "https://www.linkedin.com" \ No newline at end of file diff --git a/exampleSite/config/development/config.toml b/exampleSite/config/development/config.toml index 6ee33ac..a823431 100644 --- a/exampleSite/config/development/config.toml +++ b/exampleSite/config/development/config.toml @@ -1,11 +1,6 @@ # Settings not listed here are inherited from `_default/config.toml` ## This is a more complete example of the themes capabilities that will load with 'hugo server' -baseURL = "http://localhost:1313/" -[params] - mainSections = ["blog"] - -## Everything below is spesific to the content in the local `exampleSite` directory ### For Pages the .RelPermalink must match the menu .URL ### For sections the name/directory must match the menu .Identifier [menu] diff --git a/exampleSite/config/live-demo/config.toml b/exampleSite/config/live-demo/config.toml new file mode 100644 index 0000000..1282611 --- /dev/null +++ b/exampleSite/config/live-demo/config.toml @@ -0,0 +1,54 @@ +# All other settings are inherited from _default/config.toml +## This is the config file used for the live demo located at URL below +baseURL = "https://hugo-html5up-alpha.nelsonroberto.com/" + +[menu] + [[menu.main]] + identifier = "generic" + name = "Generic" + url = "/generic/" + weight = 10 + [[menu.main]] + identifier = "contact" + name = "Contact" + url = "/contact/" + weight = 20 + [[menu.main]] + identifier = "elements" + name = "Elements" + url = "/elements/" + weight = 30 + [[menu.main]] + identifier = "blog" + name = "Blog" + url = "/blog/" + weight = 40 + [[menu.main]] + identifier = "submenu" + name = "Submenu" + url = "#" + weight = 50 + [[menu.main]] + parent = "submenu" + identifier = "one" + name = "Option One" + url = "#" + weight = 51 + [[menu.main]] + parent = "submenu" + identifier = "two" + name = "Option Two" + url = "#" + weight = 52 + [[menu.main]] + parent = "submenu" + identifier = "three" + name = "Option Three" + url = "#" + weight = 53 + [[menu.main]] + parent = "submenu" + identifier = "four" + name = "Option Four" + url = "#" + weight = 54 \ No newline at end of file diff --git a/exampleSite/config/production/config.toml b/exampleSite/config/production/config.toml index 6fb7650..5af3e84 100644 --- a/exampleSite/config/production/config.toml +++ b/exampleSite/config/production/config.toml @@ -1,60 +1,72 @@ -# All other settings are inherited from _default/config.toml -## This is the config file used for the live demo located at URL below -baseURL = "https://hugo-html5up-alpha.nelsonroberto.com/" +## Everything below this is specific to the hugoBasicExample +baseURL = "https://example.com" [params] - mainSections = ["blog"] + mainSections = ["post"] -## Everything below is spesific to the content in the local `exampleSite` directory -### For Pages the .RelPermalink must match the menu .URL -### For sections the name/directory must match the menu .Identifier [menu] [[menu.main]] - identifier = "generic" - name = "Generic" - url = "/generic/" + identifier = "about" + name = "About" + url = "/about/" weight = 10 - [[menu.main]] - identifier = "contact" - name = "Contact" - url = "/contact/" - weight = 20 - [[menu.main]] - identifier = "elements" - name = "Elements" - url = "/elements/" - weight = 30 [[menu.main]] identifier = "blog" name = "Blog" - url = "/blog/" - weight = 40 - [[menu.main]] - identifier = "submenu" - name = "Submenu" - url = "#" - weight = 50 + url = "/post/" + weight = 20 [[menu.main]] - parent = "submenu" - identifier = "one" - name = "Option One" + identifier = "taxonomies" + name = "Taxonomies" url = "#" - weight = 51 + weight = 30 [[menu.main]] - parent = "submenu" - identifier = "two" - name = "Option Two" - url = "#" - weight = 52 + parent = "taxonomies" + identifier = "categories" + name = "Categories" + url = "/categories/" + weight = 31 [[menu.main]] - parent = "submenu" - identifier = "three" - name = "Option Three" - url = "#" - weight = 53 + parent = "taxonomies" + identifier = "tags" + name = "Tags" + url = "/tags/" + weight = 31 [[menu.main]] - parent = "submenu" - identifier = "four" - name = "Option Four" - url = "#" - weight = 54 \ No newline at end of file + parent = "taxonomies" + identifier = "series" + name = "Series" + url = "/series/" + weight = 33 + +[taxonomies] + category = "categories" + tag = "tags" + series = "series" + +[privacy] + + [privacy.vimeo] + disabled = false + simple = true + + [privacy.twitter] + disabled = false + enableDNT = true + simple = true + + [privacy.instagram] + disabled = false + simple = true + + [privacy.youtube] + disabled = false + privacyEnhanced = true + +[services] + + [services.instagram] + disableInlineCSS = true + + [services.twitter] + disableInlineCSS = true \ No newline at end of file -- cgit v1.2.3