minimal-music-project 0.1.0 → 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.
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 +131 -116
  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 +19 -18
  9. data/_includes/common-head.html +21 -21
  10. data/_includes/common.js +77 -62
  11. data/_includes/cookies.js +62 -62
  12. data/_includes/customizationsScripts.html +6 -6
  13. data/_includes/customizationsStyles.html +6 -6
  14. data/_includes/discography-entry-metadata.html +77 -77
  15. data/_includes/discography-entry.html +37 -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 +28 -27
  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 -60
  28. data/_sass/styles/_defaults.scss +165 -146
  29. data/_sass/styles/_discography.scss +41 -42
  30. data/_sass/styles/_embedded-player.scss +8 -8
  31. data/_sass/styles/_index.scss +9 -9
  32. data/_sass/styles/_layout.scss +49 -49
  33. data/_sass/styles/_menu.scss +161 -161
  34. data/_sass/styles/_modal.scss +22 -18
  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 -64
  49. data/pages/cookies.html +9 -9
  50. data/pages/privacyPolicy.html +9 -9
  51. metadata +5 -3
data/_includes/common.js CHANGED
@@ -1,63 +1,78 @@
1
- (function () {
2
- window.toggleExpander = function toggleExpander(x) {
3
- document.getElementsByClassName("menu")[0].classList.toggle("expanded");
4
- }
5
- window.addEventListener("load", () => {
6
- // #region click to enlarge images
7
- const images = document.querySelectorAll("img[click-to-enlarge]");
8
- images.forEach(img => {
9
- {% if site.data.metaData.clickToEnlargeImages %}
10
- img.addEventListener("click", () => {
11
- const src = img.attributes.getNamedItem("src");
12
- const modal = document.createElement("div");
13
- const removeModal = function() {
14
- document.body.removeChild(modal);
15
- };
16
- modal.classList.add("modal__picture-zoomed");
17
- modal.style.backgroundImage = `URL("${src.value}")`;
18
- modal.addEventListener("click", removeModal);
19
- document.body.append(modal);
20
- document.body.addEventListener("keyup", e => {
21
- if (e.key === 'Escape') {
22
- removeModal();
23
- }
24
- }, {once : true})
25
- });
26
- {% else %}
27
- img.removeAttribute("click-to-enlarge");
28
- {% endif %}
29
- });
30
- // #endregion click to enlarge images
31
- // #region embedded audio players
32
- const players = document.querySelectorAll("iframe.embedded-player");
33
- const getParamsByPlayerType = (src, type) => {
34
- const rt = (src, height) => ({
35
- src: src,
36
- height: height
37
- });
38
- switch (type.toLocaleLowerCase()) {
39
- case "soundcloud":
40
- return rt(`https://w.soundcloud.com/player/?url=${src}`, 125);
41
- case "bandcamp":
42
- return rt(`https://bandcamp.com/EmbeddedPlayer/${src}`, 125);
43
- case "spotify":
44
- return rt(`https://open.spotify.com/embed/track/${src}`, 80);
45
- case "youtube":
46
- return rt(`https://www.youtube.com/embed/${src}`, 350);
47
- case "anchor.fm":
48
- return rt(`https://anchor.fm/sucias/embed/episodes/${src}`,102);
49
- default:
50
- return rt(src, 125);
51
- }
52
- };
53
- players.forEach(player => {
54
- const givenSrc = player.getAttribute("givenSrc");
55
- const type = player.getAttribute("type");
56
- const { src, height } = getParamsByPlayerType(givenSrc, type);
57
- player.setAttribute("src", src);
58
- player.setAttribute("height", height);
59
- player.classList.remove("hidden");
60
- });
61
- // #endregion embedded audio players
62
- });
1
+ (function () {
2
+ window.toggleExpander = function toggleExpander(x) {
3
+ document.getElementsByClassName("menu")[0].classList.toggle("expanded");
4
+ }
5
+ window.addEventListener("load", () => {
6
+ // #region click to enlarge images
7
+ const imageWrappers = document.querySelectorAll(".click-to-enlarge");
8
+ imageWrappers.forEach(imageWrapper => {
9
+ const img = imageWrapper.getElementsByTagName("img")[0];
10
+ {% if site.data.metaData.clickToEnlargeImages %}
11
+ img.addEventListener("click", () => {
12
+ const src = img.attributes.getNamedItem("src");
13
+ const modal = document.createElement("div");
14
+ const removeModal = function() {
15
+ modal.classList.add("hidden");
16
+ setTimeout(() => {
17
+ document.body.removeChild(modal);
18
+ }, 200);
19
+ };
20
+ modal.classList.add("modal__picture-zoomed", "hidden");
21
+ modal.style.backgroundImage = `URL("${src.value}")`;
22
+ modal.addEventListener("click", removeModal);
23
+ document.body.append(modal);
24
+ document.body.addEventListener("keyup", e => {
25
+ if (e.key === 'Escape') {
26
+ removeModal();
27
+ }
28
+ }, {once : true});
29
+ setTimeout(() => {
30
+ modal.classList.remove("hidden");
31
+ }, 0);
32
+ });
33
+ {% else %}
34
+ img.removeAttribute("click-to-enlarge");
35
+ {% endif %}
36
+ });
37
+ // #endregion click to enlarge images
38
+ // #region embedded audio players
39
+ const players = document.querySelectorAll("iframe.embedded-player");
40
+ const getParamsByPlayerType = (src, type) => {
41
+ const rt = (src, height) => ({
42
+ src: src,
43
+ height: height
44
+ });
45
+ switch (type.toLocaleLowerCase()) {
46
+ case "soundcloud":
47
+ return rt(`https://w.soundcloud.com/player/?url=${src}`, 125);
48
+ case "bandcamp":
49
+ return rt(`https://bandcamp.com/EmbeddedPlayer/${src}`, 125);
50
+ case "spotify":
51
+ return rt(`https://open.spotify.com/embed/track/${src}`, 80);
52
+ case "spotifyalbum":
53
+ return rt(`https://open.spotify.com/embed/album/${src}`, 80);
54
+ case "spotifyplaylist":
55
+ return rt(`https://open.spotify.com/embed/playlist/${src}`, 80);
56
+ case "spotifyepisode":
57
+ return rt(`https://open.spotify.com/embed/episode/${src}`, 152);
58
+ case "spotifyshow":
59
+ return rt(`https://open.spotify.com/embed/show/${src}`, 152);
60
+ case "youtube":
61
+ return rt(`https://www.youtube.com/embed/${src}`, 350);
62
+ case "anchor.fm":
63
+ return rt(`https://anchor.fm/sucias/embed/episodes/${src}`,102);
64
+ default:
65
+ return rt(src, 125);
66
+ }
67
+ };
68
+ players.forEach(player => {
69
+ const givenSrc = player.getAttribute("givenSrc");
70
+ const type = player.getAttribute("type");
71
+ const { src, height } = getParamsByPlayerType(givenSrc, type);
72
+ player.setAttribute("src", src);
73
+ player.setAttribute("height", height);
74
+ player.classList.remove("hidden");
75
+ });
76
+ // #endregion embedded audio players
77
+ });
63
78
  })();
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
- });
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
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,25 +1,38 @@
1
- <article class="discography-album">
2
- <header>
3
- <figure class="discography-album_cover-wrapper">
4
- <div class="discography-album_cover">
5
- <img click-to-enlarge 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
+ 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>
@@ -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>