hugo-theme-hyde-hyde/layouts/partials/portfolio/content.html

59 lines
2.7 KiB
HTML
Raw Normal View History

<span class="section__title">{{ .Title | default "Projects" }}</span>
2018-07-21 23:33:29 +00:00
<div class="portfolio__content">
{{ range first 1 (where .Data.Pages "Params.featured" "==" true) }}
2018-07-21 23:33:29 +00:00
<section class="portfolio__featured-project">
2018-07-16 03:22:00 +00:00
<div class="section-inner">
<div class="portfolio_content">
<div class="item featured text-center">
2018-07-21 23:33:29 +00:00
<span class="project__title">
<a href="{{ .Params.Link }}" target="_blank" rel="noopener noreferrer">{{ .Title }}</a>
2018-07-21 23:33:29 +00:00
</span>
<p class="project__subtitle-big">
<sup><i class="fa fa-quote-left" aria-hidden="true"></i></sup>
{{ .Params.description }}
<sup><i class="fa fa-quote-right" aria-hidden="true"></i></sup>
</p>
<div class="project__featured-image">
{{ if .Params.screenshot }}
<img src="{{ .Params.screenshot }}" alt="{{ .Title }}">
{{ end }}
2018-07-16 03:22:00 +00:00
</div>
2018-07-21 23:33:29 +00:00
<div class="project__summary">
2018-07-16 03:22:00 +00:00
{{ .Content }}
</div>
</div>
</div>
2018-07-21 23:33:29 +00:00
</div>
2018-07-16 03:22:00 +00:00
</section>
{{ end }}
<section>
2018-07-21 23:33:29 +00:00
<div class="portfolio_content">
<hr class="divider">
{{ range (where .Data.Pages "Params.featured" "!=" true).ByDate.Reverse }}
2018-07-21 23:33:29 +00:00
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-12" href="{{ .Params.link }}"
target="_blank" rel="noopener noreferrer">
{{ if .Params.screenshot }}
<img class="project__image img-responsive" src="{{ .Params.screenshot }}" alt="{{ .Title }}">
{{ end }}
</div>
<div class="col-md-8 col-sm-8 col-xs-12">
2018-07-21 23:33:29 +00:00
<span class="project__title">
<a href="{{ .Params.link }}" target="_blank" rel="noopener noreferrer">{{ .Title }}</a>
2018-07-21 23:33:29 +00:00
</span>
<span class="project__subtitle-small">
<sup><i class="fa fa-quote-left" aria-hidden="true"></i></sup>
{{ .Params.description }}
<sup><i class="fa fa-quote-right" aria-hidden="true"></i></sup>
</span>
<span class="project__summary">
{{ .Content }}
</span>
2018-07-16 03:22:00 +00:00
</div>
</div>
2018-07-21 23:33:29 +00:00
<div class="row-space">&nbsp;</div>
{{ end }}
2018-07-16 03:22:00 +00:00
</div>
</section>
</div>