just-the-cards 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/card/accordion-option.html +27 -0
- data/_includes/card/image.html +1 -0
- data/_includes/card/pdf.html +1 -0
- data/_includes/card/tablature.html +5 -0
- data/_includes/card/video.html +13 -0
- data/_layouts/card.html +10 -44
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8eca8837c240b86c77bc9a311a10e1fd61c9ddfabeda208c566c49f3267d398c
|
4
|
+
data.tar.gz: b1dd671fcd526d55ca030c209e56325fb4255b55a0545aa46a211a839eeee6c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,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="
|
27
|
-
|
28
|
-
{%
|
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
|
-
|
37
|
-
|
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
|
-
|
27
|
+
<!-- Video -->
|
28
|
+
{% include card/accordion-option.html type='video' source=page.video %}
|
47
29
|
|
48
|
-
|
49
|
-
|
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.
|
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-
|
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
|