NorbiPeti
4024ebe455
- 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
19 lines
No EOL
816 B
HTML
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> |