wtfxus-home/themes/roxo-hugo/layouts/partials/portfolio.html

33 lines
1.1 KiB
HTML
Raw Normal View History

2023-07-02 21:26:24 +00:00
{{ with .Site.Params.portfolio }}
{{ if .enable }}
<section class="site-project" id="project">
<div class="container">
<div class="row">
<div class="col-12">
<div class="section-title">
<h2>{{ .title }}</h2>
<p>{{ .subtitle }}</p>
</div>
</div>
{{ range first 4 (where $.Site.RegularPages "Type" "portfolio") }}
<div class="col-lg-6 col-md-10 mx-auto">
<div class="site-project-item">
<div class="site-project-item-thumb">
<img src="{{ .Params.Image | absURL }}" alt="project-thumb">
</div>
<div class="site-project-item-content">
<span>{{ delimit .Params.category ", " }}</span>
<h3>{{ .Title }}</h3>
<a href="{{ .Permalink }}" class="read-more">view project</a>
</div>
</div>
</div>
{{ end }}
<div class="col-12 text-center text-lg-left">
<a href="portfolio" class="site-project-cta">MORE WORKS</a>
</div>
</div>
</div>
</section>
{{ end }}
{{ end }}