updated schema to support album tracks
Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
parent
63221e9fd2
commit
749f9bc8b7
10 changed files with 324 additions and 806 deletions
|
@ -1,17 +1,17 @@
|
|||
{{define "head"}}
|
||||
<title>{{.PrintPrimaryArtists}} - {{.Title}}</title>
|
||||
<title>{{.PrintPrimaryArtists false}} - {{.Title}}</title>
|
||||
<link rel="icon" href="{{.ResolveArtwork}}">
|
||||
|
||||
<meta name="description" content="Stream "{{.Title}}" by {{.PrintPrimaryArtists}} on all platforms!">
|
||||
<meta name="author" content="{{.PrintPrimaryArtists}}">
|
||||
<meta name="keywords" content="{{.PrintCommaPrimaryArtists}}, music, {{.Title}}, {{.Id}}, {{.GetReleaseYear}}">
|
||||
<meta name="description" content="Stream "{{.Title}}" by {{.PrintPrimaryArtists false}} on all platforms!">
|
||||
<meta name="author" content="{{.PrintPrimaryArtists false}}">
|
||||
<meta name="keywords" content="{{.PrintCommaPrimaryArtists false}}, music, {{.Title}}, {{.Id}}, {{.GetReleaseYear}}">
|
||||
|
||||
<meta property="og:url" content="https://arimelody.me/music/{{.Id}}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:locale" content="en_IE">
|
||||
<meta property="og:site_name" content="ari melody music">
|
||||
<meta property="og.Title" content="{{.PrintPrimaryArtists}} - {{.Title}}">
|
||||
<meta property="og:description" content="Stream "{{.Title}}" by {{.PrintPrimaryArtists}} on all platforms!">
|
||||
<meta property="og.Title" content="{{.PrintPrimaryArtists false}} - {{.Title}}">
|
||||
<meta property="og:description" content="Stream "{{.Title}}" by {{.PrintPrimaryArtists false}} on all platforms!">
|
||||
<meta property="og:image" content="https://arimelody.me{{.ResolveArtwork}}">
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
|
@ -19,7 +19,7 @@
|
|||
<meta name="twitter:creator" content="@funniduck">
|
||||
<meta property="twitter:domain" content="arimelody.me">
|
||||
<meta property="twitter:url" content="https://arimelody.me/music/{{.Id}}">
|
||||
<meta name="twitter.Title" content="{{.PrintPrimaryArtists}} - {{.Title}}">
|
||||
<meta name="twitter.Title" content="{{.PrintPrimaryArtists false}} - {{.Title}}">
|
||||
<meta name="twitter:description" content="Stream "{{.Title}}" by mellodoot on all platforms!">
|
||||
<meta name="twitter:image" content="https://arimelody.me{{.ResolveArtwork}}">
|
||||
<meta name="twitter:image:alt" content="Cover art for "{{.Title}}"">
|
||||
|
@ -54,7 +54,7 @@
|
|||
<h1 id="title">{{.Title}}</h1>
|
||||
<span id="year" title="{{.PrintReleaseDate}}">{{.GetReleaseYear}}</span>
|
||||
</div>
|
||||
<p id="artist">{{.PrintPrimaryArtists}}</p>
|
||||
<p id="artist">{{.PrintPrimaryArtists false}}</p>
|
||||
<p id="type" class="{{.ResolveType}}">{{.ResolveType}}</p>
|
||||
|
||||
<ul id="links">
|
||||
|
@ -96,15 +96,27 @@
|
|||
</div>
|
||||
{{end}}
|
||||
|
||||
<!-- {{if .Lyrics}} -->
|
||||
<!-- <div id="lyrics"> -->
|
||||
<!-- <h2>lyrics:</h2> -->
|
||||
<!-- <p>{{.Lyrics}}</p> -->
|
||||
<!-- </div> -->
|
||||
<!-- {{end}} -->
|
||||
{{if .IsSingle}}
|
||||
{{$Track := index .Tracks 0}}
|
||||
{{if $Track.Lyrics}}
|
||||
<div id="lyrics">
|
||||
<h2>lyrics:</h2>
|
||||
<p>{{$Track.Lyrics}}</p>
|
||||
</div>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<div id="tracks">
|
||||
<h2>tracks:</h2>
|
||||
<ul>
|
||||
{{range .Tracks}}
|
||||
<li>{{.Title}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
||||
{{if or .Credits .Lyrics}}
|
||||
{{if or .Credits not .IsSingle}}
|
||||
<div id="extras">
|
||||
<ul>
|
||||
<li><a href="#overview">overview</a></li>
|
||||
|
@ -113,9 +125,14 @@
|
|||
<li><a href="#credits">credits</a></li>
|
||||
{{end}}
|
||||
|
||||
<!-- {{if .Lyrics}} -->
|
||||
<!-- <li><a href="#lyrics">lyrics</a></li> -->
|
||||
<!-- {{end}} -->
|
||||
{{if .IsSingle}}
|
||||
{{$Track := index .Tracks 0}}
|
||||
{{if $Track.Lyrics}}
|
||||
<li><a href="#lyrics">lyrics</a></li>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<li><a href="#tracks">tracks</a></li>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue