From fb4618560d4e9626486b826deb74c28171ddb4c8 Mon Sep 17 00:00:00 2001 From: Ryan Watters Date: Wed, 1 Mar 2017 18:42:44 -0600 Subject: [PATCH] Add removal of icons --- content/getting-started/installing.md | 6 +- layouts/_default/section.html | 2 +- layouts/partials/breadcrumb.html | 12 +- layouts/partials/contents-list.html | 7 +- .../partials/homepage/homepage-content.html | 16 +- layouts/partials/site-footer.html | 8 +- layouts/partials/site-navigation.html | 2 +- pipeline/gulpfile.js | 2 +- pipeline/js/_blast.js | 480 ++++++++++++++++++ pipeline/scss/_variables.scss | 2 +- pipeline/scss/layout/_site-footer.scss | 42 +- pipeline/scss/pages/_homepage.scss | 63 ++- static/css/style.min.css | 4 +- static/js/homepage.js | 97 ++-- static/js/script.min.js | 8 +- 15 files changed, 636 insertions(+), 115 deletions(-) create mode 100644 pipeline/js/_blast.js diff --git a/content/getting-started/installing.md b/content/getting-started/installing.md index 419e34e39..8f65f0ecd 100644 --- a/content/getting-started/installing.md +++ b/content/getting-started/installing.md @@ -122,7 +122,7 @@ Whenever installing with Homebrew, it's a good idea to update the formulae and H {{% code file="update-brew.sh" %}} ```bash -$ brew update +brew update ``` {{% /code %}} @@ -130,7 +130,7 @@ You can then install Hugo using `brew`: {{% code file="install-brew.sh" %}} ```bash -$ brew install hugo +brew install hugo ``` {{% /code %}} @@ -152,7 +152,7 @@ if you want the absolute latest version in development. ```bash $ # show the location of the hugo executable -$ which hugo +which hugo /usr/local/bin/hugo $ # show the installed version diff --git a/layouts/_default/section.html b/layouts/_default/section.html index a87b2a4d5..694a22ed5 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -5,7 +5,7 @@
{{partial "breadcrumb.html" . }}

- {{- partial "list-icon.html" . -}} + {{- .Title | markdownify -}}

{{partial "content-header-links.html" . }} {{partial "tags.html" . }} diff --git a/layouts/partials/breadcrumb.html b/layouts/partials/breadcrumb.html index c77148c3b..3f4bd36f1 100644 --- a/layouts/partials/breadcrumb.html +++ b/layouts/partials/breadcrumb.html @@ -1,18 +1,12 @@ +{{if and (ne .Kind "section") (ne .Section "")}} +{{end}} diff --git a/layouts/partials/contents-list.html b/layouts/partials/contents-list.html index df52b114e..7f4080523 100644 --- a/layouts/partials/contents-list.html +++ b/layouts/partials/contents-list.html @@ -1,14 +1,11 @@ {{$kind := .Kind}} -{{if eq $kind "section"}} -{{$section := replace (humanize .Section | title) "And" "and"}} -

Contents:

-{{end}} {{range .Data.Pages}}
-

{{- partial "list-icon.html" . -}}{{.Title | markdownify}}{{with .Params.sitelink }} {{end}}

+ +

{{.Title | markdownify}}{{with .Params.sitelink }} {{end}}

{{.Description | markdownify }}

diff --git a/layouts/partials/homepage/homepage-content.html b/layouts/partials/homepage/homepage-content.html index cc1646016..c2b848b13 100644 --- a/layouts/partials/homepage/homepage-content.html +++ b/layouts/partials/homepage/homepage-content.html @@ -4,12 +4,16 @@ {{ partial "svg-icons/hugo-home.svg" . }} UGO -
+
+
+ $ brew install go
+ $ brew install hugo
+ $ have fun
diff --git a/layouts/partials/site-footer.html b/layouts/partials/site-footer.html index 107805257..d68f35269 100644 --- a/layouts/partials/site-footer.html +++ b/layouts/partials/site-footer.html @@ -5,13 +5,15 @@ By spf13 and friends. Made with Hugo Logo -