eclipsefdn-hugo-solstice-theme 0.0.203 → 0.0.204

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.
@@ -13,3 +13,10 @@ draft: false
13
13
  You can add a youtube video to a markdown file using the following shortcode: **{{< youtube "6BsxSJJb6-g" >}}**
14
14
 
15
15
  {{< youtube "6BsxSJJb6-g" >}}
16
+
17
+ ## Resolution
18
+
19
+ To use the thumbnail with the highest available resolution, use the second
20
+ positional parameter and set the value to `"max"`.
21
+
22
+ {{< youtube "6BsxSJJb6-g" "max" >}}
@@ -1,4 +1,4 @@
1
- <!--
1
+ {{/*
2
2
  Copyright (c) 2018 Eclipse Foundation, Inc.
3
3
 
4
4
  This program and the accompanying materials are made available under the
@@ -9,6 +9,14 @@
9
9
  Christopher Guindon <chris.guindon@eclipse-foundation.org>
10
10
 
11
11
  SPDX-License-Identifier: EPL-2.0
12
- -->
12
+ */}}
13
13
 
14
- <a class="eclipsefdn-video" href="//www.youtube.com/embed/{{ index .Params 0 }}"></a>
14
+ {{ $thumbnail_resolution := index .Params 1 }}
15
+
16
+ <a
17
+ class="eclipsefdn-video"
18
+ href="//www.youtube.com/embed/{{ index .Params 0 }}"
19
+ {{ with $thumbnail_resolution }}
20
+ data-thumbnail-resolution={{ . }}
21
+ {{ end }}
22
+ ></a>
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "webpack.min.js",
5
5
  "author": "Christopher Guindon",
6
6
  "license": "EPL-2.0",
7
- "version": "0.0.203",
7
+ "version": "0.0.204",
8
8
  "bugs": {
9
9
  "url": "https://gitlab.eclipse.org/eclipsefdn/it/webdev/hugo-solstice-theme/-/issues"
10
10
  },
@@ -23,7 +23,7 @@
23
23
  "readmeFilename": "README.md",
24
24
  "dependencies": {
25
25
  "axios": "^1.6.0",
26
- "eclipsefdn-solstice-assets": "0.0.252",
26
+ "eclipsefdn-solstice-assets": "0.0.253",
27
27
  "json2yaml": "^1.1.0",
28
28
  "toml": "^3.0.0"
29
29
  },