minimal-music-project 0.1.2 → 0.1.3

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: 334a32cc2e891ee3be31cbab9984f40124737162a2560e2488e9ee09a5266b77
4
- data.tar.gz: 2899c01395e630bbec84d11954fdc60a9a4f165564a62eb80b093649cdfd7e23
3
+ metadata.gz: e26ea156205245de52f843ccd0a873c8d9cfb191e81164ecc97f3e1e3e7a9a6c
4
+ data.tar.gz: e96545495a6f811330865320d5c8c3188d40634b92e35d1cef9e5ecde35d26c1
5
5
  SHA512:
6
- metadata.gz: f21c18aa93035b0a9e053f0d925ded7b9ebd9e6d9c46065d0da691cc1790320bc46b5cccc2e6d637ba07491f267626ea642c7fe6e46db3d94ea938af8126f53a
7
- data.tar.gz: f6371fc973e80a669f0d4d77d0100a2746b025ae1023b5fc07f85b0917e777b59db88bceec44144e5f0180486726f695834376427b47e6b87a98ce16984e6ef1
6
+ metadata.gz: fa76fced0d35bf6cc746831db4d07cc54bbde40674ec4b5b9ab2791acfd3aa295cb7cd7d24daf463b274b73f9a257ba5aba2c952ae31d59eac07552f9969135b
7
+ data.tar.gz: fd4742aa5a17366158a7efe66101dc19fc6fb640a98df8a8955c9b4702b3ce565aee3a022e01c32adff98f4919b205ad211752f212b2e9760e8ffa5d016e544d
data/README.md CHANGED
@@ -7,6 +7,10 @@
7
7
  <img height="20" src="https://www.ko-fi.com/img/githubbutton_sm.svg"
8
8
  alt="Donate (Ko-fi)" />
9
9
  </a>
10
+ <a href="https://jekyll-themes.com">
11
+ <img src="https://img.shields.io/badge/featured%20on-JekyllThemes-red.svg" height="20" alt="Jekyll Themes Shield" loading="lazy">
12
+ </a>
13
+
10
14
 
11
15
  minimal-music-project is a flexible, extendable Jekyll theme. With this theme it's plain simple to create a good looking website for a music band with all the required components to list all releases and news. Demo is available [here](https://minimal-music-project.netlify.app/).
12
16
 
@@ -91,7 +95,12 @@ Structure of `_data/customs.yml`:
91
95
 
92
96
  ## Posts front matter parameters
93
97
 
98
+ ### Description / excerpt
99
+
100
+ In the post feed / discography each entry will be shown with a text. This text will contain either the content of "description" property from front matter, or [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) if the description property is missing.
101
+
94
102
  ### Images
103
+
95
104
  There are two parameters responsible for displaying images: *image* and *responsiveImage*. The first one should have string value equal to the relative path to the image to display in a post (and post-feed / discography preview) if *responsiveImage* is not set. This path will always be used for *clickToEnlargeImages* functionality too. The *responsiveImage* is an array of objects that will be transpiled to img in DOM property *srcset*. Each object should contain two properties:
96
105
 
97
106
  * *src* - path to the file
@@ -30,6 +30,12 @@
30
30
  </a>
31
31
  <p class="discography-album_summary">
32
32
  {{ include.currPost.description }}
33
+
34
+ {% if include.currPost.description %}
35
+ {{ include.currPost.description }}
36
+ {% else %}
37
+ {{ include.currPost.excerpt | strip_html }}
38
+ {% endif %}
33
39
  </p>
34
40
  {% include discography-entry-metadata.html currPost=include.currPost %}
35
41
  </section>
@@ -25,5 +25,6 @@ layout: default
25
25
  element.addEventListener("click", () => {
26
26
  storageType.setItem(consent.cookieName, element.checked);
27
27
  });
28
+ storageType.setItem("interacted_with_cookies_banner", true);
28
29
  });
29
30
  </script>
@@ -39,7 +39,11 @@ category: home
39
39
  </div>
40
40
  </figure>
41
41
  <p>
42
+ {% if post.description %}
42
43
  {{ post.description }}
44
+ {% else %}
45
+ {{ post.excerpt | strip_html }}
46
+ {% endif %}
43
47
  </p>
44
48
  </section>
45
49
  {% include read-more.html currPost=post %}
@@ -16,6 +16,15 @@
16
16
  img {
17
17
  max-height: 20vw;
18
18
  }
19
+ @include mobile {
20
+ width: 40vw;
21
+ height: 40vw;
22
+ img {
23
+ width: 40vw;
24
+ height: 40vw;
25
+ max-height: 40vw;
26
+ }
27
+ }
19
28
  }
20
29
  p, a {
21
30
  font-size: 0.9em;
@@ -75,6 +75,7 @@
75
75
  width: auto;
76
76
  max-width: 100%;
77
77
  border: 0;
78
+ object-fit: contain;
78
79
  }
79
80
  }
80
81
  }
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.1.2
4
+ version: 0.1.3
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-10-03 00:00:00.000000000 Z
11
+ date: 2021-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll