make playlist more better
This commit is contained in:
parent
67f08a3670
commit
fdb107f099
9 changed files with 672 additions and 851 deletions
30
themes/one-pager/layouts/partials/nav-strip.html
Normal file
30
themes/one-pager/layouts/partials/nav-strip.html
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{{/* Small persistent navigation strip for sub-pages (playlist list, playlist single, etc.) */}}
|
||||
{{ $displayName := "" }}
|
||||
{{ $picture := "" }}
|
||||
|
||||
{{ range hugo.Data.profile }}
|
||||
{{ range . }}
|
||||
{{ range .tags }}
|
||||
{{ if eq (index . 0) "display_name" }}{{ $displayName = index . 1 }}{{ end }}
|
||||
{{ if eq (index . 0) "picture" }}{{ $picture = index . 1 }}{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if not $displayName }}
|
||||
{{ range hugo.Data.profile }}{{ range . }}{{ range .tags }}{{ if eq (index . 0) "name" }}{{ $displayName = index . 1 }}{{ end }}{{ end }}{{ end }}{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<nav class="nav-strip">
|
||||
<div class="nav-strip-inner">
|
||||
<a href="/" class="nav-strip-brand">
|
||||
{{ if $picture }}
|
||||
<img src="{{ $picture }}" alt="{{ $displayName }}" class="nav-strip-avatar">
|
||||
{{ end }}
|
||||
<span class="nav-strip-name">{{ $displayName | default "Home" }}</span>
|
||||
</a>
|
||||
<div class="nav-strip-links">
|
||||
<a href="/">🏠 Home</a>
|
||||
<a href="/playlists/">📀 Playlists</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
Loading…
Add table
Add a link
Reference in a new issue