minimal-music-project 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7029cd275a130708b0e8907e9cbafafdd4db04d320d360cdd2981df5a1c27816
4
- data.tar.gz: 3ca7c7261be1e1235f55f9716f403fb935a3be00d9a43940ffd676f4ed83cc2a
3
+ metadata.gz: acc301b1a7ae647622162c8329af594fa290406c6eb596de5a72e7f0224e1782
4
+ data.tar.gz: 2a261e6cc4214a78f0c970473cfd10a098cc0da213f262e5a0cb05c45cd58246
5
5
  SHA512:
6
- metadata.gz: 36fbe1c4792c2837c0c5e3c8830a95e8a699af3a92b42e389d7e6f28956420b2de1ec0ee6afc394bb82462e5854cb99496795c7678e0651b12917fd35bf4b671
7
- data.tar.gz: aa837c3aab72920f119f45477bfe5f1797044a2e162e2989a6c2fb15b175e1b67d69d133045aef525976572b6a12816bcd13c6593c1fb668e45b718928ec8109
6
+ metadata.gz: 9c72baf29001848d6336be32f6d8646552d1bf37f008e53cdd0d1dcfccc3f82cc4541195b0ae4af20b1c3d2e164e6ef6a53390d0061588c0f6082bd584258082
7
+ data.tar.gz: '090e983e75379425b77ad78f69de334647d965533c48bb2da668b6476c05ba256d98bd69687a686cc4fc6bc4a0a396021bc59e51e50583a6c8f73ec1fafc3862'
data/_config.yml CHANGED
@@ -14,11 +14,20 @@ twitter:
14
14
  plugins:
15
15
  - jekyll-seo-tag
16
16
  - jekyll-feed
17
+ - jekyll-sitemap
18
+ - jekyll-paginate-v2
17
19
  # Build settings
18
20
  markdown: kramdown
19
21
  remote_theme: ItsMeaga1n/minimal-music-project
20
- # Exclude these files from production site
21
- exclude:
22
+ permalink: /:title.html
23
+ pagination:
24
+ enabled: true
25
+ per_page: 4
26
+ limit: 0
27
+ sort_field: 'date'
28
+ sort_reverse: true
29
+
30
+ exclude:
22
31
  - CHANGELOG.md
23
32
  - CNAME
24
33
  - Gemfile
data/_data/menu.yml CHANGED
@@ -4,12 +4,12 @@ menu_pages:
4
4
  category: home
5
5
 
6
6
  - title: Discography
7
- url: /discography.html
7
+ url: /discography/
8
8
  category: discography
9
9
  tooltip: Discography tooltip
10
10
 
11
11
  - title: Collaborations
12
- url: /collaborations.html
12
+ url: /collaborations/
13
13
  category: collaborations
14
14
  tooltip: Collaborations tooltip
15
15
 
@@ -1,15 +1,15 @@
1
1
  {% for javascript in page.custom-js %}
2
- <script src="{{ javascript }}"></script>
2
+ <script src="{{ javascript | relative_url }}"></script>
3
3
  {% endfor %}
4
4
 
5
5
  {% for javascript in site.data.customs.custom-js %}
6
- <script src="{{ javascript }}"></script>
6
+ <script src="{{ javascript | relative_url }}"></script>
7
7
  {% endfor %}
8
8
 
9
9
  {% for css in page.custom-css %}
10
- <link href="{{ css }}" rel="stylesheet">
10
+ <link href="{{ css | relative_url }}" rel="stylesheet">
11
11
  {% endfor %}
12
12
 
13
13
  {% for css in site.data.customs.custom-css %}
14
- <link href="{{ css }}" rel="stylesheet">
14
+ <link href="{{ css | relative_url }}" rel="stylesheet">
15
15
  {% endfor %}
data/_includes/menu.html CHANGED
@@ -8,7 +8,11 @@
8
8
  <ul class="navigation">
9
9
  {% for menu_item in site.data.menu.menu_pages %}
10
10
  <li>
11
- <a href="{{ menu_item.url | relative_url }}" category="{{ menu_item.category }}" title="{{ menu_item.tooltip }}">
11
+ <a href="{{ menu_item.url | relative_url }}" category="{{ menu_item.category }}" title="{{ menu_item.tooltip }}"
12
+ {% if menu_item.category == page.category or page.categories contains menu_item.category %}
13
+ class="selected"
14
+ {% endif %}
15
+ >
12
16
  <span>{{ menu_item.title }}</span>
13
17
  </a>
