minimal-music-project 0.0.6 → 0.1.2

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/404.html +11 -11
  3. data/LICENSE.txt +21 -21
  4. data/README.md +133 -97
  5. data/_config.yml +37 -37
  6. data/_data/customs.yml +2 -2
  7. data/_data/menu.yml +32 -32
  8. data/_data/metaData.yml +20 -7
  9. data/_includes/common-head.html +21 -21
  10. data/_includes/common.js +95 -4
  11. data/_includes/cookies.js +62 -34
  12. data/_includes/customizationsScripts.html +6 -6
  13. data/_includes/customizationsStyles.html +6 -6
  14. data/_includes/discography-entry-metadata.html +77 -80
  15. data/_includes/discography-entry.html +36 -24
  16. data/_includes/footer.html +9 -9
  17. data/_includes/menu.html +35 -35
  18. data/_includes/music-player.html +123 -123
  19. data/_includes/pagination-buttons.html +13 -13
  20. data/_includes/read-more.html +12 -12
  21. data/_layouts/cookies.html +29 -0
  22. data/_layouts/default.html +21 -21
  23. data/_layouts/discography.html +15 -15
  24. data/_layouts/post.html +34 -24
  25. data/_layouts/posts_feed.html +68 -55
  26. data/_sass/minimal-music-project.scss +1 -1
  27. data/_sass/styles/_cookies.scss +60 -52
  28. data/_sass/styles/_defaults.scss +164 -134
  29. data/_sass/styles/_discography.scss +44 -42
  30. data/_sass/styles/_embedded-player.scss +9 -0
  31. data/_sass/styles/_index.scss +10 -8
  32. data/_sass/styles/_layout.scss +49 -49
  33. data/_sass/styles/_menu.scss +176 -161
  34. data/_sass/styles/_modal.scss +30 -0
  35. data/_sass/styles/_music-player.scss +91 -91
  36. data/_sass/styles/_post.scss +94 -89
  37. data/_sass/styles/_posts_feed.scss +73 -72
  38. data/_sass/variables/_colors.scss +4 -4
  39. data/_sass/variables/_index.scss +2 -2
  40. data/_sass/variables/_layout.scss +27 -27
  41. data/_sass/variables/_mixins.scss +54 -54
  42. data/assets/img/300.png +0 -0
  43. data/assets/img/600.png +0 -0
  44. data/assets/img/browserconfig.xml +9 -9
  45. data/assets/img/safari-pinned-tab.svg +38 -38
  46. data/assets/img/site.webmanifest +19 -19
  47. data/assets/styles/styles.scss +7 -7
  48. data/pages/about.html +64 -53
  49. data/pages/cookies.html +9 -0
  50. data/pages/privacyPolicy.html +10 -0
  51. metadata +10 -3
data/_includes/cookies.js CHANGED
@@ -1,35 +1,63 @@
1
- (function() {
2
- const consentPropName = "cookies_consent";
3
- const storageType = localStorage;
4
-
5
- areCookiesAccepted = () => storageType.getItem(consentPropName);
6
- acceptCookieConsent = () => storageType.setItem(consentPropName, true);
7
- window.addEventListener("load", () => {
8
- if(areCookiesAccepted()) {
9
- return;
10
- }
11
- const cookieContainer = document.createElement("div");
12
- cookieContainer.classList.add("hidden");
13
- const cookieParagraph = document.createElement("p");
14
- const cookieContent = document.createTextNode("{{ site.data.metaData.cookies.message }}");
15
- const cookieAgreeButton = document.createElement("button");
16
- const cookieButtonContent = document.createTextNode("{{ site.data.metaData.cookies.agreeButtonText }}");
17
- cookieAgreeButton.appendChild(cookieButtonContent);
18
- cookieAgreeButton.onclick = () => {
19
- acceptCookieConsent();
20
- cookieContainer.classList.add("hidden");
21
- window.setTimeout(cookieContainer.remove.bind(cookieContainer), 1000);
22
- window.setTimeout(cookieContainer.remove.bind(cookieContainer), 1000);
23
- try {
24
- {{ site.data.metaData.cookies.agreeButtonFnName }}();
25
- } catch(e) {
26
- console.error(e);
27
- }
28
- }
29
- cookieParagraph.append(cookieContent);
30
- cookieContainer.append(cookieParagraph, cookieAgreeButton);
31
- cookieContainer.classList.add("cookie-container")
32
- document.body.appendChild(cookieContainer);
33
- window.setTimeout(() => cookieContainer.classList.remove("hidden"));
34
- });
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
+ });
35
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,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
- {% if include.currPost.play_here %}
63
- {% include music-player.html audioData=include.currPost.play_here %}
64
- {% endif %}
65
- {% if include.currPost.play_soundcloud_embed %}
66
- <iframe width="100%" height="110" scrolling="no" frameborder="no" allow="autoplay"
67
- src="{{ include.currPost.play_soundcloud_embed.src }}"></iframe>
68
- <div
69
- style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;">
70
- <a href="{{ include.currPost.play_soundcloud_embed.artist_href }}" title="{{ include.currPost.play_soundcloud_embed.artist_title }}" target="_blank"
71
- style="color: #cccccc; text-decoration: none;">{{ include.currPost.play_soundcloud_embed.artist_title }}</a> · <a
72
- href="{{ include.currPost.play_soundcloud_embed.song_href }}"
73
- title="{{ include.currPost.play_soundcloud_embed.song_title }}" target="_blank"
74
- style="color: #cccccc; text-decoration: none;">{{ include.currPost.play_soundcloud_embed.song_title }}</a></div>
75
- {% endif %}
76
- {% if include.currPost.play_bandcamp_embed %}
77
- <iframe style="border: 0; width: 100%; height: 120px;"
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,37 @@
1
- <article class="discography-album">
2
- <header>
3
- <figure class="discography-album_cover-wrapper">
4
- <div class="discography-album_cover">
5
- <img src="{{ include.currPost.image | relative_url }}" alt="{{ page.image_alt }}" />
6
- </div>
7
- </figure>
8
- </header>
9
- <section>
10
- {% if include.currPost.external_url %}
11
- <a href="{{ include.currPost.external_url | relative_url }}" target="_blank">
12
- {% else %}
13
- <a href="{{ include.currPost.url | relative_url }}">
14
- {% endif %}
15
- <h2 class="discography-album_title">
16
- {{ include.currPost.title }}
17
- </h2>
18
- </a>
19
- <p class="discography-album_summary">
20
- {{ include.currPost.description }}
21
- </p>
22
- {% include discography-entry-metadata.html currPost=include.currPost %}
23
- </section>
24
- {% include read-more.html currPost=include.currPost %}
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
+ {{ include.currPost.description }}
33
+ </p>
34
+ {% include discography-entry-metadata.html currPost=include.currPost %}
35
+ </section>
36
+ {% include read-more.html currPost=include.currPost %}
25
37
  </article>
@@ -1,10 +1,10 @@
1
- <script>
2
- window.addEventListener("load", () => {
3
- document.getElementsByClassName("copyrights")[0].innerHTML =
4
- `Copyrights &copy; ${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 &copy; ${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,35 +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
- <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>
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>