render playlists pages
This commit is contained in:
parent
1c35e99ed2
commit
f0e8bafc4c
4 changed files with 242 additions and 0 deletions
37
themes/one-pager/layouts/playlists/list.html
Normal file
37
themes/one-pager/layouts/playlists/list.html
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{{ define "main" }}
|
||||
<section class="section playlists-list">
|
||||
<h1>Playlists</h1>
|
||||
<p class="section-description">Explore all my curated playlists from the Nostr network</p>
|
||||
|
||||
<div class="playlists-grid">
|
||||
{{ range .Pages }}
|
||||
{{ $name := .Title }}
|
||||
{{ $description := .Params.playlist_description | default "" }}
|
||||
{{ $image := .Params.playlist_image | default "" }}
|
||||
{{ $tracks := .Params.playlist_tracks | default slice }}
|
||||
|
||||
<div class="playlist-card">
|
||||
<a href="{{ .RelPermalink }}" class="playlist-link">
|
||||
{{ if $image }}
|
||||
<img src="{{ $image }}" alt="{{ $name }}" class="playlist-image" loading="lazy">
|
||||
{{ end }}
|
||||
|
||||
<div class="playlist-info">
|
||||
<h2>{{ $name }}</h2>
|
||||
{{ if $description }}
|
||||
<p class="playlist-description">{{ $description }}</p>
|
||||
{{ end }}
|
||||
{{ if $tracks }}
|
||||
<span class="playlist-track-count">{{ len $tracks }} tracks</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<div class="playlist-hover-overlay">
|
||||
<span class="playlist-view-btn">▶ View Playlist</span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue