yequari.com/layouts/index.html
2025-03-01 09:06:16 -07:00

66 lines
2.1 KiB
HTML

{{ define "main" }}
<div class="index-wrapper">
<div class="index-main">
<div class="box index-content">
{{ .Content }}
</div>
<div>
<h1>Latest Posts</h1>
{{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
{{ .Summary }}
{{ end }}
</div>
</div>
<div class="index-sidebar">
<div>
<h3>Site Updates</h3>
<ul>
{{ range first 3 .Site.Data.siteupdates }}
<li><strong>{{ .date }}</strong>: {{ .text }}</li>
{{ end }}
</ul>
</div>
<div>
<h3>What I'm Up To</h3>
<ul>
{{ range .Site.Data.now }}
<li>{{ . | markdownify }}</li>
{{ end }}
</ul>
<p>
<a href="/now">See More...</a>
</p>
</div>
<div>
<h3>Check Out These Links</h3>
<ul>
{{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "links") }}
<li><a href="{{ .Params.context.url }}" target="_blank">{{ .Params.context.title }}</a>
{{ end }}
</ul>
<p>
<a href="/links">See More...</a>
</p>
<div>
<h3>Transformers Collection</h3>
<h4>Recent Additions</h4>
<ul>
{{ range .Site.Data.transformers.recents }}
<li>{{ .line }} {{ .class }} <strong>{{ .name }}</strong></li>
{{ end }}
</ul>
<h4>Looking For</h4>
<ul>
{{ range .Site.Data.transformers.wants }}
<li>{{ .line }} {{ .class }} <strong>{{ .name }}</strong></li>
{{ end }}
</ul>
</div>
</div>
</div>
{{ end }}