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 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/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 @@