From 8b1684b6c27c51bde5c4bb058e40e288089eb129 Mon Sep 17 00:00:00 2001 From: Vincent Tam Date: Wed, 14 Aug 2019 14:40:10 +0200 Subject: [PATCH] Removed trailing spaces and missing newline at EOF (#170) --- .gitignore | 2 +- archetypes/default.md | 2 +- archetypes/projects.md | 4 ++-- assets/vendor/fontawesome-free/LICENSE.txt | 2 +- exampleSite/content/en/blog/no-date.md | 2 +- exampleSite/content/en/projects/design/index.md | 2 +- layouts/index.html | 4 ++-- netlify.toml | 14 +++++++------- scripts/build_docs.sh | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.gitignore b/.gitignore index 3acdc80..00c7a58 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -exampleSite/public \ No newline at end of file +exampleSite/public diff --git a/archetypes/default.md b/archetypes/default.md index fbd25fc..17a3207 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -2,4 +2,4 @@ title: "{{ replace .TranslationBaseName "-" " " | title }}" date: {{ .Date }} draft: true ---- \ No newline at end of file +--- diff --git a/archetypes/projects.md b/archetypes/projects.md index ab9bf7f..4523f83 100644 --- a/archetypes/projects.md +++ b/archetypes/projects.md @@ -1,9 +1,9 @@ --- title: "{{ replace .TranslationBaseName "-" " " | title }}" # Title of your project -date: {{ .Date }} +date: {{ .Date }} weight: 0 # Order in which to show this project on the home page external_link: "" # Optional external link instead of modal -resources: +resources: - src: plant.jpg params: weight: -100 # Optional weighting for a specific image in this project folder diff --git a/assets/vendor/fontawesome-free/LICENSE.txt b/assets/vendor/fontawesome-free/LICENSE.txt index 28c1c4b..97b4d5b 100644 --- a/assets/vendor/fontawesome-free/LICENSE.txt +++ b/assets/vendor/fontawesome-free/LICENSE.txt @@ -24,7 +24,7 @@ attribution, so you shouldn't need to do anything additional when using these files normally. We've kept attribution comments terse, so we ask that you do not actively work -to remove them from files, especially code. They're a great way for folks to +to remove them from files, especially code. They're a great way for folks to learn about Font Awesome. # Brand Icons diff --git a/exampleSite/content/en/blog/no-date.md b/exampleSite/content/en/blog/no-date.md index d907572..6434ae1 100644 --- a/exampleSite/content/en/blog/no-date.md +++ b/exampleSite/content/en/blog/no-date.md @@ -3,4 +3,4 @@ title: "Undated post" tags: ["words"] --- -I was born yesterday, tomorrow. \ No newline at end of file +I was born yesterday, tomorrow. diff --git a/exampleSite/content/en/projects/design/index.md b/exampleSite/content/en/projects/design/index.md index e284fd6..d972d1b 100644 --- a/exampleSite/content/en/projects/design/index.md +++ b/exampleSite/content/en/projects/design/index.md @@ -1,6 +1,6 @@ --- title: "Design" -weight: 2 +weight: 2 resources: - src: plant.jpg params: diff --git a/layouts/index.html b/layouts/index.html index f38c33a..3de991a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -45,11 +45,11 @@ {{ $home := . }} {{ $pages := .Resources.ByType "page" }} - {{ with .Site.GetPage "/blog" }} + {{ with .Site.GetPage "/blog" }} {{ $pages = $pages | append . }} {{ end }} - {{ with .Site.GetPage "/projects" }} + {{ with .Site.GetPage "/projects" }} {{ $pages = $pages | append . }} {{ end }} diff --git a/netlify.toml b/netlify.toml index 479dd53..32d2915 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,13 +1,13 @@ [Settings] -# Settings in the [build] context are global and are applied to all contexts -# unless otherwise overridden by more specific contexts. +# Settings in the [build] context are global and are applied to all contexts +# unless otherwise overridden by more specific contexts. [build] - # Directory to change to before starting a build. + # Directory to change to before starting a build. # This is where we will look for package.json/.nvmrc/etc. base = "exampleSite/" - # Directory (relative to root of your repo) that contains the deploy-ready + # Directory (relative to root of your repo) that contains the deploy-ready # HTML files and assets generated by the build. If a base directory has # been specified, include it in the publish directory path. publish = "docs/" @@ -15,14 +15,14 @@ # Default build command. command = "echo 'default context'" -# Production context: all deploys from the Production branch set in your site's +# Production context: all deploys from the Production branch set in your site's # deploy contexts will inherit these settings. [context.production] publish = "docs/" command = "hugo --gc --minify -t ../.. -d ../docs -v -b /" -# Deploy Preview context: all deploys resulting from a pull/merge request will +# Deploy Preview context: all deploys resulting from a pull/merge request will # inherit these settings. [context.deploy-preview] publish = "docs/" - command = "hugo --gc --minify -t ../.. -d ../docs -v -b /" \ No newline at end of file + command = "hugo --gc --minify -t ../.. -d ../docs -v -b /" diff --git a/scripts/build_docs.sh b/scripts/build_docs.sh index 7b5f57b..2e9a77a 100755 --- a/scripts/build_docs.sh +++ b/scripts/build_docs.sh @@ -2,4 +2,4 @@ rm -rf ../docs cd ../exampleSite -HUGO_THEME=hugo-theme-introduction hugo --gc --minify --themesDir ../.. -v -b / -d ../docs \ No newline at end of file +HUGO_THEME=hugo-theme-introduction hugo --gc --minify --themesDir ../.. -v -b / -d ../docs