hugo-theme-introduction/layouts/partials/projects.html
2017-03-13 17:14:02 +08:00

37 lines
No EOL
1.5 KiB
HTML

<div class="content" id="projects">
<h2 class="section-head">Projects</h2>
<div class="row project-grid">
<div class="col-md-4 col-xs-12 text-center">
<a href="{{ .Site.Params.project1link }}" class="thumbnail">
{{ if .Site.Params.project1img }}
<img class="img-responsive" src="/{{ .Site.Params.project1img }}" alt="{{ .Site.Params.project1title }}">
</a>
{{ end }}
<a href="{{ .Site.Params.project1link }}" class="thumbnail">
<span class="project-title">{{ .Site.Params.project1title }}</span>
</a>
</div>
<div class="col-md-4 col-xs-12 text-center">
<a href="{{ .Site.Params.project2link }}" class="thumbnail">
{{ if .Site.Params.project2img }}
<img class="img-responsive" src="/{{ .Site.Params.project2img }}" alt="{{ .Site.Params.project2title }}">
</a>
{{ end }}
<a href="{{ .Site.Params.project1link }}" class="thumbnail">
<span class="project-title">{{ .Site.Params.project2title }}</span>
</a>
</div>
<div class="col-md-4 col-xs-12 text-center">
<a href="{{ .Site.Params.project3link }}" class="thumbnail">
{{ if .Site.Params.project3img }}
<img class="img-responsive" src="/{{ .Site.Params.project3img }}" alt="{{ .Site.Params.project3title }}">
</a>
{{ end }}
<a href="{{ .Site.Params.project1link }}" class="thumbnail">
<span class="project-title">{{ .Site.Params.project3title }}</span>
</a>
</div>
</div>
<div class="nav"><a href="#top"><i class="fa fa-arrow-up"></i></a></div>
</div>