Repository: GitHub - kevinblumenfeld/SugarTime at staging
Specific file: SugarTime/list.html at staging · kevinblumenfeld/SugarTime · GitHub
Hi,
I would like to modify the background color based on when:
-
PRODUCE
isFRUIT
-
PRODUCE
isVEGETABLE
For example:
I am ranging over .Pages
(code block below) and I believe the background color is set at this div <div class="site-project-item-content">
.
<section class="site-project" id="project" style="padding-top: 180px;">
<div class="container">
<div class="row">
{{ range $p := .Pages }}
<div class="col-lg-6 col-md-10 mx-auto">
<div class="site-project-item">
<div class="site-project-item-content">
<h3>{{ .Type }}</h3>
<span>{{ delimit .Params.category ", " }}</span>
<a href="{{ .Permalink }}" class="read-more">book now</a>
</div>
<div class="site-project-item-thumb">
{{ with .Site.Data.pricelist }}
<ul class="leaders">
{{ range index . $p.Title }}
<li>
<span>{{ .service }}</span>
<span>{{ .price }}</span>
</li>
{{ end }}
</ul>
{{ end }}
</div>
</div>
</div>
{{ end }}
</div>
</section>
Is this possible (or something similar to accomplish the same thing) with Hugo?
Thank you for your time,
Kevin