Fork of the Hugo theme hyde-hyde that introduces some necessary cleanup and changes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.6 KiB

<span class="section__title">{{ .Title | default "Artfolio" }}</span>
<div class="artfolio__content">
{{ range first 1 (where .Data.Pages "Params.featured" "==" true) }}
<section class="artfolio__featured-project">
<div class="section-inner">
<div class="artfolio_content">
<div class="item featured text-center">
<span class="project__artwork">
{{ if .Params.artworks }}
<a href={{ .RelPermalink }} target="_blank" rel="noopener noreferrer"><img class="project__image img-responsive" src="{{ .Params.artworks.s1.file }}" alt="{{ .Params.artworks.s1.caption }}" title="{{ .Params.artworks.s1.caption }}"></a>
{{ end }}
</span>
</div>
</div>
</div>
</section>
{{ end }}
<section>
<hr class="divider">
<div class="artfolio_content">
{{ range (where .Data.Pages "Params.featured" "!=" true).ByDate.Reverse }}
<div class="artfolio-block">
<span class="artwork__primary-art">
{{ if .Params.artworks }}
<a href={{ .RelPermalink }} target="_blank" rel="noopener noreferrer"><img class=" artwork__image img-responsive" src="{{ .Params.artworks.s1.file }}" alt="{{ .Params.artworks.s1.caption }}" title="{{ .Params.artworks.s1.caption }}"></a>
{{ end }}
</span>
</div>
{{ end }}
</div>
</section>
</div>