This commit is contained in:
48
templates/index.html
Normal file
48
templates/index.html
Normal file
@ -0,0 +1,48 @@
|
||||
{% 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">
|
||||
<section class="filters">
|
||||
<form>
|
||||
<input type="search" placeholder="Hledat">
|
||||
<input type="reset" value="">
|
||||
</form>
|
||||
<div class="button" data-category="taborak">Táborák</div>
|
||||
<div class="button" data-category="other">Other</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) }}">
|
||||
<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>
|
5
templates/macros.html
Normal file
5
templates/macros.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% macro primary_category(song) %}
|
||||
{%- if song.taxonomies["album"] -%}
|
||||
{{ song.taxonomies["album"][0] }}
|
||||
{%- endif -%}
|
||||
{% endmacro %}
|
29
templates/song.html
Normal file
29
templates/song.html
Normal file
@ -0,0 +1,29 @@
|
||||
{% extends "index.html" %}
|
||||
{% block content %}
|
||||
<main class="song">
|
||||
{% for asset in page.assets %}
|
||||
{% if asset is matching(page.slug~"[.](html)$") %}
|
||||
<iframe class="song" src="{{ asset }}"></iframe>
|
||||
<nav class="controls hidden">
|
||||
<section class="font-size">
|
||||
<div class="button icon-subtract" id="font-size-decrease"></div>
|
||||
<div class="button icon-font-size" id="font-size-reset"></div>
|
||||
<div class="button icon-add" id="font-size-increase"></div>
|
||||
</section>
|
||||
<section class="transpose">
|
||||
<div class="button icon-subtract" id="transpose-decrease"></div>
|
||||
<div class="button icon-transpose" id="transpose-reset"></div>
|
||||
<div class="button icon-add" id="transpose-increase"></div>
|
||||
</section>
|
||||
<section class="autoscroll">
|
||||
<div class="button icon-scroll" id="autoscroll"></div>
|
||||
</section>
|
||||
</nav>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
||||
{% block script %}
|
||||
<script src="{{ get_url(path="/js/song-controls.js") }}"></script>
|
||||
{% endblock %}
|
0
templates/taxonomy_list.html
Normal file
0
templates/taxonomy_list.html
Normal file
0
templates/taxonomy_single.html
Normal file
0
templates/taxonomy_single.html
Normal file
Reference in New Issue
Block a user