jekyll-theme-profile 1.8.4 → 1.8.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 +4 -4
- data/README.md +2 -2
- data/_includes/post-timeline-card.html +2 -3
- data/assets/js/theme-toggle.js +4 -1
- data/assets/js/timeline.js +42 -22
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c338ecc61d0ef11ef731ad95b3dc73329e4161824080d94038b6b040d66c44c
|
4
|
+
data.tar.gz: 0cc76009af611f8d86b984feb46399501ecb7fddf8259de967f64f01cde81098
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aad022b02d14dccb49e37e9426d0ad969c18bcdd8b9bcb80e8b97baa46335a52edbac218b170ef54f99c910549192a43772a0fd9f32e0131d805f74be6e9a885
|
7
|
+
data.tar.gz: da4406630319fba0bddd46bf83bd5b072d12e83aae62d0b7fb5b87b27d65dc6cc9508c8fd0391114831e524c55da55287889fea452968df40e32f1aeb6ccc816
|
data/README.md
CHANGED
@@ -99,7 +99,7 @@ jobs:
|
|
99
99
|
JEKYLL_ENV: production
|
100
100
|
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
101
101
|
- name: Upload artifact
|
102
|
-
uses: actions/upload-pages-artifact@
|
102
|
+
uses: actions/upload-pages-artifact@v3
|
103
103
|
|
104
104
|
# Deployment job
|
105
105
|
deploy:
|
@@ -112,7 +112,7 @@ jobs:
|
|
112
112
|
steps:
|
113
113
|
- name: Deploy to GitHub Pages
|
114
114
|
id: deployment
|
115
|
-
uses: actions/deploy-pages@
|
115
|
+
uses: actions/deploy-pages@v4
|
116
116
|
|
117
117
|
```
|
118
118
|
|
@@ -22,9 +22,8 @@
|
|
22
22
|
<div class="col-12 col-md-7">
|
23
23
|
<div class="ml-5 mt-5">
|
24
24
|
{%- if post.video %}
|
25
|
-
<div class="image-container mb-5">
|
26
|
-
<iframe
|
27
|
-
allow="encrypted-media; fullscreen; picture-in-picture" allowfullscreen></iframe>
|
25
|
+
<div id="Timeline-video-container" class="image-container mb-5">
|
26
|
+
<iframe id="Timeline-video" src="{{ post.video }}" frameborder="0" height="inherited" width="inherited"></iframe>
|
28
27
|
</div>
|
29
28
|
{%- elsif post.image %}
|
30
29
|
<div class="image-container mb-5">
|
data/assets/js/theme-toggle.js
CHANGED
@@ -24,7 +24,9 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
24
24
|
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
|
25
25
|
expires = "; expires=" + date.toUTCString();
|
26
26
|
}
|
27
|
-
|
27
|
+
|
28
|
+
// Updated cookie settings
|
29
|
+
document.cookie = name + "=" + (value || "") + expires + "; path=/; samesite=Strict; secure";
|
28
30
|
}
|
29
31
|
|
30
32
|
function getCookie(name) {
|
@@ -58,6 +60,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
58
60
|
}
|
59
61
|
|
60
62
|
function updateThemeIcon(nextMode) {
|
63
|
+
var nextIcon;
|
61
64
|
if (nextMode === 'dark') {
|
62
65
|
nextIcon = 'moon';
|
63
66
|
} else if (nextMode === 'light') {
|
data/assets/js/timeline.js
CHANGED
@@ -1,29 +1,49 @@
|
|
1
|
-
// Fix timeline anchors
|
2
1
|
document.addEventListener("DOMContentLoaded", function () {
|
3
|
-
|
2
|
+
console.log("Timeline script is running!");
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
function updateTopBarHeight() {
|
5
|
+
// Recalculate topBarHeight
|
6
|
+
var topBarElement = document.querySelector('.topbar');
|
7
|
+
topBarHeight = topBarElement ? topBarElement.offsetHeight : 0;
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
9
|
+
// Update styles for each timeline title
|
10
|
+
timelineTitles.forEach(function (title) {
|
11
|
+
title.style.top = topBarHeight + "px";
|
12
|
+
});
|
13
|
+
console.log("Updated offsetHeight!");
|
14
|
+
}
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
// Set dimensions for all iframes with the same ID
|
17
|
+
function setIframeDimensions() {
|
18
|
+
var iframes = document.querySelectorAll('iframe[id="Timeline-video"]');
|
19
|
+
console.log(iframes.length);
|
20
|
+
var container = document.getElementById('Timeline-video-container');
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
+
// Get the container's dimensions
|
23
|
+
var containerWidth = container.offsetWidth;
|
24
|
+
var containerHeight = container.offsetHeight;
|
25
|
+
if (iframes) {
|
26
|
+
iframes.forEach(function (iframe) {
|
27
|
+
iframe.style.width = containerWidth + 'px';
|
28
|
+
iframe.style.height = containerHeight + 'px';
|
29
|
+
});
|
30
|
+
console.log("Updated iframes width x height: " + containerWidth + " x " + containerHeight);
|
31
|
+
}
|
32
|
+
}
|
22
33
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
34
|
+
// Default topBarHeight to 0 if .topbar doesn't exist
|
35
|
+
var topBarHeight = 0;
|
36
|
+
var timelineTitles = document.querySelectorAll(".TimelineItem-title");
|
37
|
+
|
38
|
+
// Initial update
|
39
|
+
updateTopBarHeight();
|
40
|
+
setIframeDimensions();
|
41
|
+
|
42
|
+
// Add event listener for window resize
|
43
|
+
window.addEventListener('resize', function () {
|
44
|
+
// Call the function to update topBarHeight and adjust styles
|
45
|
+
console.log("resizing elements");
|
46
|
+
updateTopBarHeight();
|
47
|
+
setIframeDimensions();
|
48
|
+
});
|
29
49
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-profile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allison Thackston
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|