From 9972b94d36196a9934fa4b1d7f7e19c42685c4c5 Mon Sep 17 00:00:00 2001 From: atomtigerzoo Date: Fri, 11 Aug 2017 16:48:32 +0200 Subject: [PATCH 1/4] Some nicer defaults to get started with --- site/config.toml | 3 ++- site/layouts/index.html | 4 ++++ site/layouts/partials/footer.html | 5 +++-- site/layouts/partials/header.html | 8 +++++--- src/css/imports/reset.css | 10 ++++++++-- src/css/main.css | 13 +++++++++++++ src/js/app.js | 3 +++ 7 files changed, 38 insertions(+), 8 deletions(-) diff --git a/site/config.toml b/site/config.toml index 149e86a..620f71c 100644 --- a/site/config.toml +++ b/site/config.toml @@ -1,3 +1,4 @@ baseurl = "/" languageCode = "en-us" -title = "My New Hugo Site" +languageLang = "en" +title = "My new Victor-Hugo site" diff --git a/site/layouts/index.html b/site/layouts/index.html index 225c92b..40273f0 100644 --- a/site/layouts/index.html +++ b/site/layouts/index.html @@ -2,4 +2,8 @@

Hugo with Gulp, PostCSS and Webpack

+

+ Hooray 🎉 - you've built this with Victor-Hugo! +

+ {{ partial "footer" . }} diff --git a/site/layouts/partials/footer.html b/site/layouts/partials/footer.html index 310a610..e31af93 100644 --- a/site/layouts/partials/footer.html +++ b/site/layouts/partials/footer.html @@ -1,3 +1,4 @@ - - + + + diff --git a/site/layouts/partials/header.html b/site/layouts/partials/header.html index c84dc6e..ab9551c 100644 --- a/site/layouts/partials/header.html +++ b/site/layouts/partials/header.html @@ -1,7 +1,9 @@ - + - Hugo with Gulp and Webpack - + + + {{ $.Site.Title }} + diff --git a/src/css/imports/reset.css b/src/css/imports/reset.css index 74d7658..8ef9133 100644 --- a/src/css/imports/reset.css +++ b/src/css/imports/reset.css @@ -1,3 +1,9 @@ -body { - font-size: 16px; +/* + Define your resets here or use something like Normalize.css if you like + */ + +html, +body{ + margin: 0; + padding: 0; } diff --git a/src/css/main.css b/src/css/main.css index ebf0749..2013e7a 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -1 +1,14 @@ +/* + You can use import statements to include partials: + */ @import "imports/reset.css"; + + +/* + Or add your statements here: + */ +body{ + font-family: sans-serif; + font-size: 1em; + text-align: center; +} diff --git a/src/js/app.js b/src/js/app.js index 6fbb399..76d8278 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1 +1,4 @@ // JS Goes here - ES6 supported + +// Say hello +console.log("🦊 Hello! Edit me in src/js/app.js"); From 8a3e5391363f63d1647ae281e843062f3eaad0de Mon Sep 17 00:00:00 2001 From: atomtigerzoo Date: Fri, 11 Aug 2017 16:58:41 +0200 Subject: [PATCH 2/4] Disabled RSS to minimise output in dist folder --- site/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/site/config.toml b/site/config.toml index 620f71c..66123fd 100644 --- a/site/config.toml +++ b/site/config.toml @@ -2,3 +2,4 @@ baseurl = "/" languageCode = "en-us" languageLang = "en" title = "My new Victor-Hugo site" +disableRSS = true From fe012f52f68ec57c8bd51b513f07926b86a288cc Mon Sep 17 00:00:00 2001 From: atomtigerzoo Date: Fri, 11 Aug 2017 17:05:00 +0200 Subject: [PATCH 3/4] Disabled taxonomies, added comments for understanding --- site/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/site/config.toml b/site/config.toml index 66123fd..004d9c0 100644 --- a/site/config.toml +++ b/site/config.toml @@ -2,4 +2,10 @@ baseurl = "/" languageCode = "en-us" languageLang = "en" title = "My new Victor-Hugo site" + +# Remove the following line if you want to generate a RSS feed disableRSS = true + +# Categories and tags disabled for an easy start +# Learn about taxonomies: https://gohugo.io/content-management/taxonomies/ +disableKinds = ["taxonomy","taxonomyTerm"] From f262979f0626d13e017d4df3e8a8eb979e2c3c26 Mon Sep 17 00:00:00 2001 From: atomtigerzoo Date: Mon, 14 Aug 2017 19:52:21 +0200 Subject: [PATCH 4/4] Removed deprecated config setting, updated other to reflect change --- site/config.toml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/site/config.toml b/site/config.toml index 004d9c0..c035fc5 100644 --- a/site/config.toml +++ b/site/config.toml @@ -3,9 +3,7 @@ languageCode = "en-us" languageLang = "en" title = "My new Victor-Hugo site" -# Remove the following line if you want to generate a RSS feed -disableRSS = true - -# Categories and tags disabled for an easy start -# Learn about taxonomies: https://gohugo.io/content-management/taxonomies/ -disableKinds = ["taxonomy","taxonomyTerm"] +# RSS, categories and tags disabled for an easy start +# See configuration options for more details: +# https://gohugo.io/getting-started/configuration/#toml-configuration +disableKinds = ["RSS", "taxonomy", "taxonomyTerm"]