whiteblog-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4519436230a831742d9935980ecd091ea2d13a11a83ef341fdb3b79787ccc9c6
4
- data.tar.gz: 01fb551a7d1296ec14534a845a45b52da664526e41d88b8e9f5fe130f7394529
3
+ metadata.gz: c55a6469e871c37d6992a2f2cbc000ba7ce371419735c0feaaa92ed8e2b7ad74
4
+ data.tar.gz: bbfc901e9a5012fed0115321db4a9ac8b69ea8fba2cbcf589018496205768cb1
5
5
  SHA512:
6
- metadata.gz: a46a5dac18b4cbe894c3f2c0f8f47c51a836c0fc731109eaa13091e94546b98408fa3e1a7d63823afa23d57ce2d6048218a4ebfd58531b294e52e89b8cf2a5a3
7
- data.tar.gz: 8a72668232e20f00935cf84b38e47ae433aad7b823ed6fc7e9692fe2a2e382ac3cefa4c51fbd32bb2955b1a2d197306b83ae49713c4f538e68a1485277530ff7
6
+ metadata.gz: 178701079f4b6127df1723e13120db1e703ab576ba99b3357046c038b4900b7db55c7682a5c99b6b8803ce712294ca9583cca29b9a192abe969b9b57434d0652
7
+ data.tar.gz: 28eb1f5affb6aaf59ae2b450e9724c4bc6166181620bbfd962b50c57cdb2c1c7aa0b50c27135cc7a8cf9991938bde1908062995004d60f3d2353bed65ef61f4d
@@ -1,4 +1,4 @@
1
- {% if site.comments.disqus.shortname %}
1
+ {% if site.comments.cusdis.appId %}
2
2
  <!--Every article has a id, but special pages don't unless you set manually.
3
3
  This prevents Cusdis from appear everywhere-->
4
4
  <div id="cusdis_thread"
@@ -0,0 +1,17 @@
1
+ {% if site.comments.giscus.repo %}
2
+ <script src="https://giscus.app/client.js"
3
+ data-repo="{{ site.comments.giscus.repo }}"
4
+ data-repo-id="{{ site.comments.giscus.repo_id }}"
5
+ data-category="{{ site.comments.giscus.category }}"
6
+ data-category-id="{{ site.comments.giscus.category_id }}"
7
+ data-mapping="{{ site.comments.giscus.mapping | default: 'pathname' }}"
8
+ data-strict="0"
9
+ data-reactions-enabled="{{ site.comments.giscus.reactions_enabled | default: '1' }}"
10
+ data-emit-metadata="0"
11
+ data-input-position="{{ site.comments.giscus.input_position | default: 'top' }}"
12
+ data-theme="{{ site.comments.giscus.theme | default: 'preferred_color_scheme' }}"
13
+ data-lang="{{ site.comments.giscus.lang | default: 'en' }}"
14
+ crossorigin="anonymous"
15
+ async>
16
+ </script>
17
+ {% endif %}
@@ -6,5 +6,7 @@
6
6
  {% when "cusdis" %}
7
7
  <h4>Comments</h4>
8
8
  {% include comments-providers/cusdis.html %}
9
+ {% when "giscus" %}
10
+ {% include comments-providers/giscus.html %}
9
11
  {% endcase %}
10
12
  </div>
@@ -1,7 +1,10 @@
1
1
  <aside>
2
2
  <section class="author-info">
3
3
  <!-- <h2>Sobre el Autor</h2> -->
4
- <img class="about-image-small" src="{{ site.author.avatar }}" alt="{{ site.author.name }}">
4
+ <picture>
5
+ <source srcset="{{ site.author.avatar | replace: '.jpg', '.webp' | replace: '.jpeg', '.webp' | replace: '.png', '.webp' }}" type="image/webp">
6
+ <img class="about-image-small" src="{{ site.author.avatar }}" alt="{{ site.author.name }}" loading="lazy">
7
+ </picture>
5
8
  <h2>{{ site.author.name }}</h2>
6
9
  </section>
7
10
  <section class="useful-links">
@@ -10,6 +10,7 @@
10
10
  --color-code: #D63384;
11
11
  --color-code-bg: #282a36;
12
12
  --color-notice: #CFBAE1;
13
+ --color-success: #28a745;
13
14
  --font-main: 'Space Grotesk', system-ui, -apple-system, sans-serif;
14
15
  --container-width: 90%;
15
16
  --transition-default: all 0.3s ease-in-out;
@@ -481,7 +482,7 @@ p {
481
482
  .text-secondary {
482
483
  min-height: 28px;
483
484
  font-weight: 700;
484
- margin-bottom: 8px !important;
485
+ margin-bottom: 8px;
485
486
  display: flex;
486
487
  align-items: center;
487
488
  gap: 12px;
@@ -528,7 +529,7 @@ blockquote p {
528
529
  border-radius: 0.25rem;
529
530
  padding: 1rem 1rem;
530
531
  overflow: auto;
531
- background-color: var(--color-code-bg) !important;
532
+ background-color: var(--color-code-bg);
532
533
  white-space: pre-wrap;
533
534
  min-width: 100%;
534
535
  }
@@ -543,6 +544,12 @@ blockquote p {
543
544
  padding: 0.25rem;
544
545
  }
545
546
 
547
+ .highlight pre button.copy-success {
548
+ background-color: var(--color-success);
549
+ color: white;
550
+ border-radius: 4px;
551
+ }
552
+
546
553
  .post .text-justify#content ol {
547
554
  margin-left: 2rem;
548
555
  margin-bottom: 1rem;
@@ -560,7 +567,7 @@ ul {
560
567
  }
561
568
 
562
569
  .archive-group th {
563
- text-align: start !important;
570
+ text-align: start;
564
571
  padding-right: 0.5rem;
565
572
  min-width: 150px;
566
573
  }
@@ -591,7 +598,7 @@ svg {
591
598
  }
592
599
 
593
600
  .social-networks-icons {
594
- vertical-align: unset !important
601
+ vertical-align: unset;
595
602
  }
596
603
 
597
604
  .float-abajo {
Binary file
data/assets/js/main.js CHANGED
@@ -32,14 +32,11 @@ async function copyCode(block, button) {
32
32
  try {
33
33
  await navigator.clipboard.writeText(text);
34
34
  button.innerHTML = checkmarkSVG;
35
- button.style.backgroundColor = "green";
36
- button.style.color = "white";
37
- button.style.borderRadius = "4px";
35
+ button.classList.add("copy-success");
38
36
 
39
37
  setTimeout(() => {
40
38
  button.innerHTML = copyButtonSVG;
41
- button.style.backgroundColor = "";
42
- button.style.color = "";
39
+ button.classList.remove("copy-success");
43
40
  }, 1000);
44
41
  } catch (err) {
45
42
  button.innerHTML = "Error";
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.2.0
4
+ version: 0.3.0
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-04-09 00:00:00.000000000 Z
11
+ date: 2026-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -85,6 +85,7 @@ files:
85
85
  - _includes/backtotop.html
86
86
  - _includes/comments-providers/cusdis.html
87
87
  - _includes/comments-providers/disqus.html
88
+ - _includes/comments-providers/giscus.html
88
89
  - _includes/comments.html
89
90
  - _includes/footer.html
90
91
  - _includes/gallery
@@ -111,6 +112,7 @@ files:
111
112
  - assets/css/main.scss
112
113
  - assets/css/previews.css
113
114
  - assets/images/avatar.jpg
115
+ - assets/images/avatar.webp
114
116
  - assets/images/bio-photo.jpg
115
117
  - assets/images/bio-photo.webp
116
118
  - assets/images/favicon.ico