whiteblog-theme 0.2.0 → 0.3.1
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/_includes/comments-providers/cusdis.html +1 -1
- data/_includes/comments-providers/giscus.html +17 -0
- data/_includes/comments.html +2 -0
- data/_includes/sidebar.html +4 -1
- data/_layouts/post.html +5 -4
- data/_sass/whiteblog-theme/_layout.scss +11 -4
- data/assets/images/avatar.webp +0 -0
- data/assets/js/main.js +2 -5
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 341581121cc9cf2d1ef4e95416c63f298dc676a71d3e7170a42e7bbd62f54a7c
|
|
4
|
+
data.tar.gz: 011ad76739cdad113064665d89e6b69b0e3788e2a3cec4c9fb3c20a6eafe9b6e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 411e1be046b10de9928b204a704e72926a0bb2858b2964354f1f98c96ac4e4d8645b4b7755bd8ab844d9899e1102664bb5b3f772676e82994279ac53c5321af2
|
|
7
|
+
data.tar.gz: b873c850c0b0f2d5ab46b1a76849e67900eb105fb3190c16ed884f2c9aa4f79b9454eb3aaf8f761b3e68ec9d882db449d145b7dc05317e43392f926c97a4194a
|
|
@@ -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 %}
|
data/_includes/comments.html
CHANGED
data/_includes/sidebar.html
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
<aside>
|
|
2
2
|
<section class="author-info">
|
|
3
3
|
<!-- <h2>Sobre el Autor</h2> -->
|
|
4
|
-
<
|
|
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">
|
data/_layouts/post.html
CHANGED
|
@@ -100,10 +100,11 @@ layout: default
|
|
|
100
100
|
{% include backtotop.html %}
|
|
101
101
|
{% endif %}
|
|
102
102
|
|
|
103
|
-
{% if site.comments.provider%}
|
|
104
|
-
{%
|
|
105
|
-
{%
|
|
106
|
-
|
|
103
|
+
{% if site.comments.provider %}
|
|
104
|
+
{% case site.comments.provider %}
|
|
105
|
+
{% when "disqus" %}
|
|
106
|
+
{% include comments-providers/disqus.html %}
|
|
107
|
+
{% endcase %}
|
|
107
108
|
{% endif %}
|
|
108
109
|
</div>
|
|
109
110
|
|
|
@@ -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
|
|
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)
|
|
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
|
|
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
|
|
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.
|
|
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.
|
|
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.
|
|
4
|
+
version: 0.3.1
|
|
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-
|
|
11
|
+
date: 2026-06-14 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
|