14
18
  </li>
@@ -24,23 +28,3 @@
24
28
  {% endfor %}
25
29
  </div>
26
30
  </aside>
27
-
28
- <script>
29
- (function() {
30
- window.addEventListener("load", () => {
31
- const navigation = document.getElementsByClassName("navigation")[0];
32
- const selectedCategory = navigation.getElementsByTagName("a");
33
- const currCategory = "{{ page.category }}";
34
- const currCategories = "{{ page.categories }}";
35
-
36
- for(const menuItem of selectedCategory) {
37
- const menuCategory = menuItem.getAttribute("category")
38
- if(menuCategory === currCategory ||
39
- menuCategory === currCategories) {
40
- menuItem.classList.add("selected");
41
- return;
42
- }
43
- }
44
- });
45
- })();
46
- </script>
@@ -0,0 +1,14 @@
1
+ {% if paginator.total_pages > 1 %}
2
+ <ul class="pager">
3
+ {% if paginator.previous_page %}
4
+ <li class="previous">
5
+ <a href="{{ paginator.previous_page_path | relative_url | replace: '//', '/' }}">&larr; Newer Posts</a>
6
+ </li>
7
+ {% endif %}
8
+ {% if paginator.next_page %}
9
+ <li class="next">
10
+ <a href="{{ paginator.next_page_path | relative_url | replace: '//', '/' }}">Older Posts &rarr;</a>
11
+ </li>
12
+ {% endif %}
13
+ </ul>
14
+ {% endif %}
@@ -4,11 +4,13 @@ layout: default
4
4
  <div class="content-container">
5
5
  <div class="discography">
6
6
  {{ content }}
7
- {% for post in site.posts %}
7
+ {% for post in paginator.posts %}
8
8
  {% if post.categories contains page.category %}
9
9
  <hr>
10
10
  {% include discography-entry.html currPost=post %}
11
11
  {% endif %}
12
12
  {% endfor %}
13
+
14
+ {% include pagination-buttons.html %}
13
15
  </div>
14
16
  </div>
@@ -5,7 +5,7 @@ category: home
5
5
  <div class="content-container">
6
6
  <div class="post-feed">
7
7
  {{ content }}
8
- {% for post in site.posts %}
8
+ {% for post in paginator.posts %}
9
9
  {% if post.categories contains page.category %}
10
10
  <hr>
11
11
  <article>
@@ -51,5 +51,6 @@ category: home
51
51
 
52
52
  {% endif %}
53
53
  {% endfor %}
54
+ {% include pagination-buttons.html %}
54
55
  </div>
55
56
  </div>
@@ -9,8 +9,8 @@ h1 {
9
9
  padding: 0.5em;
10
10
  }
11
11
 
