diff options
author | Vicky <vicky@vickylai.io> | 2018-03-26 00:34:08 +0300 |
---|---|---|
committer | Vicky <vicky@vickylai.io> | 2018-03-26 00:34:08 +0300 |
commit | f2024bb2a4b1ec500c8471dde0779bbe0380d2de (patch) | |
tree | a5d1ec4174dc4db60fa258e1b00578efb88be4ab | |
parent | 64f3358bc9225a8145cc82f3abce41ca987f35c8 (diff) |
Fix for default project image.
-rw-r--r-- | layouts/blog/list.html | 2 | ||||
-rw-r--r-- | layouts/blog/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/projects.html | 9 |
3 files changed, 7 insertions, 6 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html index e1a31fc..c2d94d6 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -19,7 +19,7 @@ {{ if .Site.Params.showLatest }} <h2 class="title is-2 top-pad">Latest Post</h2> {{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }} - <div class="summary">{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} + <div class="summary">{{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }} <h3 class="title is-3 strong-post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3> <div class="markdown"> {{ .Summary }} diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 914af05..15e1a9b 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -17,7 +17,7 @@ <div class="container {{ if .Site.Params.fadeIn | default true }}fade-in two{{ end }}"><!-- Begin blog title container --> <h2 class="title is-1 top-pad strong-post-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <div class="post-data"> - {{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} | + {{ .Date.Format (.Site.Params.dateForm | default "Jan 02, 2006") }} | {{ if eq 1 .ReadingTime }}{{ .ReadingTime }} minute read{{ else }}{{ .ReadingTime }} minutes read{{ end }} </div> diff --git a/layouts/partials/projects.html b/layouts/partials/projects.html index 7a16ea7..6a6b050 100644 --- a/layouts/partials/projects.html +++ b/layouts/partials/projects.html @@ -5,15 +5,16 @@ <div class="section is-small"> <div class="columns is-multiline"> {{ range sort .Pages }} {{ if eq .Section "projects" }} - {{ if eq (.Site.Params.projectColumns | default "3") "2" }} - <div class="column is-half"> {{ else if eq (.Site.Params.projectColumns | default "3") "3" }} - <div class="column is-one-third"> {{ end }} + {{ if eq .Site.Params.projectColumns "2" }} + <div class="column is-half"> {{ else if eq .Site.Params.projectColumns "3" }} + <div class="column is-one-third"> {{ else }} + <div class="column is-one-third"> {{ end }} <!-- Hey Vicky, show half column if number is even. --> <div {{ if not .Params.external_link }} id="project{{ $card := .Title | urlize }}{{ replace $card "%" ""}}" {{ end }} class="card"> <div class="card-image"> <figure class="image is-3by2"> <a {{ if .Params.external_link }} href="{{ .Params.external_link }}" {{ end }}> - <img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeHolderimg }}{{ end }}"> + <img src="{{ if .Params.image }}{{ .Params.image }}{{ else }}{{ .Site.Params.placeHolderimg | default "img/workday.jpg" }}{{ end }}"> </a> </figure> </div> |