2022-08-17 14:50:07 -04:00
|
|
|
|
2022-09-09 17:02:10 -04:00
|
|
|
<div class="section-heading">
|
2022-09-15 17:12:24 -04:00
|
|
|
<h1>Recent Content</h1>
|
2022-09-09 17:02:10 -04:00
|
|
|
</div>
|
2022-09-09 15:34:02 -04:00
|
|
|
{{range first 3 .Site.RegularPages}}
|
2022-08-22 20:03:48 -04:00
|
|
|
<section class="recent">
|
|
|
|
<a href="{{.Permalink}}">
|
2022-09-15 17:12:24 -04:00
|
|
|
{{ if .Params.video}}
|
|
|
|
<video controls preload="false">
|
2022-09-17 19:22:55 -04:00
|
|
|
<source src="{{.Site.BaseURL}}{{.Params.video}}">
|
2022-09-15 17:12:24 -04:00
|
|
|
</video>
|
|
|
|
{{else}}
|
|
|
|
{{if .Params.image}}
|
2022-09-17 19:22:55 -04:00
|
|
|
<a href="{{.Site.BaseURL}}{{.Permalink}}">
|
|
|
|
<img src="{{.Site.BaseURL}}{{.Params.image}}">
|
2022-09-15 17:12:24 -04:00
|
|
|
</a>
|
|
|
|
{{else}}
|
2022-09-17 19:22:55 -04:00
|
|
|
<a href="{{.Site.BaseURL}}{{.Permalink}}">
|
|
|
|
<img src="{{.Site.BaseURL}}/res/default.png">
|
2022-09-15 17:12:24 -04:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
2022-08-22 20:03:48 -04:00
|
|
|
</a>
|
|
|
|
<div>
|
|
|
|
<a href="{{.Permalink}}"><h2>{{.Title}}</h2></a>
|
|
|
|
<p>{{.Params.description}}</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{end}}
|
2022-09-09 15:34:02 -04:00
|
|
|
{{if .Site.Data.details.featured}}
|
2022-09-09 17:02:10 -04:00
|
|
|
<div class="section-heading">
|
|
|
|
<h2>Featured</h2>
|
|
|
|
</div>
|
2022-09-09 15:34:02 -04:00
|
|
|
{{ range .Site.Data.details.featured}}
|
|
|
|
<section class="featured">
|
|
|
|
<a href="{{.href}}">
|
|
|
|
<img src="{{.img}}">
|
|
|
|
</a>
|
|
|
|
<div>
|
|
|
|
<a href="{{.href}}">
|
|
|
|
<h3>{{.title}}</h3>
|
|
|
|
</a>
|
|
|
|
<p>{{.description}}</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|