From d8c6e419ee0eba5cc4f5a9e1bacfd645c198e8f5 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Thu, 30 Aug 2018 19:40:32 +0200 Subject: [PATCH 1/4] Removed external_link from project links Closes #1 --- layouts/partials/home/projects.html | 1 - 1 file changed, 1 deletion(-) diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index 324573f..62d0a83 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -33,7 +33,6 @@
- {{ .Params.external_link }} {{ .Title }}
From 8c70285a4736e0e24ee8f7cbe0c8e2edd94af7c0 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Thu, 30 Aug 2018 19:46:31 +0200 Subject: [PATCH 2/4] Bump hugo version to 0.48 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 524d8f3..ed4714c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ git: depth: false env: - - HUGO_VERSION="0.47" + - HUGO_VERSION="0.48" install: - wget -q https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz From 8e5766e51f0764fdcb381c25d7511801f53de9ac Mon Sep 17 00:00:00 2001 From: Hanzei Date: Thu, 30 Aug 2018 22:06:12 +0200 Subject: [PATCH 3/4] Replace .Scratch with = --- layouts/partials/home/projects.html | 13 ++++++------- layouts/projects/list.html | 13 ++++++------- theme.toml | 2 +- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/layouts/partials/home/projects.html b/layouts/partials/home/projects.html index 62d0a83..e5a28a8 100644 --- a/layouts/partials/home/projects.html +++ b/layouts/partials/home/projects.html @@ -10,18 +10,17 @@ {{ $totalProjects := (len .Pages) }} {{ $numberOfProjectsToShow := .Site.Params.home.numberOfProjectsToShow | default $totalProjects }} {{ range $index, $element := .Pages.ByWeight | first $numberOfProjectsToShow }} + {{ $width := "302x" }} + {{ $columWidth := "is-one-third" }} {{ if .Site.Params.projects.useTwoColumns }} - {{ .Scratch.Set "width" "490x" }} -
- {{ else }} - {{ .Scratch.Set "width" "302x" }} -
- {{ end }} + {{ $columWidth = "is-half" }} + {{ $width = "490x" }} + {{ end}} +
- {{ $width := ( .Scratch.Get "width" ) }} {{ with .Resources.ByType "image" }} {{ range first 1 (sort . "Params.weight") }} {{ $image := .Resize $width }} diff --git a/layouts/projects/list.html b/layouts/projects/list.html index a4f6e1a..37480ea 100644 --- a/layouts/projects/list.html +++ b/layouts/projects/list.html @@ -7,18 +7,17 @@
{{ $numberOfPages := len .Pages}} {{ range .Pages.ByWeight }} + {{ $width := "302x" }} + {{ $columWidth := "is-one-third" }} {{ if .Site.Params.projects.useTwoColumns }} - {{ .Scratch.Set "width" "490x" }} -
- {{ else }} - {{ .Scratch.Set "width" "302x" }} -
- {{ end }} + {{ $columWidth = "is-half" }} + {{ $width = "490x" }} + {{ end}} +
- {{ $width := ( .Scratch.Get "width" ) }} {{ with .Resources.ByType "image" }} {{ range first 1 (sort . "Params.weight") }} {{ $image := .Resize $width }} diff --git a/theme.toml b/theme.toml index 78067e5..758b6be 100644 --- a/theme.toml +++ b/theme.toml @@ -5,7 +5,7 @@ description = "Minimal, single page, smooth scrolling theme for Hugo." homepage = "https://github.com/vickylai/hugo-theme-introduction" tags = ["blog", "bulma", "clean", "dark", "disqus", "font awesome", "gallery", "minimal", "minimalist", "mobile", "multilingual", "one page", "personal", "responsive", "simple", "single page", "starter", "syntax highlighting", "projects", "white" ] features = ["responsive", "blog", "portfolio", "gallery"] -min_version = "0.46" +min_version = "0.48" [author] name = "Vicky Lai" From fe57f7d294613bce2b2af6ba2e483ddf24bb4170 Mon Sep 17 00:00:00 2001 From: Hanzei Date: Fri, 31 Aug 2018 10:29:43 +0200 Subject: [PATCH 4/4] Hide generated files via gitattributes See https://medium.com/@clarkbw/managing-generated-files-in-github-1f1989c09dfd --- assets/.gitattributes | 2 ++ exampleSite/.gitattributes | 2 ++ static/.gitattributes | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 assets/.gitattributes create mode 100644 exampleSite/.gitattributes create mode 100644 static/.gitattributes diff --git a/assets/.gitattributes b/assets/.gitattributes new file mode 100644 index 0000000..cea6c74 --- /dev/null +++ b/assets/.gitattributes @@ -0,0 +1,2 @@ +vendor/** linguist-generated=true +vendor/** -diff -merge diff --git a/exampleSite/.gitattributes b/exampleSite/.gitattributes new file mode 100644 index 0000000..6393d4c --- /dev/null +++ b/exampleSite/.gitattributes @@ -0,0 +1,2 @@ +resources/** linguist-generated=true +resources/** -diff -merge diff --git a/static/.gitattributes b/static/.gitattributes new file mode 100644 index 0000000..fa63787 --- /dev/null +++ b/static/.gitattributes @@ -0,0 +1,2 @@ +fonts/** linguist-generated=true +fonts/** -diff -merge