consistency and look

This commit is contained in:
Gabriel 2023-07-14 08:17:13 -04:00
parent 0982f4361d
commit 07e4d56f7e
2 changed files with 9 additions and 9 deletions

View file

@ -1,9 +1,9 @@
<a href="{{ .Get 0 }}" class="link-preview">
{{if .Get 3}}
<img src='{{.Get 3}}'>
{{end}}
<div>
<h3>{{ .Get 1 }}</h3>
<p>{{.Get 2 }}</p>
<section class="listing" {{if .Get 3}} style="background-image:url({{.Site.BaseURL}}{{.Get 3}}" {{end}}>
<div class="listing-text">
<a href="{{.Get 0}}" ><h2>{{.Get 1}}</h2><i>{{.Get 2}}</i></a>
<span></span>
</div>
</a>
</section>

View file

@ -1,7 +1,7 @@
<div class="gallery">
{{ $tag := .Get 0 }}
{{range .Site.RegularPages.RelatedTo (keyVals "tags" $tag) }}
{{range first 5 ( .Site.RegularPages.RelatedTo (keyVals "tags" $tag))}}
{{partial "item" .}}
{{end}}
</div>