just-the-cards 0.2.5 → 0.2.6

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: 3efe1707c66ee0109382bd4f7ebbc278008e453c3b1e75403f581c7958eef97d
4
- data.tar.gz: f5d2d3fdd2128dfa24a634808ad36231908ddcbe5ee4dd571be4d7639ec42341
3
+ metadata.gz: 8eca8837c240b86c77bc9a311a10e1fd61c9ddfabeda208c566c49f3267d398c
4
+ data.tar.gz: b1dd671fcd526d55ca030c209e56325fb4255b55a0545aa46a211a839eeee6c4
5
5
  SHA512:
6
- metadata.gz: 997f4a0105470884f676960d1c33210f6e4df62f91641d9df4ecc086b12182ab9e2e398ba9475a957d00f5412226b39848c84bf6bb6ae15af101507bc8bf6fce
7
- data.tar.gz: f7c10c11a9e39ea9108e32b45b870d1c4396c64185e1bd8e2fb32deabc0ad9788c619398175b5da1e3014fb615e4c572b9d45bf37a30f93b62e9e42e467a4ad5
6
+ metadata.gz: 5ba96ca49b671d9d3a6340d4445aea2841a086dc032a03338f26bdce20d33d1bced16e0131b5b79dec7ee619e79d9a158a34238aa80910aeb653ed061971776a
7
+ data.tar.gz: febedd249b9145170b665538ff8d1553eba8a37a9da10ff153a47ac7d953fb57e88d2326b68fe682063be28a6b4a952b15d9e8ad28e9b215a3bba1c747b591c3
@@ -0,0 +1,27 @@
1
+ <!--
2
+ Include parameters are:
3
+ - [type] Type of source: must match one .html in the card folder f.e image
4
+ - [source] Source: can be a path to an image, pdf, video...
5
+ -->
6
+
7
+ {% if include.source != nil and include.source != "" %}
8
+
9
+ <div class="card">
10
+ <div class="card-header" id="heading{{ include.type | capitalize }}">
11
+ <h2 class="mb-0">
12
+ <button class="btn btn-link btn-block text-left" type="button" data-toggle="collapse"
13
+ data-target="#collapse{{ include.type | capitalize }}" aria-expanded="true"
14
+ aria-controls="collapse{{ include.type | capitalize }}">
15
+ {{ include.type | capitalize }}
16
+ </button>
17
+ </h2>
18
+ </div>
19
+ <div id="collapse{{ include.type | capitalize }}" class="collapse"
20
+ aria-labelledby="heading{{ include.type | capitalize }}" data-parent="#accordionSources">
21
+ <div class="card-body">
22
+ {% include card/{{ include.type }}.html source=include.source %}
23
+ </div>
24
+ </div>
25
+ </div>
26
+
27
+ {% endif %}
@@ -0,0 +1 @@
1
+ <img src="{{include.source}}" class="img-fluid" alt="Card image">
@@ -0,0 +1 @@
1
+ <object data="{{page.pdf}}" width="1000" height="700" type='application/pdf'></object>
@@ -0,0 +1,5 @@
1
+ <div class="container">
2
+
3
+ {% include alphatab.html source=include.source %}
4
+
5
+ </div>
@@ -0,0 +1,13 @@
1
+ {% if include.source contains "youtube" %}
2
+ <div class="embed-responsive embed-responsive-16by9">
3
+ <iframe frameborder="0" src={{include.source}} allowfullscreen>
4
+ </iframe>
5
+ </div>
6
+
7
+ {% else %}
8
+ <div class="embed-responsive embed-responsive-16by9">
9
+ <iframe src="https://docs.google.com/gview?url={{include.source}}&embedded=true" frameborder="0"
10
+ allowfullscreen></iframe>
11
+ </div>
12
+
13
+ {% endif %}
data/_layouts/card.html CHANGED
@@ -3,12 +3,6 @@ layout: default
3
3
  show_title: false
4
4
  ---
5
5
 
6
- {% if page.image != nil %}
7
- <div class="container text-center">
8
- <img src="{{ page.image }}" class="img-fluid" alt="Card image">
9
- </div>
10
- {% endif %}
11
-
12
6
  <h2>{{page.title}}</h2>
13
7
 
14
8
  {% if page.date != nil %}
@@ -23,47 +17,19 @@ show_title: false
23
17
 
24
18
  <p>{{page.content | markdownify }}</p>
25
19
 
26
- <div class="container">
27
-
28
- {% if page.tablature != nil and page.tablature != "" %}
29
- <div class="row">
30
- {% include alphatab.html source=page.tablature %}
31
- </div>
32
- {% endif %}
33
-
34
- <hr>
20
+ <div class="accordion" id="accordionSources">
21
+ <!-- Image -->
22
+ {% include card/accordion-option.html type='image' source=page.image %}
35
23
 
36
- {% if page.pdf != nil and page.pdf != ""%}
37
- <div class="row">
38
- <h3>Check the PDF here</h3>
39
- <div class="embed-responsive embed-responsive-16by9">
40
- <object data="{{page.pdf}}" width="1000" height="1000" type='application/pdf'></object>
41
- </div>
42
- </div>
43
- {% endif %}
44
- {% if page.video != nil and page.video != "" %}
24
+ <!-- PDF -->
25
+ {% include card/accordion-option.html type='pdf' source=page.pdf %}
45
26
 
46
- <hr>
27
+ <!-- Video -->
28
+ {% include card/accordion-option.html type='video' source=page.video %}
47
29
 
48
- <div class="row">
49
- <h3>Check the Video demo here</h3>
50
-
51
- {% if page.video contains "youtube" %}
52
- <div class="embed-responsive embed-responsive-16by9">
53
- <iframe frameborder="0" src={{page.video}} allowfullscreen>
54
- </iframe>
55
- </div>
56
-
57
- {% else %}
58
- <div class="embed-responsive embed-responsive-16by9">
59
- <iframe src="https://docs.google.com/gview?url={{page.video}}&embedded=true" frameborder="0"
60
- allowfullscreen></iframe>
61
- </div>
62
-
63
- {% endif %}
64
-
65
- </div>
66
- {% endif %}
30
+ <!-- Tablature -->
31
+ {% include card/accordion-option.html type='tablature' source=page.tablature %}
67
32
  </div>
68
33
 
34
+
69
35
  {% include back_url.html %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-cards
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - juandspy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-04 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -36,6 +36,11 @@ files:
36
36
  - _config.yml
37
37
  - _includes/alphatab.html
38
38
  - _includes/back_url.html
39
+ - _includes/card/accordion-option.html
40
+ - _includes/card/image.html
41
+ - _includes/card/pdf.html
42
+ - _includes/card/tablature.html
43
+ - _includes/card/video.html
39
44
  - _includes/card_preview.html
40
45
  - _includes/count_children.html
41
46
  - _includes/footer.html