mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-09 23:09:47 +00:00
Fix for project without images (if conditioned whole div block) (#8)
Great. Thank you!
This commit is contained in:
parent
2e01da3ccd
commit
daeebbf560
1 changed files with 10 additions and 4 deletions
|
@ -4,25 +4,31 @@
|
|||
<div class="columns is-mobile">
|
||||
|
||||
<div class="column has-text-centered">
|
||||
{{ if .Site.Params.project1img }}
|
||||
<div class="thumbnail">
|
||||
<a href="{{ .Site.Params.project1link }}">{{ if .Site.Params.project1img }}<img class="img-responsive" src="/{{ .Site.Params.project1img }}" alt="{{ .Site.Params.project1title }}"></a>{{ end }}
|
||||
<a href="{{ .Site.Params.project1link }}"><img class="img-responsive" src="/{{ .Site.Params.project1img }}" alt="{{ .Site.Params.project1title }}"></a>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="thumbnail"><a href="{{ .Site.Params.project1link }}"><h4 class="title is-4 top-pad">{{ .Site.Params.project1title }}</h4></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="column has-text-centered">
|
||||
{{ if .Site.Params.project2img }}
|
||||
<div class="thumbnail">
|
||||
<a href="{{ .Site.Params.project2link }}">{{ if .Site.Params.project2img }}<img class="img-responsive" src="/{{ .Site.Params.project2img }}" alt="{{ .Site.Params.project2title }}"></a>{{ end }}
|
||||
<a href="{{ .Site.Params.project2link }}"><img class="img-responsive" src="/{{ .Site.Params.project2img }}" alt="{{ .Site.Params.project2title }}"></a>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="thumbnail"><a href="{{ .Site.Params.project2link }}"><h4 class="title is-4 top-pad">{{ .Site.Params.project2title }}</h4></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="column has-text-centered">
|
||||
{{ if .Site.Params.project3img }}
|
||||
<div class="thumbnail">
|
||||
<a href="{{ .Site.Params.project3link }}">{{ if .Site.Params.project3img }}<img class="img-responsive" src="/{{ .Site.Params.project3img }}" alt="{{ .Site.Params.project3title }}"></a>{{ end }}
|
||||
<a href="{{ .Site.Params.project3link }}"><img class="img-responsive" src="/{{ .Site.Params.project3img }}" alt="{{ .Site.Params.project3title }}"></a>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="thumbnail"><a href="{{ .Site.Params.project3link }}"><h4 class="title is-4 top-pad">{{ .Site.Params.project3title }}</h4></a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -30,4 +36,4 @@
|
|||
</div>
|
||||
</div><!-- End Projects container -->
|
||||
|
||||
<div class="container has-text-centered top-pad"><a href="#top"><i class="fa fa-arrow-up"></i></a></div>
|
||||
<div class="container has-text-centered top-pad"><a href="#top"><i class="fa fa-arrow-up"></i></a></div>
|
||||
|
|
Loading…
Reference in a new issue