freedom/layouts/partials/sidebar.html

40 lines
833 B
HTML
Raw Normal View History

2022-08-17 14:50:07 -04:00
2022-09-09 15:34:02 -04:00
2022-08-22 20:03:48 -04:00
<h2>Recent Content</h2>
2022-09-09 15:34:02 -04:00
{{range first 3 .Site.RegularPages}}
2022-08-17 14:50:07 -04:00
2022-08-22 20:03:48 -04:00
<section class="recent">
<a href="{{.Permalink}}">
2022-08-29 19:54:54 -04:00
{{if .Params.video}}
<video controls>
<source src="{{.Params.video}}">
</video>
{{else}}
2022-08-22 20:03:48 -04:00
<img src="{{.Params.image}}">
2022-08-29 19:54:54 -04:00
{{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
<hr>
{{if .Site.Data.details.featured}}
<h2>Featured</h2>
{{ 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}}