whiteblog-theme 0.1.2 → 0.1.3
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/_layouts/post.html +34 -18
- data/_pages/about.md +2 -2
- data/_sass/whiteblog-theme/_layout.scss +66 -25
- data/assets/js/main.js +1 -1
- 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: a5cf4b9505de2ecabd8f208f57d0addcf2ea36fda1360656c27d847b82dc32db
|
4
|
+
data.tar.gz: 3d243726fcc0cb637d73911ea48674b90131e7d713195ec10d516e45d80b038f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29fe9de47e74be0e1b46da42ed42869a5b00805bf7aa55e65b645ac0afb830ce96fb188cd561127f1b9baac848516203f631ceb6cafa8a9bba6eb4ac1c10a68c
|
7
|
+
data.tar.gz: 279c6d8e00f2880881cb7a9bf12977e3560e806c43df74e25e487394dfce36767c23894e99df307f6b7f70359ce768794eefdf3acdcb9c88e3da6f69ac918090
|
data/_layouts/post.html
CHANGED
@@ -26,23 +26,39 @@ layout: default
|
|
26
26
|
<h1>
|
27
27
|
<span class="underline">{{ page.title | escape }}</span>
|
28
28
|
</h1>
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
29
|
+
<div class="text-secondary">
|
30
|
+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
31
|
+
{% assign date_format = site.theme.date_format | default: "%b %-d, %Y" %}
|
32
|
+
{{ page.date | date: date_format }}
|
33
|
+
</time>
|
34
|
+
{% if site.addons.old_post_warning %}
|
35
|
+
{% assign current_timestamp = 'now' | date: '%s' | plus: 0 %}
|
36
|
+
{% assign one_year_ago = current_timestamp | minus: 31536000 %}
|
37
|
+
{% assign post_date = page.date | date: '%s' | plus: 0 %}
|
38
|
+
{% if post_date < one_year_ago %}
|
39
|
+
<div class="warning-container">
|
40
|
+
<div class="warning-badge">
|
41
|
+
<span class="warning-icon"></span>
|
42
|
+
<span class="warning-text">This post is over a year old and may be outdated.</span>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
{% endif %}
|
46
|
+
{% endif %}
|
47
|
+
</div>
|
48
|
+
<div>
|
49
|
+
<!--<span style="display:inline-block; width: 6px;"></span> -->
|
50
|
+
{% if post %}
|
51
|
+
{% assign categories = post.categories %}
|
52
|
+
{% else %}
|
53
|
+
{% assign categories = page.categories %}
|
54
|
+
{% endif %}
|
55
|
+
<h5 id="category-badge">
|
56
|
+
{% for category in categories %}
|
57
|
+
<a href="{{site.baseurl}}/categories/#{{category|slugize}}" class="badge" >{{category}}</a>
|
58
|
+
{% unless forloop.last %} {% endunless %}
|
59
|
+
{% endfor %}
|
60
|
+
</h5>
|
61
|
+
</div>
|
46
62
|
</header>
|
47
63
|
|
48
64
|
<div class="text-justify" id="content">
|
@@ -72,4 +88,4 @@ layout: default
|
|
72
88
|
</div>
|
73
89
|
|
74
90
|
</article>
|
75
|
-
</div>
|
91
|
+
</div>
|
data/_pages/about.md
CHANGED
@@ -10,6 +10,6 @@ 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.
|
13
|
+
<img class="about-image" src="{{ site.author.about-photo }}" alt="{{ site.author.name }}" />
|
14
14
|
</div>
|
15
|
-
</div>
|
15
|
+
</div>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
--color-dark: #CCCCCC;
|
24
24
|
--color-highlight: #D83F87;
|
25
25
|
--color-code: #FF6B9D;
|
26
|
-
--color-code-bg: #
|
26
|
+
--color-code-bg: #282a36;
|
27
27
|
--color-notice: #4A3B5C;
|
28
28
|
--font-main: 'Space Grotesk', system-ui, -apple-system, sans-serif;
|
29
29
|
--container-width: 90%;
|
@@ -163,27 +163,14 @@ main {
|
|
163
163
|
|
164
164
|
.bounce-link {
|
165
165
|
font-weight: bold;
|
166
|
-
position: relative;
|
167
|
-
overflow: hidden;
|
168
166
|
text-decoration: none;
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
width: calc(100% - 8px);
|
177
|
-
height: calc(100% - 8px);
|
178
|
-
// z-index: -1;
|
179
|
-
transition: 0.35s cubic-bezier(0.25, 0.1, 0, 2.05);
|
180
|
-
}
|
181
|
-
&:hover:after {
|
182
|
-
left: 0;
|
183
|
-
bottom: -2px;
|
184
|
-
width: 100%;
|
185
|
-
height: 100%;
|
186
|
-
}
|
167
|
+
background-image: linear-gradient(var(--color-bg) 50%, var(--color-accent) 50%);
|
168
|
+
background-size: auto 175%;
|
169
|
+
transition: background .3s ease-in-out;
|
170
|
+
|
171
|
+
&:hover {
|
172
|
+
background-position-y: 100%;
|
173
|
+
}
|
187
174
|
}
|
188
175
|
|
189
176
|
.link {
|
@@ -494,8 +481,12 @@ p {
|
|
494
481
|
}
|
495
482
|
|
496
483
|
.text-secondary {
|
484
|
+
min-height: 28px;
|
497
485
|
font-weight: 700;
|
498
486
|
margin-bottom: 8px !important;
|
487
|
+
display: flex;
|
488
|
+
align-items: center;
|
489
|
+
gap: 12px;
|
499
490
|
}
|
500
491
|
|
501
492
|
.text-justify {
|
@@ -539,10 +530,9 @@ blockquote p {
|
|
539
530
|
.highlight pre {
|
540
531
|
border-radius: 0.25rem;
|
541
532
|
padding: 1rem 1rem;
|
542
|
-
// margin: 0.75rem 0;
|
543
533
|
overflow: auto;
|
534
|
+
background-color: var(--color-code-bg) !important;
|
544
535
|
white-space: pre-wrap;
|
545
|
-
background-color: #fafafa !important;
|
546
536
|
min-width: 100%;
|
547
537
|
}
|
548
538
|
|
@@ -550,7 +540,6 @@ blockquote p {
|
|
550
540
|
position: absolute;
|
551
541
|
top: 0.5rem;
|
552
542
|
right: 0.5rem;
|
553
|
-
// color: var(--color-bg);
|
554
543
|
background: none;
|
555
544
|
border: none;
|
556
545
|
cursor: pointer;
|
@@ -669,6 +658,57 @@ svg {
|
|
669
658
|
}
|
670
659
|
}
|
671
660
|
|
661
|
+
.warning-container {
|
662
|
+
position: relative;
|
663
|
+
}
|
664
|
+
|
665
|
+
.warning-badge {
|
666
|
+
display: flex;
|
667
|
+
align-items: center;
|
668
|
+
gap: 4px;
|
669
|
+
background-color: #fff3cd;
|
670
|
+
color: #856404;
|
671
|
+
padding: 4px 8px;
|
672
|
+
border: 1px solid #ffeaa7;
|
673
|
+
border-radius: 4px;
|
674
|
+
font-size: 12px;
|
675
|
+
font-weight: 500;
|
676
|
+
transition: all 0.3s ease;
|
677
|
+
width: auto;
|
678
|
+
min-width: fit-content;
|
679
|
+
}
|
680
|
+
|
681
|
+
.warning-icon {
|
682
|
+
display: block;
|
683
|
+
width: 12px;
|
684
|
+
height: 12px;
|
685
|
+
background-color: #ffc107;
|
686
|
+
border-radius: 50%;
|
687
|
+
position: relative;
|
688
|
+
flex-shrink: 0;
|
689
|
+
}
|
690
|
+
|
691
|
+
.warning-icon::before {
|
692
|
+
content: "!";
|
693
|
+
position: absolute;
|
694
|
+
top: 50%;
|
695
|
+
left: 50%;
|
696
|
+
transform: translate(-50%, -50%);
|
697
|
+
color: white;
|
698
|
+
font-size: 9px;
|
699
|
+
font-weight: bold;
|
700
|
+
}
|
701
|
+
|
702
|
+
.warning-text {
|
703
|
+
position: relative;
|
704
|
+
white-space: nowrap;
|
705
|
+
}
|
706
|
+
|
707
|
+
.warning-badge:hover .warning-text::after {
|
708
|
+
opacity: 1;
|
709
|
+
width: auto;
|
710
|
+
}
|
711
|
+
|
672
712
|
.chevron {
|
673
713
|
color: var(--color-primary);
|
674
714
|
border-style: solid;
|
@@ -889,4 +929,5 @@ svg {
|
|
889
929
|
transition-duration: 0.01ms !important;
|
890
930
|
scroll-behavior: auto !important;
|
891
931
|
}
|
892
|
-
}
|
932
|
+
}
|
933
|
+
|
data/assets/js/main.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
const copyButtonSVG = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="
|
1
|
+
const copyButtonSVG = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="#FAFAFA" class="bi bi-copy" viewBox="0 0 16 16">
|
2
2
|
<path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z"/>
|
3
3
|
</svg>`;
|
4
4
|
|
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.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|