HiddenSounds/_includes/songlist.html
NorbiPeti 4024ebe455
Artist, stream pages, menu, index song listing
- Fixed song listing on artist pages
- Fixed artist page generation
- Sorted artist listing
- Added menu and moved displayed titles to the template
- Linking songs from artist pages
- Added a page for streams and collected the data for it manually
- Implemented Popular and Hidden Songs on the index page
- Bunch of fixes of URLs and such
2019-06-13 01:15:37 +02:00

19 lines
No EOL
816 B
HTML

<div class="song">
<p>
{%- assign isFirst = true -%}
{%- for artistName in song.artists -%}
{%- if isFirst == true -%}
{%- assign isFirst = false -%}
{%- else -%}
, {% comment %} Comma and space to separate artists {% endcomment %}
{%- endif -%}
{%- assign artist = site.data.artists | where: 'sname', artistName | first -%}
{%- if artist -%}
<a href="{{ artist.sname | datapage_url: 'artists' }}">{{ artist.sname }}</a>
{%- else -%}
{{ artistName }}
{%- endif -%}
{%- endfor -%}
{% comment %} Space needed {% endcomment %} - <a href="{{ site.baseurl }}/{{ song.sname | datapage_url: 'songs' }}">{{ song.sname }}</a>
</p>
</div>