Track local files
This commit is contained in:
6
templates/files.html
Normal file
6
templates/files.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% extends "index.html" %}
|
||||
{% block content %}
|
||||
<main>
|
||||
files here
|
||||
</main>
|
||||
{% endblock %}
|
||||
81
templates/index.html
Normal file
81
templates/index.html
Normal file
@@ -0,0 +1,81 @@
|
||||
{% 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.extra.archive %}
|
||||
<section class="nav">
|
||||
<a href="{{ get_url(path="@/_index.md") }}" class="button wide">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22.0003 12.9999L22.0004 11L8.41421 11V5.58582L2 12L8.41421 18.4142L8.41421 13L22.0003 12.9999Z"></path></svg>
|
||||
Back From Archive
|
||||
</a>
|
||||
</section>
|
||||
{% 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>
|
||||
<a href="{{ config.extra.git_repository }}" target="_blank" class="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7.10508 15.2101C8.21506 15.6501 9 16.7334 9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.6938 3.83481 15.5825 5 15.1707V8.82929C3.83481 8.41746 3 7.30622 3 6C3 4.34315 4.34315 3 6 3C7.65685 3 9 4.34315 9 6C9 7.30622 8.16519 8.41746 7 8.82929V11.9996C7.83566 11.3719 8.87439 11 10 11H14C15.3835 11 16.5482 10.0635 16.8949 8.78991C15.7849 8.34988 15 7.26661 15 6C15 4.34315 16.3431 3 18 3C19.6569 3 21 4.34315 21 6C21 7.3332 20.1303 8.46329 18.9274 8.85392C18.5222 11.2085 16.4703 13 14 13H10C8.61653 13 7.45179 13.9365 7.10508 15.2101ZM6 17C5.44772 17 5 17.4477 5 18C5 18.5523 5.44772 19 6 19C6.55228 19 7 18.5523 7 18C7 17.4477 6.55228 17 6 17ZM6 5C5.44772 5 5 5.44772 5 6C5 6.55228 5.44772 7 6 7C6.55228 7 7 6.55228 7 6C7 5.44772 6.55228 5 6 5ZM18 5C17.4477 5 17 5.44772 17 6C17 6.55228 17.4477 7 18 7C18.5523 7 19 6.55228 19 6C19 5.44772 18.5523 5 18 5Z"></path></svg>
|
||||
Source Code
|
||||
</a>
|
||||
<div class="button">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"></path></svg>
|
||||
About
|
||||
</div>
|
||||
</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>
|
||||
5
templates/macros.html
Normal file
5
templates/macros.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% macro primary_category(song) %}
|
||||
{%- if song.taxonomies["category"] -%}
|
||||
{{ song.taxonomies["category"][0] }}
|
||||
{%- endif -%}
|
||||
{% endmacro %}
|
||||
32
templates/song.html
Normal file
32
templates/song.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% 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-subtract" id="autoscroll-decrease"></div>
|
||||
<div class="button icon-scroll" id="autoscroll"></div>
|
||||
<div class="button icon-add" id="autoscroll-increase"></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