Added a links section

This commit is contained in:
Leon Mika 2024-03-16 10:09:48 +11:00
parent 0a0c5f9acf
commit b20a1e836a
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<div class="sidebar-item">
<header>
<h1>{{ .title }}</h1>
</header>
<ul class="blogroll">
{{ range .links }}
<li><a href="{{ .url }}">{{ .name }}: <span>{{ (urls.Parse .url).Hostname }}</span></a></li>
{{ end }}
</ul>
</div>

View file

@ -9,4 +9,6 @@
<p>This is some more stuff that goes here.</p>
</div>
</div>
{{ partial "sidebar-items/links.html" (dict "title" "Books" "links" (index .Site.Data.blogrolls "books-that-are-cool"))}}
</div>