minimal-music-project 0.1.2 → 0.1.5
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 +142 -133
- data/_config.yml +38 -38
- data/_data/customs.yml +2 -2
- data/_data/menu.yml +32 -32
- data/_data/metaData.yml +20 -20
- data/_includes/common-head.html +22 -22
- data/_includes/common.js +95 -95
- data/_includes/cookies.js +63 -63
- data/_includes/customizationsScripts.html +6 -6
- data/_includes/customizationsStyles.html +6 -6
- data/_includes/discography-entry-metadata.html +77 -77
- data/_includes/discography-entry.html +41 -37
- data/_includes/footer.html +9 -9
- data/_includes/menu.html +35 -35
- data/_includes/music-player.html +123 -123
- data/_includes/pagination-buttons.html +13 -13
- data/_includes/read-more.html +12 -12
- data/_layouts/cookies.html +29 -28
- data/_layouts/default.html +21 -21
- data/_layouts/discography.html +15 -15
- data/_layouts/post.html +34 -34
- data/_layouts/posts_feed.html +72 -68
- data/_sass/minimal-music-project.scss +1 -1
- data/_sass/styles/_cookies.scss +60 -60
- data/_sass/styles/_defaults.scss +164 -164
- data/_sass/styles/_discography.scss +74 -45
- data/_sass/styles/_embedded-player.scss +8 -8
- data/_sass/styles/_index.scss +9 -9
- data/_sass/styles/_layout.scss +49 -49
- data/_sass/styles/_menu.scss +177 -176
- data/_sass/styles/_modal.scss +29 -29
- data/_sass/styles/_music-player.scss +91 -91
- data/_sass/styles/_post.scss +94 -94
- data/_sass/styles/_posts_feed.scss +73 -73
- data/_sass/variables/_colors.scss +4 -4
- data/_sass/variables/_index.scss +2 -2
- data/_sass/variables/_layout.scss +27 -27
- data/_sass/variables/_mixins.scss +54 -54
- 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 -65
- data/pages/cookies.html +9 -9
- data/pages/privacyPolicy.html +9 -9
- metadata +4 -4
data/_includes/common.js
CHANGED
@@ -1,96 +1,96 @@
|
|
1
|
-
(function () {
|
2
|
-
window.toggleExpander = function toggleExpander(x) {
|
3
|
-
const menu = document.getElementsByClassName("menu")[0];
|
4
|
-
const navigation = document.getElementsByClassName("navigation")[0];
|
5
|
-
if (menu.classList.contains('expanded--visible')) {
|
6
|
-
menu.classList.toggle('expanded--visible');
|
7
|
-
navigation.addEventListener('transitionend', function(e) {
|
8
|
-
menu.classList.toggle("expanded");
|
9
|
-
}, {
|
10
|
-
capture: false,
|
11
|
-
once: true,
|
12
|
-
passive: false
|
13
|
-
});
|
14
|
-
} else {
|
15
|
-
menu.classList.toggle("expanded");
|
16
|
-
setTimeout(() => menu.classList.toggle('expanded--visible'), 20);
|
17
|
-
}
|
18
|
-
};
|
19
|
-
window.addEventListener("load", () => {
|
20
|
-
// #region click to enlarge images
|
21
|
-
const imageWrappers = document.querySelectorAll(".click-to-enlarge");
|
22
|
-
imageWrappers.forEach(imageWrapper => {
|
23
|
-
{% if site.data.metaData.clickToEnlargeImages %}
|
24
|
-
imageWrapper.addEventListener("click", () => {
|
25
|
-
const img = imageWrapper.getElementsByTagName("img")[0];
|
26
|
-
const src = img.attributes.getNamedItem("src");
|
27
|
-
const modal = document.createElement("div");
|
28
|
-
const removeModal = function() {
|
29
|
-
modal.classList.add("hidden");
|
30
|
-
setTimeout(() => {
|
31
|
-
document.body.removeChild(modal);
|
32
|
-
}, 200);
|
33
|
-
};
|
34
|
-
const newImage = document.createElement("img");
|
35
|
-
newImage.classList.add("modal__picture-zoomed--image");
|
36
|
-
newImage.setAttribute("src", src.value);
|
37
|
-
modal.classList.add("modal__picture-zoomed", "hidden");
|
38
|
-
// modal.style.backgroundImage = `URL("${src.value}")`;
|
39
|
-
modal.addEventListener("click", removeModal);
|
40
|
-
modal.append(newImage);
|
41
|
-
document.body.append(modal);
|
42
|
-
document.body.addEventListener("keyup", e => {
|
43
|
-
if (e.key === 'Escape') {
|
44
|
-
removeModal();
|
45
|
-
}
|
46
|
-
}, {once : true});
|
47
|
-
setTimeout(() => {
|
48
|
-
modal.classList.remove("hidden");
|
49
|
-
}, 0);
|
50
|
-
});
|
51
|
-
{% else %}
|
52
|
-
img.removeAttribute("click-to-enlarge");
|
53
|
-
{% endif %}
|
54
|
-
});
|
55
|
-
// #endregion click to enlarge images
|
56
|
-
// #region embedded audio players
|
57
|
-
const players = document.querySelectorAll("iframe.embedded-player");
|
58
|
-
const getParamsByPlayerType = (src, type) => {
|
59
|
-
const rt = (src, height) => ({
|
60
|
-
src: src,
|
61
|
-
height: height
|
62
|
-
});
|
63
|
-
switch (type.toLocaleLowerCase()) {
|
64
|
-
case "soundcloud":
|
65
|
-
return rt(`https://w.soundcloud.com/player/?url=${src}`, 125);
|
66
|
-
case "bandcamp":
|
67
|
-
return rt(`https://bandcamp.com/EmbeddedPlayer/${src}`, 125);
|
68
|
-
case "spotify":
|
69
|
-
return rt(`https://open.spotify.com/embed/track/${src}`, 80);
|
70
|
-
case "spotifyalbum":
|
71
|
-
return rt(`https://open.spotify.com/embed/album/${src}`, 80);
|
72
|
-
case "spotifyplaylist":
|
73
|
-
return rt(`https://open.spotify.com/embed/playlist/${src}`, 80);
|
74
|
-
case "spotifyepisode":
|
75
|
-
return rt(`https://open.spotify.com/embed/episode/${src}`, 152);
|
76
|
-
case "spotifyshow":
|
77
|
-
return rt(`https://open.spotify.com/embed/show/${src}`, 152);
|
78
|
-
case "youtube":
|
79
|
-
return rt(`https://www.youtube.com/embed/${src}`, 350);
|
80
|
-
case "anchor.fm":
|
81
|
-
return rt(`https://anchor.fm/sucias/embed/episodes/${src}`,102);
|
82
|
-
default:
|
83
|
-
return rt(src, 125);
|
84
|
-
}
|
85
|
-
};
|
86
|
-
players.forEach(player => {
|
87
|
-
const givenSrc = player.getAttribute("givenSrc");
|
88
|
-
const type = player.getAttribute("type");
|
89
|
-
const { src, height } = getParamsByPlayerType(givenSrc, type);
|
90
|
-
player.setAttribute("src", src);
|
91
|
-
player.setAttribute("height", height);
|
92
|
-
player.classList.remove("hidden");
|
93
|
-
});
|
94
|
-
// #endregion embedded audio players
|
95
|
-
});
|
1
|
+
(function () {
|
2
|
+
window.toggleExpander = function toggleExpander(x) {
|
3
|
+
const menu = document.getElementsByClassName("menu")[0];
|
4
|
+
const navigation = document.getElementsByClassName("navigation")[0];
|
5
|
+
if (menu.classList.contains('expanded--visible')) {
|
6
|
+
menu.classList.toggle('expanded--visible');
|
7
|
+
navigation.addEventListener('transitionend', function(e) {
|
8
|
+
menu.classList.toggle("expanded");
|
9
|
+
}, {
|
10
|
+
capture: false,
|
11
|
+
once: true,
|
12
|
+
passive: false
|
13
|
+
});
|
14
|
+
} else {
|
15
|
+
menu.classList.toggle("expanded");
|
16
|
+
setTimeout(() => menu.classList.toggle('expanded--visible'), 20);
|
17
|
+
}
|
18
|
+
};
|
19
|
+
window.addEventListener("load", () => {
|
20
|
+
// #region click to enlarge images
|
21
|
+
const imageWrappers = document.querySelectorAll(".click-to-enlarge");
|
22
|
+
imageWrappers.forEach(imageWrapper => {
|
23
|
+
{% if site.data.metaData.clickToEnlargeImages %}
|
24
|
+
imageWrapper.addEventListener("click", () => {
|
25
|
+
const img = imageWrapper.getElementsByTagName("img")[0];
|
26
|
+
const src = img.attributes.getNamedItem("src");
|
27
|
+
const modal = document.createElement("div");
|
28
|
+
const removeModal = function() {
|
29
|
+
modal.classList.add("hidden");
|
30
|
+
setTimeout(() => {
|
31
|
+
document.body.removeChild(modal);
|
32
|
+
}, 200);
|
33
|
+
};
|
34
|
+
const newImage = document.createElement("img");
|
35
|
+
newImage.classList.add("modal__picture-zoomed--image");
|
36
|
+
newImage.setAttribute("src", src.value);
|
37
|
+
modal.classList.add("modal__picture-zoomed", "hidden");
|
38
|
+
// modal.style.backgroundImage = `URL("${src.value}")`;
|
39
|
+
modal.addEventListener("click", removeModal);
|
40
|
+
modal.append(newImage);
|
41
|
+
document.body.append(modal);
|
42
|
+
document.body.addEventListener("keyup", e => {
|
43
|
+
if (e.key === 'Escape') {
|
44
|
+
removeModal();
|
45
|
+
}
|
46
|
+
}, {once : true});
|
47
|
+
setTimeout(() => {
|
48
|
+
modal.classList.remove("hidden");
|
49
|
+
}, 0);
|
50
|
+
});
|
51
|
+
{% else %}
|
52
|
+
img.removeAttribute("click-to-enlarge");
|
53
|
+
{% endif %}
|
54
|
+
});
|
55
|
+
// #endregion click to enlarge images
|
56
|
+
// #region embedded audio players
|
57
|
+
const players = document.querySelectorAll("iframe.embedded-player");
|
58
|
+
const getParamsByPlayerType = (src, type) => {
|
59
|
+
const rt = (src, height) => ({
|
60
|
+
src: src,
|
61
|
+
height: height
|
62
|
+
});
|
63
|
+
switch (type.toLocaleLowerCase()) {
|
64
|
+
case "soundcloud":
|
65
|
+
return rt(`https://w.soundcloud.com/player/?url=${src}`, 125);
|
66
|
+
case "bandcamp":
|
67
|
+
return rt(`https://bandcamp.com/EmbeddedPlayer/${src}`, 125);
|
68
|
+
case "spotify":
|
69
|
+
return rt(`https://open.spotify.com/embed/track/${src}`, 80);
|
70
|
+
case "spotifyalbum":
|
71
|
+
return rt(`https://open.spotify.com/embed/album/${src}`, 80);
|
72
|
+
case "spotifyplaylist":
|
73
|
+
return rt(`https://open.spotify.com/embed/playlist/${src}`, 80);
|
74
|
+
case "spotifyepisode":
|
75
|
+
return rt(`https://open.spotify.com/embed/episode/${src}`, 152);
|
76
|
+
case "spotifyshow":
|
77
|
+
return rt(`https://open.spotify.com/embed/show/${src}`, 152);
|
78
|
+
case "youtube":
|
79
|
+
return rt(`https://www.youtube.com/embed/${src}`, 350);
|
80
|
+
case "anchor.fm":
|
81
|
+
return rt(`https://anchor.fm/sucias/embed/episodes/${src}`,102);
|
82
|
+
default:
|
83
|
+
return rt(src, 125);
|
84
|
+
}
|
85
|
+
};
|
86
|
+
players.forEach(player => {
|
87
|
+
const givenSrc = player.getAttribute("givenSrc");
|
88
|
+
const type = player.getAttribute("type");
|
89
|
+
const { src, height } = getParamsByPlayerType(givenSrc, type);
|
90
|
+
player.setAttribute("src", src);
|
91
|
+
player.setAttribute("height", height);
|
92
|
+
player.classList.remove("hidden");
|
93
|
+
});
|
94
|
+
// #endregion embedded audio players
|
95
|
+
});
|
96
96
|
})();
|
data/_includes/cookies.js
CHANGED
@@ -1,63 +1,63 @@
|
|
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
|
-
});
|
63
|
-
})();
|
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" | absolute_url }}`;
|
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
|
+
});
|
63
|
+
})();
|
@@ -1,7 +1,7 @@
|
|
1
|
-
{% for javascript in page.custom-js %}
|
2
|
-
<script src="{{ javascript | relative_url }}"></script>
|
3
|
-
{% endfor %}
|
4
|
-
|
5
|
-
{% for javascript in site.data.customs.custom-js %}
|
6
|
-
<script src="{{ javascript | relative_url }}"></script>
|
1
|
+
{% for javascript in page.custom-js %}
|
2
|
+
<script src="{{ javascript | relative_url }}"></script>
|
3
|
+
{% endfor %}
|
4
|
+
|
5
|
+
{% for javascript in site.data.customs.custom-js %}
|
6
|
+
<script src="{{ javascript | relative_url }}"></script>
|
7
7
|
{% endfor %}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
{% for css in page.custom-css %}
|
2
|
-
<link href="{{ css | relative_url }}" rel="stylesheet">
|
3
|
-
{% endfor %}
|
4
|
-
|
5
|
-
{% for css in site.data.customs.custom-css %}
|
6
|
-
<link href="{{ css | relative_url }}" rel="stylesheet">
|
1
|
+
{% for css in page.custom-css %}
|
2
|
+
<link href="{{ css | relative_url }}" rel="stylesheet">
|
3
|
+
{% endfor %}
|
4
|
+
|
5
|
+
{% for css in site.data.customs.custom-css %}
|
6
|
+
<link href="{{ css | relative_url }}" rel="stylesheet">
|
7
7
|
{% endfor %}
|
@@ -1,77 +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
|
-
{% 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
|
+
<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,37 +1,41 @@
|
|
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
|
-
src="{{ include.currPost.image | relative_url }}"
|
12
|
-
{% if include.currPost.responsiveImage %}
|
13
|
-
srcset="{% for img in include.currPost.responsiveImage %}{{ img.src | relative_url }} {{ img.size }}w{% if forloop.last == false %},{% endif %}{% endfor %}"
|
14
|
-
sizes="30vw"
|
15
|
-
{% endif %}
|
16
|
-
/>
|
17
|
-
</div>
|
18
|
-
</div>
|
19
|
-
</figure>
|
20
|
-
</header>
|
21
|
-
<section>
|
22
|
-
{% if include.currPost.external_url %}
|
23
|
-
<a href="{{ include.currPost.external_url | relative_url }}" target="_blank">
|
24
|
-
{% else %}
|
25
|
-
<a href="{{ include.currPost.url | relative_url }}">
|
26
|
-
{% endif %}
|
27
|
-
<h2 class="discography-album_title">
|
28
|
-
{{ include.currPost.title }}
|
29
|
-
</h2>
|
30
|
-
</a>
|
31
|
-
<p class="discography-album_summary">
|
32
|
-
{
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
</
|
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
|
+
src="{{ include.currPost.image | relative_url }}"
|
12
|
+
{% if include.currPost.responsiveImage %}
|
13
|
+
srcset="{% for img in include.currPost.responsiveImage %}{{ img.src | relative_url }} {{ img.size }}w{% if forloop.last == false %},{% endif %}{% endfor %}"
|
14
|
+
sizes="30vw"
|
15
|
+
{% endif %}
|
16
|
+
/>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</figure>
|
20
|
+
</header>
|
21
|
+
<section>
|
22
|
+
{% if include.currPost.external_url %}
|
23
|
+
<a href="{{ include.currPost.external_url | relative_url }}" target="_blank">
|
24
|
+
{% else %}
|
25
|
+
<a href="{{ include.currPost.url | relative_url }}">
|
26
|
+
{% endif %}
|
27
|
+
<h2 class="discography-album_title">
|
28
|
+
{{ include.currPost.title }}
|
29
|
+
</h2>
|
30
|
+
</a>
|
31
|
+
<p class="discography-album_summary">
|
32
|
+
{% if include.currPost.description %}
|
33
|
+
{{ include.currPost.description }}
|
34
|
+
{% else %}
|
35
|
+
{{ include.currPost.excerpt | strip_html }}
|
36
|
+
{% endif %}
|
37
|
+
</p>
|
38
|
+
{% include discography-entry-metadata.html currPost=include.currPost %}
|
39
|
+
</section>
|
40
|
+
{% include read-more.html currPost=include.currPost %}
|
41
|
+
</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>
|