Moved sidebar partials into a separate directoy

This commit is contained in:
Leon Mika 2024-03-17 09:05:34 +11:00
parent 1c22ec6571
commit 6cc83333f4
7 changed files with 9 additions and 44 deletions

View file

@ -0,0 +1,16 @@
<div class="sidebar-item">
<header>
<h1>Recommendations</h1>
</header>
<ul class="blogroll">
{{ range .Site.Data.blogrolls.recommendations }}
<li><a href="{{ .url }}">{{ .name }}: <span>{{ (urls.Parse .url).Hostname }}</span></a></li>
{{ else }}
<p>No recommendations yet.</p>
{{ end }}
</ul>
<div class="blogroll-footer-links">
<a href="{{ absURL ".well-known/recommendations.opml" }}">OPML</a>
<a href="{{ absURL ".well-known/recommendations.json" }}">JSON</a>
</div>
</div>