minimal-music-project 0.0.5 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/404.html +11 -11
- data/LICENSE.txt +21 -21
- data/README.md +131 -74
- data/_config.yml +37 -38
- data/_data/customs.yml +2 -2
- data/_data/menu.yml +32 -32
- data/_data/metaData.yml +19 -6
- data/_includes/common-head.html +21 -21
- data/_includes/common.js +78 -0
- data/_includes/cookies.js +62 -28
- data/_includes/customizationsScripts.html +7 -0
- data/_includes/customizationsStyles.html +7 -0
- data/_includes/discography-entry-metadata.html +77 -80
- data/_includes/discography-entry.html +37 -24
- data/_includes/footer.html +9 -9
- data/_includes/menu.html +35 -30
- data/_includes/music-player.html +123 -122
- data/_includes/pagination-buttons.html +13 -13
- data/_includes/read-more.html +12 -11
- data/_layouts/cookies.html +29 -0
- data/_layouts/default.html +21 -17
- data/_layouts/discography.html +15 -15
- data/_layouts/post.html +34 -24
- data/_layouts/posts_feed.html +68 -55
- data/_sass/minimal-music-project.scss +1 -1
- data/_sass/styles/_cookies.scss +60 -52
- data/_sass/styles/_defaults.scss +165 -137
- data/_sass/styles/_discography.scss +41 -43
- data/_sass/styles/_embedded-player.scss +9 -0
- data/_sass/styles/_index.scss +10 -8
- data/_sass/styles/_layout.scss +49 -49
- data/_sass/styles/_menu.scss +161 -91
- data/_sass/styles/_modal.scss +23 -0
- data/_sass/styles/_music-player.scss +91 -91
- data/_sass/styles/_post.scss +94 -91
- data/_sass/styles/_posts_feed.scss +73 -58
- data/_sass/variables/_colors.scss +5 -4
- data/_sass/variables/_index.scss +2 -2
- data/_sass/variables/_layout.scss +27 -26
- data/_sass/variables/_mixins.scss +54 -46
- data/assets/img/300.png +0 -0
- data/assets/img/600.png +0 -0
- data/assets/img/browserconfig.xml +9 -9
- data/assets/img/safari-pinned-tab.svg +38 -38
- data/assets/img/site.webmanifest +19 -19
- data/assets/styles/styles.scss +7 -7
- data/pages/about.html +65 -36
- data/pages/cookies.html +9 -0
- data/pages/privacyPolicy.html +10 -0
- metadata +13 -4
- data/_includes/customizations.html +0 -15
data/_includes/cookies.js
CHANGED
|
@@ -1,29 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
|
|
2
|
+
(function() {
|
|
3
|
+
const interactedWithCookiesBanner = "interacted_with_cookies_banner";
|
|
4
|
+
const storageType = localStorage;
|
|
5
|
+
const cookieContainerId = "cookieContainer";
|
|
6
|
+
|
|
7
|
+
acceptAllCookieConsent = () => {
|
|
8
|
+
{% for consent in site.data.metaData.cookies.consent %}
|
|
9
|
+
eval("storageType.setItem('{{consent.cookieName}}', true);");
|
|
10
|
+
{% endfor %}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
window.cookiesAcceptDefaultFn = () => {
|
|
14
|
+
const cookieContainer = document.getElementById(cookieContainerId);
|
|
15
|
+
cookieContainer.classList.add("hidden");
|
|
16
|
+
window.setTimeout(cookieContainer.remove.bind(cookieContainer), 1000);
|
|
17
|
+
storageType.setItem(interactedWithCookiesBanner, true);
|
|
18
|
+
acceptAllCookieConsent();
|
|
19
|
+
}
|
|
20
|
+
window.cookiesDisagreeDefaultFn = () => {
|
|
21
|
+
const cookieContainer = document.getElementById(cookieContainerId);
|
|
22
|
+
cookieContainer.classList.add("hidden");
|
|
23
|
+
window.setTimeout(cookieContainer.remove.bind(cookieContainer), 1000);
|
|
24
|
+
storageType.setItem(interactedWithCookiesBanner, true);
|
|
25
|
+
window.location = "cookies";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
window.addEventListener("load", () => {
|
|
29
|
+
if(storageType.getItem(interactedWithCookiesBanner) === "true" || window.location.href.indexOf("cookies") !== -1) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const cookieContainer = document.createElement("div");
|
|
33
|
+
cookieContainer.setAttribute("id", cookieContainerId);
|
|
34
|
+
cookieContainer.classList.add("hidden");
|
|
35
|
+
|
|
36
|
+
const cookieHeader = document.createElement("h2");
|
|
37
|
+
const cookieHeaderContent = document.createTextNode("{{ site.data.metaData.cookies.header }}");
|
|
38
|
+
|
|
39
|
+
const cookieParagraph = document.createElement("p");
|
|
40
|
+
const cookieParagraphContent = document.createTextNode("{{ site.data.metaData.cookies.message }}");
|
|
41
|
+
|
|
42
|
+
const cookieButtonsContainer = document.createElement("div");
|
|
43
|
+
cookieButtonsContainer.classList.add("cookie-container--buttons");
|
|
44
|
+
|
|
45
|
+
const cookieAgreeButton = document.createElement("button");
|
|
46
|
+
const cookieButtonContent = document.createTextNode("{{ site.data.metaData.cookies.agreeButtonText }}");
|
|
47
|
+
cookieAgreeButton.appendChild(cookieButtonContent);
|
|
48
|
+
eval("cookieAgreeButton.onclick = {{ site.data.metaData.cookies.agreeButtonFnName }};");
|
|
49
|
+
|
|
50
|
+
const cookieButtonDisagree = document.createElement("button");
|
|
51
|
+
const cookieButtonDisagreeContent = document.createTextNode("{{ site.data.metaData.cookies.disagreeButtonText }}");
|
|
52
|
+
cookieButtonDisagree.append(cookieButtonDisagreeContent);
|
|
53
|
+
eval("cookieButtonDisagree.onclick = {{ site.data.metaData.cookies.disagreeButtonFnName }};");
|
|
54
|
+
|
|
55
|
+
cookieHeader.append(cookieHeaderContent);
|
|
56
|
+
cookieParagraph.append(cookieParagraphContent);
|
|
57
|
+
cookieButtonsContainer.append(cookieAgreeButton, cookieButtonDisagree)
|
|
58
|
+
cookieContainer.append(cookieHeader, cookieParagraph, cookieButtonsContainer);
|
|
59
|
+
cookieContainer.classList.add("cookie-container")
|
|
60
|
+
document.body.appendChild(cookieContainer);
|
|
61
|
+
window.setTimeout(() => cookieContainer.classList.remove("hidden"));
|
|
62
|
+
});
|
|
29
63
|
})();
|
|
@@ -1,80 +1,77 @@
|
|
|
1
|
-
<p class="discography-album_release-date">
|
|
2
|
-
release date: {{ include.currPost.date | date_to_long_string }}
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
{% if include.currPost.type %}
|
|
6
|
-
<p class="discography-album_type">
|
|
7
|
-
release type: {{ include.currPost.type }}
|
|
8
|
-
</p>
|
|
9
|
-
{% endif %}
|
|
10
|
-
|
|
11
|
-
{% assign playArray = include.currPost.play | size %}
|
|
12
|
-
{% if playArray != 0 %}
|
|
13
|
-
<p class="discography-album_play">
|
|
14
|
-
play:
|
|
15
|
-
{% for play in include.currPost.play %}
|
|
16
|
-
<a href="{{ play.url }}" target="_blank">{{ play.name }}</a>
|
|
17
|
-
{% if forloop.last == false %}
|
|
18
|
-
|
|
|
19
|
-
{% endif %}
|
|
20
|
-
{% endfor %}
|
|
21
|
-
</p>
|
|
22
|
-
{% endif %}
|
|
23
|
-
|
|
24
|
-
{% assign downloadArray = include.currPost.download | size %}
|
|
25
|
-
{% if downloadArray != 0 %}
|
|
26
|
-
<p class="discography-album_download">
|
|
27
|
-
download:
|
|
28
|
-
{% for download in include.currPost.download %}
|
|
29
|
-
<a href="{{ download.url }}" target="_blank">{{ download.name }}</a>
|
|
30
|
-
{% if forloop.last == false %}
|
|
31
|
-
|
|
|
32
|
-
{% endif %}
|
|
33
|
-
{% endfor %}
|
|
34
|
-
</p>
|
|
35
|
-
{% endif %}
|
|
36
|
-
|
|
37
|
-
{% assign buyArray = include.currPost.buy | size %}
|
|
38
|
-
{% if buyArray != 0 %}
|
|
39
|
-
<p class="discography-album_buy">
|
|
40
|
-
buy from:
|
|
41
|
-
{% for buy in include.currPost.buy %}
|
|
42
|
-
<a href="{{ buy.url }}" target="_blank">{{ buy.name }}</a>
|
|
43
|
-
{% if forloop.last == false %}
|
|
44
|
-
|
|
|
45
|
-
{% endif %}
|
|
46
|
-
{% endfor %}
|
|
47
|
-
</p>
|
|
48
|
-
{% endif %}
|
|
49
|
-
|
|
50
|
-
{% assign otherArray = include.currPost.other | size %}
|
|
51
|
-
{% if otherArray != 0 %}
|
|
52
|
-
<p class="discography-album_other">
|
|
53
|
-
other links:
|
|
54
|
-
{% for other in include.currPost.other %}
|
|
55
|
-
<a href="{{ other.url }}" target="_blank">{{ other.name }}</a>
|
|
56
|
-
{% if forloop.last == false %}
|
|
57
|
-
|
|
|
58
|
-
{% endif %}
|
|
59
|
-
{% endfor %}
|
|
60
|
-
</p>
|
|
61
|
-
{% endif %}
|
|
62
|
-
|
|
63
|
-
{%
|
|
64
|
-
{%
|
|
65
|
-
{%
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{%
|
|
77
|
-
|
|
78
|
-
src="{{ include.currPost.play_bandcamp_embed.src }}" seamless>
|
|
79
|
-
<a href="{{ include.currPost.play_bandcamp_embed.href }}">{{ include.currPost.play_bandcamp_embed.title }}</a></iframe>
|
|
80
|
-
{% endif %}
|
|
1
|
+
<p class="discography-album_release-date">
|
|
2
|
+
release date: {{ include.currPost.date | date_to_long_string }}
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
{% if include.currPost.type %}
|
|
6
|
+
<p class="discography-album_type">
|
|
7
|
+
release type: {{ include.currPost.type }}
|
|
8
|
+
</p>
|
|
9
|
+
{% endif %}
|
|
10
|
+
|
|
11
|
+
{% assign playArray = include.currPost.play | size %}
|
|
12
|
+
{% if playArray != 0 %}
|
|
13
|
+
<p class="discography-album_play">
|
|
14
|
+
play:
|
|
15
|
+
{% for play in include.currPost.play %}
|
|
16
|
+
<a href="{{ play.url }}" target="_blank">{{ play.name }}</a>
|
|
17
|
+
{% if forloop.last == false %}
|
|
18
|
+
|
|
|
19
|
+
{% endif %}
|
|
20
|
+
{% endfor %}
|
|
21
|
+
</p>
|
|
22
|
+
{% endif %}
|
|
23
|
+
|
|
24
|
+
{% assign downloadArray = include.currPost.download | size %}
|
|
25
|
+
{% if downloadArray != 0 %}
|
|
26
|
+
<p class="discography-album_download">
|
|
27
|
+
download:
|
|
28
|
+
{% for download in include.currPost.download %}
|
|
29
|
+
<a href="{{ download.url }}" target="_blank">{{ download.name }}</a>
|
|
30
|
+
{% if forloop.last == false %}
|
|
31
|
+
|
|
|
32
|
+
{% endif %}
|
|
33
|
+
{% endfor %}
|
|
34
|
+
</p>
|
|
35
|
+
{% endif %}
|
|
36
|
+
|
|
37
|
+
{% assign buyArray = include.currPost.buy | size %}
|
|
38
|
+
{% if buyArray != 0 %}
|
|
39
|
+
<p class="discography-album_buy">
|
|
40
|
+
buy from:
|
|
41
|
+
{% for buy in include.currPost.buy %}
|
|
42
|
+
<a href="{{ buy.url }}" target="_blank">{{ buy.name }}</a>
|
|
43
|
+
{% if forloop.last == false %}
|
|
44
|
+
|
|
|
45
|
+
{% endif %}
|
|
46
|
+
{% endfor %}
|
|
47
|
+
</p>
|
|
48
|
+
{% endif %}
|
|
49
|
+
|
|
50
|
+
{% assign otherArray = include.currPost.other | size %}
|
|
51
|
+
{% if otherArray != 0 %}
|
|
52
|
+
<p class="discography-album_other">
|
|
53
|
+
other links:
|
|
54
|
+
{% for other in include.currPost.other %}
|
|
55
|
+
<a href="{{ other.url }}" target="_blank">{{ other.name }}</a>
|
|
56
|
+
{% if forloop.last == false %}
|
|
57
|
+
|
|
|
58
|
+
{% endif %}
|
|
59
|
+
{% endfor %}
|
|
60
|
+
</p>
|
|
61
|
+
{% endif %}
|
|
62
|
+
|
|
63
|
+
{% if include.currPost.embed_player %}
|
|
64
|
+
{% if include.currPost.embed_player.type == "audio_file" %}
|
|
65
|
+
{% include music-player.html audioData=include.currPost.embed_player %}
|
|
66
|
+
{% else %}
|
|
67
|
+
<iframe
|
|
68
|
+
class="embedded-player hidden"
|
|
69
|
+
givenSrc="{{include.currPost.embed_player.src}}"
|
|
70
|
+
type="{{include.currPost.embed_player.type}}"
|
|
71
|
+
allow="encrypted-media; picture-in-picture"
|
|
72
|
+
height="80"
|
|
73
|
+
frameborder="0"
|
|
74
|
+
scrolling="no">
|
|
75
|
+
</iframe>
|
|
76
|
+
{% endif %}
|
|
77
|
+
{% endif %}
|
|
@@ -1,25 +1,38 @@
|
|
|
1
|
-
<article class="discography-album">
|
|
2
|
-
<header>
|
|
3
|
-
<figure class="discography-album_cover-wrapper">
|
|
4
|
-
<div class="discography-album_cover">
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
<article class="discography-album">
|
|
2
|
+
<header>
|
|
3
|
+
<figure class="discography-album_cover-wrapper">
|
|
4
|
+
<div class="discography-album_cover">
|
|
5
|
+
<div class="click-to-enlarge">
|
|
6
|
+
<img
|
|
7
|
+
click-to-enlarge
|
|
8
|
+
{% if include.currPost.image_alt %}
|
|
9
|
+
alt="{{ include.currPost.image_alt }}"
|
|
10
|
+
{% endif %}
|
|
11
|
+
class="include.currPost-feed_image"
|
|
12
|
+
src="{{ include.currPost.image | relative_url }}"
|
|
13
|
+
{% if include.currPost.responsiveImage %}
|
|
14
|
+
srcset="{% for img in include.currPost.responsiveImage %}{{ img.src | relative_url }} {{ img.size }}w{% if forloop.last == false %},{% endif %}{% endfor %}"
|
|
15
|
+
sizes="30vw"
|
|
16
|
+
{% endif %}
|
|
17
|
+
/>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</figure>
|
|
21
|
+
</header>
|
|
22
|
+
<section>
|
|
23
|
+
{% if include.currPost.external_url %}
|
|
24
|
+
<a href="{{ include.currPost.external_url | relative_url }}" target="_blank">
|
|
25
|
+
{% else %}
|
|
26
|
+
<a href="{{ include.currPost.url | relative_url }}">
|
|
27
|
+
{% endif %}
|
|
28
|
+
<h2 class="discography-album_title">
|
|
29
|
+
{{ include.currPost.title }}
|
|
30
|
+
</h2>
|
|
31
|
+
</a>
|
|
32
|
+
<p class="discography-album_summary">
|
|
33
|
+
{{ include.currPost.description }}
|
|
34
|
+
</p>
|
|
35
|
+
{% include discography-entry-metadata.html currPost=include.currPost %}
|
|
36
|
+
</section>
|
|
37
|
+
{% include read-more.html currPost=include.currPost %}
|
|
25
38
|
</article>
|
data/_includes/footer.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
window.addEventListener("load", () => {
|
|
3
|
-
document.getElementsByClassName("copyrights")[0].innerHTML =
|
|
4
|
-
`Copyrights © ${new Date().getFullYear()} {{ site.data.metaData.author }}`;
|
|
5
|
-
});
|
|
6
|
-
</script>
|
|
7
|
-
<footer>
|
|
8
|
-
<p class="copyrights">
|
|
9
|
-
</p>
|
|
1
|
+
<script>
|
|
2
|
+
window.addEventListener("load", () => {
|
|
3
|
+
document.getElementsByClassName("copyrights")[0].innerHTML =
|
|
4
|
+
`Copyrights © ${new Date().getFullYear()} {{ site.data.metaData.author }}`;
|
|
5
|
+
});
|
|
6
|
+
</script>
|
|
7
|
+
<footer>
|
|
8
|
+
<p class="copyrights">
|
|
9
|
+
</p>
|
|
10
10
|
</footer>
|
data/_includes/menu.html
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
<aside class="menu">
|
|
2
|
-
<div class="menu-top">
|
|
3
|
-
<div class="menu-top_logo">
|
|
4
|
-
<a href="{{ '/' | relative_url }}" >
|
|
5
|
-
<img src="{{ site.data.metaData.logo | relative_url }}" alt="Logo" onerror="this.style.display='none'">
|
|
6
|
-
</a>
|
|
7
|
-
</div>
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{%
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
<aside class="menu">
|
|
2
|
+
<div class="menu-top">
|
|
3
|
+
<div class="menu-top_logo">
|
|
4
|
+
<a href="{{ '/' | relative_url }}" >
|
|
5
|
+
<img src="{{ site.data.metaData.logo | relative_url }}" alt="Logo" onerror="this.style.display='none'">
|
|
6
|
+
</a>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="menu-top_expand" onclick="toggleExpander(this)">
|
|
9
|
+
<div class="bar_top"></div>
|
|
10
|
+
<div class="bar_middle"></div>
|
|
11
|
+
<div class="bar_bottom"></div>
|
|
12
|
+
</div>
|
|
13
|
+
<ul class="navigation">
|
|
14
|
+
{% for menu_item in site.data.menu.menu_pages %}
|
|
15
|
+
<li>
|
|
16
|
+
<a href="{{ menu_item.url | relative_url }}" category="{{ menu_item.category }}" title="{{ menu_item.tooltip }}"
|
|
17
|
+
{% if menu_item.category == page.category or page.categories contains menu_item.category %}
|
|
18
|
+
class="selected"
|
|
19
|
+
{% endif %}
|
|
20
|
+
>
|
|
21
|
+
<span>{{ menu_item.title }}</span>
|
|
22
|
+
</a>
|
|
23
|
+
</li>
|
|
24
|
+
{% endfor %}
|
|
25
|
+
</ul>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="menu-contact">
|
|
28
|
+
{% for contact in site.data.menu.menu_contacts %}
|
|
29
|
+
|
|
30
|
+
<a href="{{ contact.url | relative_url }}" target="{{ contact.target }}">
|
|
31
|
+
<i class="{{ contact.faicon }}"></i>
|
|
32
|
+
</a>
|
|
33
|
+
{% endfor %}
|
|
34
|
+
</div>
|
|
35
|
+
</aside>
|