whiteblog-theme 0.1.6 → 0.1.7

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: 0d82eb241af8c7d516f58e4ed498695c7d43b328e2359ec6945709136a2727a8
4
- data.tar.gz: eb1b8ad0244f0b6adc13ff4abbd0bb08823c183d0bb548a01f664f649de321a5
3
+ metadata.gz: 36a4c233b3d6621d70fc24d3c6cf722f4692f235d61824a746b85e7d1db3ec9c
4
+ data.tar.gz: 4892aa9f20adda332680928eddb5c6c03cc8a9ecb2ecf8d11ecb97f5fe551e32
5
5
  SHA512:
6
- metadata.gz: fbf30f8bf4735f4f194b6b84ca9225fdaee48b7ffeaa8b7bca3fc108636a405caa3766f9e6c30def34d34ce6e5c5b84362fc4da8be263b8823c5676ebe9818f4
7
- data.tar.gz: a73b0178dde549c8e530dc944ce166beb3b49d884cdc9f2a33e6a90ca0a2f805e3b9674e62cf24fc5a5fbc44d6f08897b139db704342364b8651cfe7cef26ba4
6
+ metadata.gz: 824fbe475d2852dffe6d9276b61af0f0cfcbe367969efb5d812da23588df94e575c9a3812ddf364f392898bf2dc720d486d22561f9c51513c595a2aeb7dd1c11
7
+ data.tar.gz: a04cc892f6bf0b6ffb422c388f502c922a4d55b6ee4349847f5d7ea4cb7ba351700484324d787e562245705c371fc7100920551eb272fe2ff4ebe7a56ec1f66c
data/_includes/head.html CHANGED
@@ -4,16 +4,25 @@
4
4
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
6
 
7
- <meta name="twitter:card"
8
- content="summary_large_image">
7
+ <title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }}{% endif %}</title>
8
+ <link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico">
9
+
10
+ {% if page.description %}
11
+ <meta name="description" content="{{ page.description | escape }}">
12
+ {% elsif site.description %}
13
+ <meta name="description" content="{{ site.description | escape }}">
14
+ {% endif %}
15
+
16
+ <meta name="twitter:card" content="summary_large_image">
9
17
  <meta name="twitter:image"
10
- content="{{ site.url }}/assets/images/previews/{{ page.slug }}.png">
18
+ content="{{ site.url }}/assets/images/previews/{{ page.slug | default: 'default' }}.png">
11
19
  <meta property="og:image"
12
- content="{{ site.url }}/assets/images/previews/{{ page.slug }}.png">
20
+ content="{{ site.url }}/assets/images/previews/{{ page.slug | default: 'default' }}.png">
13
21
 
14
22
  <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
15
23
  <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
16
24
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
25
+ <link rel="sitemap" type="application/xml" href="{{ '/sitemap.xml' | relative_url }}">
17
26
 
18
27
  {% if page.head_inline %}
19
28
  {{ page.head_inline }}
@@ -6,8 +6,8 @@
6
6
  })();
7
7
  </script>
8
8
 
9
- <script src="{{ '/assets/js/theme-toggle.js' | relative_url }}"></script>
10
- <script src="{{ '/assets/js/main.js' | relative_url }}"></script>
9
+ <script defer src="{{ '/assets/js/theme-toggle.js' | relative_url }}"></script>
10
+ <script defer src="{{ '/assets/js/main.js' | relative_url }}"></script>
11
11
 
12
12
  {% if site.analytics %}
13
13
  {% include /analytics/googleAnalytics.html %}
@@ -3,8 +3,6 @@
3
3
  <!DOCTYPE html>
4
4
  <html lang="{{ page.lang | default: site.lang | default: "en" }}">
5
5
 
6
- <title>{{ site.title }}</title>
7
- <link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico">
8
6
  {% include head.html %}
9
7
 
10
8
  <body>
data/_pages/about.md CHANGED
@@ -10,6 +10,9 @@ permalink: /about/
10
10
  <p>Hi, I'm <b><i>Victor Silva</i></b>, a software engineer with a passion for development and security. I'm currently working at <a class="bounce-link" href="https://www.mercadolibre.com">Mercado Libre</a> as a Cloud Security Engineer. You can check out my personal blog <a class="bounce-link" href="https://blog.victorsilva.com.uy">$blogTopics | % {echo $_}</a></p>
11
11
  </div>
12
12
  <div class="center">
13
- <img class="about-image" src="{{ site.author.about-photo }}" alt="{{ site.author.name }}" />
13
+ <picture>
14
+ <source srcset="{{ site.author.about-photo | replace: '.jpg', '.webp' }}" type="image/webp">
15
+ <img class="about-image" src="{{ site.author.about-photo }}" alt="{{ site.author.name }}" loading="lazy">
16
+ </picture>
14
17
  </div>
15
18
  </div>
Binary file
data/assets/js/main.js CHANGED
@@ -28,19 +28,23 @@ blocks.forEach((block) => {
28
28
  async function copyCode(block, button) {
29
29
  let code = block.querySelector("code");
30
30
  let text = code.innerText;
31
- await navigator.clipboard.writeText(text);
32
-
33
- // visual feedback that task is completed
34
- button.innerHTML = checkmarkSVG; // Checkmark symbol
35
- button.style.backgroundColor = "green";
36
- button.style.color = "white";
37
- button.style.borderRadius = "4px";
38
-
39
- setTimeout(() => {
40
- button.innerHTML = copyButtonSVG;
41
- button.style.backgroundColor = "";
42
- button.style.color = "";
43
- }, 1000);
31
+
32
+ try {
33
+ await navigator.clipboard.writeText(text);
34
+ button.innerHTML = checkmarkSVG;
35
+ button.style.backgroundColor = "green";
36
+ button.style.color = "white";
37
+ button.style.borderRadius = "4px";
38
+
39
+ setTimeout(() => {
40
+ button.innerHTML = copyButtonSVG;
41
+ button.style.backgroundColor = "";
42
+ button.style.color = "";
43
+ }, 1000);
44
+ } catch (err) {
45
+ button.innerHTML = "Error";
46
+ setTimeout(() => { button.innerHTML = copyButtonSVG; }, 1500);
47
+ }
44
48
  }
45
49
 
46
50
  let mainNav = document.getElementById("js-menu");
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whiteblog-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-07 00:00:00.000000000 Z
11
+ date: 2026-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -112,6 +112,7 @@ files:
112
112
  - assets/css/previews.css
113
113
  - assets/images/avatar.jpg
114
114
  - assets/images/bio-photo.jpg
115
+ - assets/images/bio-photo.webp
115
116
  - assets/images/favicon.ico
116
117
  - assets/images/ko-fi.png
117
118
  - assets/images/previews/hello-world.png