jekyll-swift-theme 0.2.0 → 0.3.0
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 +4 -4
- data/README.md +10 -1
- data/_includes/head.html +6 -1
- data/_includes/shorts/flickr-album.html +10 -0
- data/_includes/shorts/gallery.html +7 -5
- data/_sass/swift/_comments.sass +6 -0
- data/assets/galleria/galleria.js +6987 -0
- data/assets/galleria/galleria.min.js +12 -0
- data/assets/galleria/plugins/flickr/demo.html +62 -0
- data/assets/galleria/plugins/flickr/galleria.flickr.js +399 -0
- data/assets/galleria/plugins/flickr/galleria.flickr.min.js +10 -0
- data/assets/galleria/plugins/history/demo.html +98 -0
- data/assets/galleria/plugins/history/galleria.history.js +164 -0
- data/assets/galleria/plugins/history/galleria.history.min.js +10 -0
- data/assets/galleria/themes/azur/demo-cdn.html +118 -0
- data/assets/galleria/themes/azur/demo-retina.html +120 -0
- data/assets/galleria/themes/azur/demo.html +120 -0
- data/assets/galleria/themes/azur/galleria.azur.css +403 -0
- data/assets/galleria/themes/azur/galleria.azur.js +312 -0
- data/assets/galleria/themes/azur/galleria.azur.min.css +1 -0
- data/assets/galleria/themes/azur/galleria.azur.min.js +10 -0
- data/assets/galleria/themes/classic/demo-cdn.html +103 -0
- data/assets/galleria/themes/classic/demo-retina.html +106 -0
- data/assets/galleria/themes/classic/demo.html +106 -0
- data/assets/galleria/themes/classic/galleria.classic.css +217 -0
- data/assets/galleria/themes/classic/galleria.classic.js +117 -0
- data/assets/galleria/themes/classic/galleria.classic.min.css +1 -0
- data/assets/galleria/themes/classic/galleria.classic.min.js +10 -0
- data/assets/galleria/themes/folio/demo-cdn.html +106 -0
- data/assets/galleria/themes/folio/demo-retina.html +108 -0
- data/assets/galleria/themes/folio/demo.html +108 -0
- data/assets/galleria/themes/folio/galleria.folio.css +185 -0
- data/assets/galleria/themes/folio/galleria.folio.js +488 -0
- data/assets/galleria/themes/folio/galleria.folio.min.css +1 -0
- data/assets/galleria/themes/folio/galleria.folio.min.js +10 -0
- data/assets/galleria/themes/fullscreen/demo-cdn.html +103 -0
- data/assets/galleria/themes/fullscreen/demo-retina.html +105 -0
- data/assets/galleria/themes/fullscreen/demo.html +103 -0
- data/assets/galleria/themes/fullscreen/galleria.fullscreen.css +219 -0
- data/assets/galleria/themes/fullscreen/galleria.fullscreen.js +197 -0
- data/assets/galleria/themes/fullscreen/galleria.fullscreen.min.css +1 -0
- data/assets/galleria/themes/fullscreen/galleria.fullscreen.min.js +10 -0
- data/assets/galleria/themes/fullscreen/index.html +0 -0
- data/assets/galleria/themes/miniml/demo-cdn.html +113 -0
- data/assets/galleria/themes/miniml/demo-retina.html +115 -0
- data/assets/galleria/themes/miniml/demo.html +115 -0
- data/assets/galleria/themes/miniml/galleria.miniml.css +224 -0
- data/assets/galleria/themes/miniml/galleria.miniml.js +171 -0
- data/assets/galleria/themes/miniml/galleria.miniml.min.css +1 -0
- data/assets/galleria/themes/miniml/galleria.miniml.min.js +10 -0
- data/assets/galleria/themes/twelve/demo-cdn.html +120 -0
- data/assets/galleria/themes/twelve/demo-retina.html +121 -0
- data/assets/galleria/themes/twelve/demo.html +121 -0
- data/assets/galleria/themes/twelve/galleria.twelve.css +296 -0
- data/assets/galleria/themes/twelve/galleria.twelve.js +301 -0
- data/assets/galleria/themes/twelve/galleria.twelve.min.css +1 -0
- data/assets/galleria/themes/twelve/galleria.twelve.min.js +10 -0
- data/assets/js/jquery-3.6.0.min.js +2 -0
- metadata +55 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c6042d1f2fa9618661de3faf92961ada9f0afd1b2c574ff14d292323a8d0002
|
4
|
+
data.tar.gz: 7a8073a192a04428aaef7bacbaa10e781a30cbe0ff46f52700b7a2428278f436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4378c3cb266a96c591cf6365e0284c308256e8ee68ee6a641f38fa3f0f83d90ad6cfb21c3c064ed96f393322639759669ee5a18ddda5666958592be89e5d0154
|
7
|
+
data.tar.gz: 93486a53817626e6b13f96ac1f8d656921e93098fcaf015873d0fe01831c6eea8c760730a57e52ea1e43e02837e8111883e41dfab7616048832d63a259779916
|
data/README.md
CHANGED
@@ -17,7 +17,8 @@ This Theme is a port of [Hugo Swift Theme](https://github.com/onweru/hugo-swift-
|
|
17
17
|
* Pagination
|
18
18
|
* Dark Mode
|
19
19
|
* Native lazy loading of images
|
20
|
-
* Picture & Gallery Support
|
20
|
+
* Picture & [Gallery](https://galleriajs.github.io) Support
|
21
|
+
* Flickr Album Support
|
21
22
|
* YouTube Video Support
|
22
23
|
|
23
24
|
### TODO
|
@@ -53,6 +54,14 @@ Then you can include the gallery with the used key.
|
|
53
54
|
{% include shorts/gallery.html name="example" %}
|
54
55
|
```
|
55
56
|
|
57
|
+
### Flickr Album
|
58
|
+
|
59
|
+
You can include a flickr album in your article. For this you need to include `flickr.album.html` with the flickr id of the album.
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
{% include shorts/flickr-album.html albumId="72157711928042766" %}
|
63
|
+
```
|
64
|
+
|
56
65
|
### YouTube Video Support
|
57
66
|
|
58
67
|
You can include a youtube video very simple.
|
data/_includes/head.html
CHANGED
@@ -9,8 +9,13 @@
|
|
9
9
|
<link rel='icon' type='image/png' sizes='16x16' href='{{ "/assets/images/icons/favicon-16x16.png" | relative_url }}'>
|
10
10
|
<link rel='manifest' href='{{ "/assets/images/icons/site.webmanifest" | relative_url }}'>
|
11
11
|
|
12
|
-
|
13
12
|
{%- seo -%}
|
14
13
|
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
14
|
+
<link rel="stylesheet" href="{{ "/assets/galleria/themes/folio/galleria.folio.css" | relative_url }}">
|
15
15
|
{%- feed_meta -%}
|
16
|
+
|
17
|
+
<script src="{{ "/assets/js/jquery-3.6.0.min.js" | relative_url }}"></script>
|
18
|
+
<script src="{{ "/assets/galleria/galleria.min.js" | relative_url }}"></script>
|
19
|
+
<script src="{{ "/assets/galleria/plugins/flickr/galleria.flickr.min.js" | relative_url }}"></script>
|
20
|
+
<script src="{{ "/assets/galleria/themes/folio/galleria.folio.min.js" | relative_url }}"></script>
|
16
21
|
</head>
|
@@ -1,9 +1,11 @@
|
|
1
1
|
{% assign gallery = site.data.gallery[include.name] %}
|
2
2
|
|
3
|
-
<div class="
|
3
|
+
<div class="galleria galleria-{{ include.name }}">
|
4
4
|
{% for item in gallery %}
|
5
|
-
|
6
|
-
<img src="{{ '/assets/images/' | append: item.image | relativePath }}" class="gallery_image" alt="{{ item.description }}" />
|
7
|
-
</figure>
|
5
|
+
<img src="{{ '/assets/images/' | append: item.image | relativePath }}" data-description="{{ item.description }}" />
|
8
6
|
{% endfor %}
|
9
|
-
</div>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
$('.galleria-{{ include.name }}').galleria();
|
11
|
+
</script>
|