-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SeriesPage (which I forgot to commit)
- Loading branch information
1 parent
15daf55
commit c911adc
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
} | ||
} |