Skip to content

Commit

Permalink
Add SeriesPage (which I forgot to commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuswhybrow committed Apr 29, 2024
1 parent 15daf55 commit c911adc
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions internal/catalog/series.templ
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package catalog

import "github.com/marcuswhybrow/ray-peat-rodeo/internal/global"

templ SeriesPage(series string, assets []*Asset) {
@global.Base(series) {
<div class="max-w-2xl mx-auto mb-32">
<h1 class="mb-4 mt-16 text-3xl text-center">{ series }</h1>
<ul class="text-center">
for _, asset := range assets {
<li>
<a
href={ templ.SafeURL(asset.UrlAbsPath) }
class="font-bold underline text-blue-500 text-lg mb-2 hover:text-blue-600"
>
{ asset.FrontMatter.Source.Title }
</a>
</li>
}
</ul>
</div>
}
}

0 comments on commit c911adc

Please sign in to comment.