12
- h2, h2, h3 a {
13
- font-weight: 600;
12
+ h2, h3 a {
13
+ font-weight: 500;
14
14
  font-size: 1.4em;
15
15
  line-height: 1.4em;
16
16
  color: $black;
@@ -35,7 +35,7 @@ main {
35
35
  padding: 0px 18px 24px;
36
36
  flex-grow: 1;
37
37
  position: relative;
38
- p {
38
+ p, li {
39
39
  @include hyperlink-convention();
40
40
  }
41
41
  .content-separator {
@@ -47,6 +47,30 @@ main {
47
47
  }
48
48
  }
49
49
  }
50
+
51
+ .pager {
52
+ margin-top: 30px;
53
+ margin-bottom: 30px;
54
+ width: 100%;
55
+ li {
56
+ position: absolute;
57
+ display: inline;
58
+ padding: 8px;
59
+ margin: 10px;
60
+ &.previous {
61
+ left: 0;
62
+ }
63
+ &.next {
64
+ right: 0;
65
+ }
66
+ & > a {
67
+ color: $p_text;
68
+ &:hover {
69
+ text-decoration: underline $black;
70
+ }
71
+ }
72
+ }
73
+ }
50
74
  }
51
75
  a {
52
76
  text-decoration-line: none;
@@ -58,6 +82,10 @@ a, p, li {
58
82
  font-size: 1.1em;
59
83
  }
60
84
 
85
+ li {
86
+ margin-left: 1em;
87
+ }
88
+
61
89
  hr {
62
90
  margin-top: 2em;
63
91
  margin-bottom: 0.5em;
@@ -105,4 +133,4 @@ audio {
105
133
  text-decoration: underline;
106
134
  }
107
135
  }
108
- }
136
+ }
@@ -13,16 +13,17 @@
13
13
  width: $menu-size;
14
14
  box-sizing: border-box;
15
15
  padding: 8px 0 0 22px;
16
-
16
+ overflow: hidden;
17
+
17
18
  &-top {
18
19
  box-sizing: border-box;
19
20
  height: 100%;
20
21
  flex-grow: 1;
21
- padding-left: 3px;
22
22
  padding-right: 3px;
23
23
 
24
24
  &_logo {
25
25
  max-width: 100px;
26
+ margin-bottom: 1em;
26
27
  a {
27
28
  color: #000000;
28
29
  img {
@@ -36,6 +37,7 @@
36
37
  }
37
38
  ul, ol, dl {
38
39
  li, dt {
40
+ margin-left: 0;
39
41
  list-style: none;
40
42
  margin-bottom: 8px;
41
43
  margin-top: 8px;
@@ -47,7 +49,7 @@
47
49
  display: flex;
48
50
  font-weight: 400;
49
51
  letter-spacing: 3px;
50
-
52
+ font-size: 1em;
51
53
  &:hover {
52
54
  color: $black;
53
55
 
@@ -59,6 +61,11 @@
59
61
  i {
60
62
  margin-right: 5px;
61
63
  }
64
+
65
+ span {
66
+ max-width: 100%;
67
+ hyphens: auto;
68
+ }
62
69
  }
63
70
  }
64
71
  }
@@ -66,7 +73,7 @@
66
73
  &-contact {
67
74
  display:flex;
68
75
  justify-content:left;
69
- margin-bottom: 1em;
76
+ margin-bottom: 0.6em;
70
77
  flex-wrap: wrap;
71
78
  a {
72
79
  color: $p_text;
@@ -46,4 +46,14 @@ $image-dim: 192px;
46
46
  border: 0;
47
47
  margin: auto;
48
48
  }
49
+
50
+
51
+ .discography-album {
52
+ &_title {
53
+ display: none;
54
+ }
55
+ &_summary {
56
+ margin-top: 3vw;;
57
+ }
58
+ }
49
59
  }
Binary file
Binary file
data/pages/about.html CHANGED
@@ -8,4 +8,29 @@ category: about
8
8
  <div class="content-container about">
9
9
  <h1>About</h1>
10
10
  It's a good place to write something about the project!
11
+
12
+ <hr />
13
+ <p>
14
+ Listen and get music from this example project at:
15
+ <ul>
16
+ <li>
17
+ <a>
18
+ YouTube
19
+ <i class="fab fa-youtube" ></i>
20
+ </a>
21
+ </li>
22
+ <li>
23
+ <a>
24
+ SoundCloud
25
+ <i class="fab fa-soundcloud" ></i>
26
+ </a>
27
+ </li>
28
+ <li>
29
+ <a>
30
+ BandCamp
31
+ <i class="fab fa-bandcamp" ></i>
32
+ </a>
33
+ </li>
34
+ </ul>
35
+ </p>
11
36
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal-music-project
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patryk Bieszke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-31 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -46,6 +46,7 @@ files:
46
46
  - _includes/footer.html
47
47
  - _includes/menu.html
48
48
  - _includes/music-player.html
49
+ - _includes/pagination-buttons.html
49
50
  - _includes/read-more.html
50
51
  - _layouts/default.html
51
52
  - _layouts/discography.html
@@ -58,9 +59,9 @@ files:
58
59
  - _sass/styles/_index.scss
59
60
  - _sass/styles/_layout.scss
60
61
  - _sass/styles/_menu.scss
62
+ - _sass/styles/_music-player.scss
61
63
  - _sass/styles/_post.scss
62
64
  - _sass/styles/_posts_feed.scss
63
- - _sass/styles/music-player.scss
64
65
  - _sass/variables/_colors.scss
65
66
  - _sass/variables/_index.scss
66
67
  - _sass/variables/_layout.scss
@@ -83,7 +84,6 @@ files:
83
84
  - assets/img/z-is-for-zero.png
84
85
  - assets/styles/styles.scss
85
86
  - pages/about.html
86
- - pages/collaborations.html
87
87
  homepage: https://github.com/ItsMeaga1n/minimal-music-project
88
88
  licenses:
89
89
  - MIT
@@ -1,7 +0,0 @@
1
- ---
2
- layout: discography
3
- title: Collaborations
4
- permalink: collaborations.html
5
- category: collaborations
6
- ---
7
- Content of a custom page. Under the content will be a list of posts of a chosen category.