Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…duction into Hanzei-next_gen
  • Loading branch information
Vicky committed Sep 3, 2018
2 parents 03e8040 + fe57f7d commit ef92cd4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions assets/.gitattributes
@@ -0,0 +1,2 @@
vendor/** linguist-generated=true
vendor/** -diff -merge
2 changes: 2 additions & 0 deletions exampleSite/.gitattributes
@@ -0,0 +1,2 @@
resources/** linguist-generated=true
resources/** -diff -merge
13 changes: 6 additions & 7 deletions layouts/partials/home/projects.html
Expand Up @@ -10,18 +10,17 @@ <h2 class="title is-2 has-text-centered">
{{ $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" }}
<div class="column is-half">
{{ else }}
{{ .Scratch.Set "width" "302x" }}
<div class="column is-one-third">
{{ end }}
{{ $columWidth = "is-half" }}
{{ $width = "490x" }}
{{ end}}
<div class="column {{ $columWidth }}">
<div class="card" data-target="#project-{{ $index }}">
<div class="card-image">
<figure class="image is-3by2">
<a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}>
{{ $width := ( .Scratch.Get "width" ) }}
{{ with .Resources.ByType "image" }}
{{ range first 1 (sort . "Params.weight") }}
{{ $image := .Resize $width }}
Expand Down
13 changes: 6 additions & 7 deletions layouts/projects/list.html
Expand Up @@ -7,18 +7,17 @@
<div class="columns is-multiline">
{{ $numberOfPages := len .Pages}}
{{ range .Pages.ByWeight }}
{{ $width := "302x" }}
{{ $columWidth := "is-one-third" }}
{{ if .Site.Params.projects.useTwoColumns }}
{{ .Scratch.Set "width" "490x" }}
<div class="column is-half">
{{ else }}
{{ .Scratch.Set "width" "302x" }}
<div class="column is-one-third">
{{ end }}
{{ $columWidth = "is-half" }}
{{ $width = "490x" }}
{{ end}}
<div class="column {{ $columWidth }}">
<div class="card">
<div class="card-image">
<figure class="image is-3by2">
<a href="{{ if .Params.external_link }}{{ .Params.external_link }}{{ else }}{{ .Permalink }}{{ end }}">
{{ $width := ( .Scratch.Get "width" ) }}
{{ with .Resources.ByType "image" }}
{{ range first 1 (sort . "Params.weight") }}
{{ $image := .Resize $width }}
Expand Down
2 changes: 2 additions & 0 deletions static/.gitattributes
@@ -0,0 +1,2 @@
fonts/** linguist-generated=true
fonts/** -diff -merge
2 changes: 1 addition & 1 deletion theme.toml
Expand Up @@ -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"
Expand Down

0 comments on commit ef92cd4

Please sign in to comment.