69 lines
2.7 KiB
HTML
69 lines
2.7 KiB
HTML
{% import "macros.html" as macros %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}{{ config.title }}{% endblock %}</title>
|
|
<link rel="stylesheet" href="{{ get_url(path="/style.css") }}">
|
|
<link rel="icon" type="image/png" href="{{ get_url(path="/favicon.png") }}">
|
|
</head>
|
|
<body>
|
|
{% block content %}
|
|
<main class="songs">
|
|
{% if section.title and section.extra.archive %}
|
|
<h1>{{ section.title }}</h1>
|
|
{% else %}
|
|
<section class="nav">
|
|
<a href="{{ get_url(path="@/archive/_index.md") }}" class="button">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 10H2V4.00293C2 3.44903 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.43788 22 4.00293V10H21V20.0015C21 20.553 20.5551 21 20.0066 21H3.9934C3.44476 21 3 20.5525 3 20.0015V10ZM19 10H5V19H19V10ZM4 5V8H20V5H4ZM9 12H15V14H9V12Z"></path></svg>
|
|
Archive
|
|
</a>
|
|
<a href="{{ get_url(path="/songbook.pdf") }}" target="_blank" class="button">
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 18.5V5C3 3.34315 4.34315 2 6 2H20C20.5523 2 21 2.44772 21 3V21C21 21.5523 20.5523 22 20 22H6.5C4.567 22 3 20.433 3 18.5ZM19 20V17H6.5C5.67157 17 5 17.6716 5 18.5C5 19.3284 5.67157 20 6.5 20H19ZM5 15.3368C5.45463 15.1208 5.9632 15 6.5 15H19V4H6C5.44772 4 5 4.44772 5 5V15.3368Z"></path></svg>
|
|
Songbook
|
|
</a>
|
|
</section>
|
|
{% endif %}
|
|
<section class="filters">
|
|
<form>
|
|
<input type="search" placeholder="Hledat">
|
|
<input type="reset" value="">
|
|
</form>
|
|
<div class="button" data-category="classic">Classic</div>
|
|
<div class="button" data-category="mixtape">Mixtape</div>
|
|
</section>
|
|
<section class="song-list">
|
|
{% for song in section.pages %}
|
|
<div class="{{ macros::primary_category(song=song) }}"
|
|
data-title="{{ song.title }}"
|
|
data-category="{{ macros::primary_category(song=song) }}"
|
|
{% if song.taxonomies["artist"] %}
|
|
data-artist="{{ song.taxonomies["artist"][0] }}"
|
|
{% endif %}
|
|
>
|
|
<div class="meta">
|
|
<div class="title">{{ song.title }}</div>
|
|
{% if song.taxonomies["artist"] %}
|
|
<div class="artist">{{ song.taxonomies["artist"][0] }}</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="links">
|
|
<a href="{{ song.permalink }}" class="html"></a>
|
|
{% for asset in song.assets %}
|
|
{% if asset is matching(song.slug~"[.](pdf)$") %}
|
|
<a href="{{ asset }}" class="pdf"></a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</section>
|
|
</main>
|
|
{% endblock %}
|
|
{% block script %}
|
|
<script src="{{ get_url(path="/js/filter.js") }}"></script>
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|