whiteblog-theme 0.0.14 → 0.0.16

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: 10bc04709c0ac729b145affc621390fc5b2a06c7f5e6e2c2853cc33db3197b82
4
- data.tar.gz: 680363d5dd313280a5e95152f8cada0be0cfc446505a04654b1c16ff2b3a2933
3
+ metadata.gz: df57117387f42de7cd314d19f7ad1da721d289a3d1387ef72e302f42dc91b071
4
+ data.tar.gz: f553c90ded41fb834e258b0f995ee5e6db651a00eb3d4efdecb6da28e610b596
5
5
  SHA512:
6
- metadata.gz: 1adeff909b69796d1e0b8761538b0b21638ef6e21725a8cf33404ca326a4fa533e802e18a1c3503adbbaa2d2794c6a9cc685779ca19a19cb280ce209e2616f45
7
- data.tar.gz: 2539e3a5f05aaa6bbe60bc43c712185c2e947db20afcf76b08e971049221b90a45179479ac0d39e750da4572e2c1d098c7d94e914c468c5013c9b68e7a65a674
6
+ metadata.gz: aa2d9101ea5e3d0cd49c175b372471c3ac1a245920877fdce8939349eceae325b859ec0b3ba2ce578448572f7fe9a7568696514ef7419a4b50a9a8e59bb59b99
7
+ data.tar.gz: 78cd2a0bae81bbac1ce99e66e09a4d2afe91025dd2f73fa443b1a48ac1b7c77a917cd30bb55fd3dd6daaa55854d73ae3427693df14943833b3b4dbb11443bfcd
@@ -0,0 +1,11 @@
1
+ {% if site.analytics %}
2
+ <!-- Google tag (gtag.js) -->
3
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.tracking_id }}"></script>
4
+ <script>
5
+ window.dataLayer = window.dataLayer || [];
6
+ function gtag(){dataLayer.push(arguments);}
7
+ gtag('js', new Date());
8
+
9
+ gtag('config', '{{ site.analytics.google.tracking_id }}');
10
+ </script>
11
+ {% endif %}
@@ -1,8 +1,5 @@
1
- <div class="col float-end">
1
+ <div class="float-end">
2
2
  <a class="float-end back" href="#">
3
- <svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" fill="currentColor" class="bi bi-chevron-double-up" viewBox="0 1 16 16">
4
- <path fill-rule="evenodd" d="M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708z"/>
5
- <path fill-rule="evenodd" d="M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>
6
- </svg>
3
+ <span class="chevron top"></span>
7
4
  </a>
8
5
  </div>
@@ -1,18 +1,16 @@
1
1
  <footer id="site-footer">
2
2
  <div class="container">
3
- <div class="row">
4
- <div class="col-12 col-lg">
5
- <p>
6
- Made with
7
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-suit-heart-fill" viewBox="0 0 16 16">
8
- <path d="M4 1c2.21 0 4 1.755 4 3.92C8 2.755 9.79 1 12 1s4 1.755 4 3.92c0 3.263-3.234 4.414-7.608 9.608a.513.513 0 0 1-.784 0C3.234 9.334 0 8.183 0 4.92 0 2.755 1.79 1 4 1"/>
9
- </svg>
10
- and
11
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cup-fill" viewBox="0 0 16 16">
12
- <path fill-rule="evenodd" d="M.11 3.187A.5.5 0 0 1 .5 3h13a.5.5 0 0 1 .488.608l-.22.991a3.001 3.001 0 0 1-1.3 5.854l-.132.59A2.5 2.5 0 0 1 9.896 13H4.104a2.5 2.5 0 0 1-2.44-1.958L.012 3.608a.5.5 0 0 1 .098-.42Zm12.574 6.288a2 2 0 0 0 .866-3.899z"/>
13
- </svg>
14
- . Powered by <a class="link" href="https://jekyllrb.com/">Jekyll</a> and <a class="link" href="https://github.com/vmsilvamolina/whiteblog-theme">whiteblog-theme</a>.</p>
15
- </div>
3
+ <div class="footer-text">
4
+ <p>
5
+ Made with
6
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-suit-heart-fill" viewBox="0 0 16 16">
7
+ <path d="M4 1c2.21 0 4 1.755 4 3.92C8 2.755 9.79 1 12 1s4 1.755 4 3.92c0 3.263-3.234 4.414-7.608 9.608a.513.513 0 0 1-.784 0C3.234 9.334 0 8.183 0 4.92 0 2.755 1.79 1 4 1"/>
8
+ </svg>
9
+ and
10
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cup-fill" viewBox="0 0 16 16">
11
+ <path fill-rule="evenodd" d="M.11 3.187A.5.5 0 0 1 .5 3h13a.5.5 0 0 1 .488.608l-.22.991a3.001 3.001 0 0 1-1.3 5.854l-.132.59A2.5 2.5 0 0 1 9.896 13H4.104a2.5 2.5 0 0 1-2.44-1.958L.012 3.608a.5.5 0 0 1 .098-.42Zm12.574 6.288a2 2 0 0 0 .866-3.899z"/>
12
+ </svg>
13
+ . Powered by <a class="link" href="https://jekyllrb.com/">Jekyll</a> and <a class="link" href="https://github.com/vmsilvamolina/whiteblog-theme">whiteblog-theme</a> .</p>
16
14
  </div>
17
15
  </div>
18
16
  </footer>
data/_includes/head.html CHANGED
@@ -12,7 +12,7 @@
12
12
  content="{{ site.url }}/assets/images/previews/{{ page.slug }}.png">
13
13
 
14
14
  <!-- Bootstrap CSS -->
15
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
15
+ <!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous"> -->
16
16
 
17
17
 
18
18
  <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
@@ -1,19 +1,23 @@
1
- <nav class="navbar navbar-expand-lg bg-body-tertiary">
2
- <div class="container-fluid container">
3
- <a id="blog-title" class="navbar-brand" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
4
- <div class="justify-content-end">
5
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
6
- <span class="navbar-toggler-icon"></span>
7
- </button>
8
- <div class="collapse navbar-collapse justify-content-end" id="navbarNav">
9
- <ul class="navbar-nav">
1
+ <nav class="navbar">
2
+ <div class="container">
3
+ <a id="blog-title" class="navbarBrand" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
4
+ <div class="navbar-links">
5
+ <span class="nav-toggle" id="js-nav-toggle">
6
+ <svg viewBox="0 0 100 80" width="20" height="20">
7
+ <rect width="100" height="18" rx="8"></rect>
8
+ <rect y="30" width="100" height="18" rx="8"></rect>
9
+ <rect y="60" width="100" height="18" rx="8"></rect>
10
+ </svg>
11
+ </span>
12
+ <div id="navbarNav">
13
+ <ul class="lista" id="js-menu">
10
14
  {% assign default_paths = site.pages | map: "path" %}
11
15
  {% assign page_paths = site.header_pages | default: default_paths %}
12
16
  {% if page_paths %}
13
17
  {% for path in page_paths %}
14
18
  {% assign my_page = site.pages | where: "path", path | first %}
15
19
  {% if my_page.title %}
16
- <li class="nav-item"><a class="nav-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
20
+ <li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
17
21
  {% endif %}
18
22
  {% endfor %}
19
23
  {% endif %}
@@ -0,0 +1,5 @@
1
+ <script src="{{ '/assets/js/main.js' | relative_url }}"></script>
2
+
3
+ {% if site.analytics %}
4
+ {% include /analytics/googleAnalytics.html %}
5
+ {% endif %}
@@ -1,11 +1,12 @@
1
- <div class="col text-final" id="share-links">
1
+ <!-- <div class="col text-final" id="share-links"> -->
2
+ <div class="col text-final">
2
3
  <h5><i class="bi bi-share"></i></h5>
3
4
  <div class="row">
4
- <div class="col float-start">
5
+ <div class="float-start">
5
6
  <ul>
6
7
  <li>
7
8
  <a class="link" href="https://twitter.com/share?text={{ page.title | url_encode }}&url={{ site.url }}{{ page.url }}" target="_blank" rel="noopener" title="X.com">
8
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-twitter-x" viewBox="0 0 16 16">
9
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="social-networks-icons" viewBox="0 0 16 16">
9
10
  <path d="M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z"/>
10
11
  </svg>
11
12
  Share on X
@@ -13,7 +14,7 @@
13
14
  </li>
14
15
  <li>
15
16
  <a class="link" href="https://linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ page.url }}" target="_blank" rel="noopener" title="LinkedIn">
16
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-linkedin" viewBox="0 0 16 16">
17
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="social-networks-icons" viewBox="0 0 16 16">
17
18
  <path d="M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z"/>
18
19
  </svg>
19
20
  Share on LinkedIn
@@ -18,8 +18,8 @@ title: Categories
18
18
  <table>
19
19
  {% for post in site.categories[category_name] %}
20
20
  <tr>
21
- <th style="padding-right: 10px;">
22
- (<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date: "%b %-d, %Y" }}</time>)
21
+ <th>
22
+ (<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">{{ post.date | date: "%b %-d, %Y" }}</time>)
23
23
  </th>
24
24
  <th>
25
25
  <a href="{{ site.baseurl }}{{ post.url }}">{{post.title}}</a>
@@ -3,24 +3,24 @@
3
3
  <!DOCTYPE html>
4
4
  <html lang="{{ page.lang | default: site.lang | default: "en" }}">
5
5
 
6
- <title>{{ page.title }}</title>
7
- <link rel="icon" type="image/x-icon" href="/assets/images/favicon.svg">
8
- {% include head.html %}
6
+ <title>{{ site.title }}</title>
7
+ <link rel="icon" type="image/x-icon" href="/assets/images/favicon.ico">
8
+ {% include head.html %}
9
9
 
10
- <body>
10
+ <body>
11
11
 
12
- {% include header.html %}
12
+ {% include header.html %}
13
13
 
14
- <main>
15
- <div class="container" id="post">
16
- {{ content }}
17
- </div>
18
- </main>
14
+ <main>
15
+ <div class="container" id="post">
16
+ {{ content }}
17
+ </div>
18
+ </main>
19
19
 
20
- {% include footer.html %}
20
+ {% include footer.html %}
21
21
 
22
- <script src="{{ '/assets/js/main.js' | relative_url }}"></script>
22
+ {% include scripts.html %}
23
23
 
24
- </body>
24
+ </body>
25
25
 
26
- </html>
26
+ </html>
data/_layouts/home.html CHANGED
@@ -7,10 +7,10 @@ layout: default
7
7
 
8
8
  {% assign posts = site.posts %}
9
9
 
10
- <ul class="list-unstyled m-0 posts-list">
10
+ <ul>
11
11
  {% assign date_format = "%b %-d, %Y" %}
12
12
  {% for post in posts %}
13
- <li class="py-2">
13
+ <li class="post-resume">
14
14
  <h1 class="mt-1 mb-3 h3 title-post-resume">
15
15
  <a class="title-link" href="{{ post.url | relative_url }}"><span class="underline">{{ post.title | escape }}</span></a>
16
16
  </h1>
data/_layouts/page.html CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <article>
4
+ <article class="post">
5
5
 
6
6
  <header>
7
7
  <h1>
data/_layouts/post.html CHANGED
@@ -3,18 +3,16 @@ layout: default
3
3
  ---
4
4
  <article class="post">
5
5
 
6
- <div id="posts-navigation">
7
- <div class="row">
8
- <div class="previous col">
9
- {% if page.previous.url %}
10
- <a href="{{page.previous.url}}">&laquo; {{page.previous.title}}</a>
11
- {% endif %}
12
- </div>
13
- <div class="next col">
14
- {% if page.next.url %}
15
- <a class="next" href="{{page.next.url}}">{{page.next.title}} &raquo;</a>
16
- {% endif %}
17
- </div>
6
+ <div id="posts-navigation" class="row">
7
+ <div class="previous">
8
+ {% if page.previous.url %}
9
+ <a href="{{page.previous.url}}">&laquo; {{page.previous.title}}</a>
10
+ {% endif %}
11
+ </div>
12
+ <div class="next">
13
+ {% if page.next.url %}
14
+ <a href="{{page.next.url}}">{{page.next.title}} &raquo;</a>
15
+ {% endif %}
18
16
  </div>
19
17
  </div>
20
18
 
@@ -23,7 +21,6 @@ layout: default
23
21
  <span class="underline">{{ page.title | escape }}</span>
24
22
  </h1>
25
23
  <p class="text-secondary">
26
- <i class="bi bi-calendar"></i><span style="display:inline-block; width: 3px;"></span>
27
24
  <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
28
25
  {% assign date_format = site.theme.date_format | default: "%b %-d, %Y" %}
29
26
  {{ page.date | date: date_format }}
@@ -35,7 +32,7 @@ layout: default
35
32
  {% endif %}
36
33
  <h5 id="category-badge">
37
34
  {% for category in categories %}
38
- <a href="{{site.baseurl}}/categories/#{{category|slugize}}" class="badge badge badge-bounce-in" >{{category}}</a>
35
+ <a href="{{site.baseurl}}/categories/#{{category|slugize}}" class="badge" >{{category}}</a>
39
36
  {% unless forloop.last %}&nbsp;{% endunless %}
40
37
  {% endfor %}
41
38
  </h5>
data/_pages/about.md ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ title: About
3
+ author: Victor Silva
4
+ layout: page
5
+ permalink: /about/
6
+ ---
7
+
8
+ <div class="row">
9
+ <div class="center">
10
+ <p>Hi, I'm Victor Silva, a software engineer with a passion for web development and a love for open source. I'm currently working at <a href="https://www.mercadolibre.com">Mercado Libre</a> as a Frontend Developer. I'm also a contributor to the <a href="blog.victorsilva.dev">Victor Silva Blog</a></p>
11
+ </div>
12
+ <div class="center">
13
+ <img class="about-image" src="/assets/images/bio-photo.jpg">
14
+ </div>
15
+ </div>
data/_pages/search.md CHANGED
@@ -1,18 +1,14 @@
1
1
  ---
2
2
  title: Search
3
3
  author: Victor Silva
4
- layout: default
4
+ layout: page
5
5
  permalink: /search/
6
6
  ---
7
- <article class="post">
8
- <h1>
9
- <span class="underline">Search</span>
10
- </h1>
11
- <div id="search-container">
12
- <input type="text" id="search-input" placeholder="Search for interesting stuff... or maybe not...">
13
- <ul id="results-container"></ul>
14
- </div>
15
- </article>
7
+
8
+ <div id="search-container">
9
+ <input type="text" id="search-input" placeholder="Search for interesting stuff... or maybe not...">
10
+ <ul id="results-container"></ul>
11
+ </div>
16
12
 
17
13
  <script src="/assets/js/jekyll-search.min.js" type="text/javascript"></script>
18
14
  <script type="text/javascript">
@@ -1,321 +1,531 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
2
2
 
3
- //Color palette variables:
4
- $firstColor: #F5F5F5;
5
- $secondColor: #44cdd5;
6
- $thirdColor: #614bc3;
7
- $fourthColor: #212529;
8
- $fifthColor: #6C757D;
9
- $sixthColor: #25E498;
10
-
3
+ :root {
4
+ --color-bg: #F5F5F5;
5
+ --color-accent: #44cdd5;
6
+ --color-primary: #614bc3;
7
+ --color-text: #212529;
8
+ --color-dark: #313638;
9
+ --color-highlight: #25E498;
10
+ --color-code: rgb(214, 51, 132);
11
+ --font-main: 'Space Grotesk', system-ui, -apple-system, sans-serif;
12
+ --container-width: 80%;
13
+ --transition-default: all 0.3s ease-in-out;
14
+ }
15
+
16
+ *,
17
+ *::before,
18
+ *::after {
19
+ // box-sizing: border-box;
20
+ margin: 0;
21
+ padding: 0;
22
+ }
11
23
 
12
24
  html {
13
25
  scroll-behavior: smooth;
26
+ font-size: 16px;
27
+ background-color: var(--color-bg);
14
28
  }
15
29
 
16
30
  body {
17
- background-color: $firstColor;
18
- color: $fourthColor;
19
- font-family: "Space Grotesk";
20
- overflow-y: scroll;
21
- position: relative;
31
+ font-family: var(--font-main);
32
+ font-size: 1rem;
33
+ font-weight: 400;
34
+ line-height: 1.5;
35
+ color: var(--color-text);
36
+ background-color: var(--color-bg);
22
37
  min-height: 100vh;
38
+ position: relative;
39
+ overflow-y: scroll;
23
40
  }
24
41
 
25
- main {
26
- padding-bottom: 2.5rem;
42
+ .container {
43
+ max-width: var(--container-width);
44
+ margin: 0 auto;
27
45
  }
28
46
 
29
- .container {
30
- padding: 0em;
31
- max-width: 80% !important;
47
+ main {
48
+ padding-bottom: 4rem;
32
49
  }
33
50
 
34
51
  .navbar {
35
- background-color: $firstColor !important;
36
- padding: 30px 0px !important;
37
-
38
- a#blog-title{
39
- position: relative;
40
- font-weight: bold;
41
- font-weight: 600;
42
- z-index: 0;
43
- &::before {
44
- content: '';
45
- background-color: $sixthColor;
46
- left: -10px;
47
- position: absolute;
48
- bottom: 1px;
49
- width: 100%;
50
- height: 8px;
51
- z-index: -1;
52
- transition: all .3s ease-in-out;
53
- }
54
-
55
- &:hover::before {
56
- left: -10px;
57
- bottom: 0;
58
- height: 100%;
59
- width: calc(110% + 5px);
60
- }
52
+ width: 100%;
53
+ background-color: var(--color-bg);
54
+ padding: 1.9rem 0;
55
+ position: relative;
56
+ }
57
+
58
+ .navbar .container {
59
+ display: flex;
60
+ align-items: center;
61
+ justify-content: space-between;
62
+ flex-wrap: nowrap;
63
+ }
64
+
65
+ .navbar-links > * {
66
+ margin-right: 10px;
67
+
68
+ ul li {
69
+ padding-left: 0.5rem;
70
+ padding-right: 0.5rem;
71
+ font-size: 1rem;
61
72
  }
62
73
  }
63
74
 
75
+ .navbarBrand {
76
+ padding: 0.3125rem 0;
77
+ margin-right: 1rem;
78
+ font-size: 1.25rem;
79
+ color: var(--color-text);
80
+ text-decoration: none;
81
+ white-space: nowrap;
82
+ }
83
+
84
+ .link {
85
+ position: relative;
86
+ font-weight: bold;
87
+ text-decoration: none;
88
+ color: var(--color-text);
89
+ z-index: 1;
90
+ }
91
+
92
+ .link::before {
93
+ content: '';
94
+ background-color: var(--color-highlight);
95
+ position: absolute;
96
+ left: 3%;
97
+ bottom: 1px;
98
+ width: 100%;
99
+ height: 8px;
100
+ z-index: -1;
101
+ transition: var(--transition-default);
102
+ }
103
+
104
+ .link:hover::before,
105
+ .link:focus::before {
106
+ left: -2px;
107
+ bottom: 0;
108
+ height: 100%;
109
+ width: calc(100% + 2px);
110
+ }
111
+
112
+ .underline {
113
+ position: relative;
114
+ text-decoration: none;
115
+ color: inherit;
116
+ overflow: hidden;
117
+ }
118
+
119
+ h1 > .underline {
120
+ box-shadow: inset 0 -19px 0 var(--color-accent), 0 0 0 var(--color-accent);
121
+ transition: box-shadow 0.3s;
122
+ font-size: 2rem;
123
+ }
124
+
125
+ a > .underline {
126
+ box-shadow: inset 0 -14px 0 var(--color-accent), 0 0 0 var(--color-accent);
127
+ transition: box-shadow 0.3s;
128
+ }
129
+
130
+ .underline:hover,
131
+ .underline:focus {
132
+ box-shadow: inset 0 -45px 0 var(--color-accent), 0 0 0 var(--color-accent);
133
+ }
134
+
135
+ a#blog-title {
136
+ position: relative;
137
+ font-weight: 600;
138
+ z-index: 1;
139
+ margin-left: 10px;
140
+ }
141
+
142
+ a#blog-title::before {
143
+ content: '';
144
+ background-color: var(--color-highlight);
145
+ position: absolute;
146
+ left: -10px;
147
+ bottom: -2px;
148
+ width: 100%;
149
+ height: 8px;
150
+ z-index: -1;
151
+ transition: var(--transition-default);
152
+ }
153
+
154
+ a#blog-title:hover::before,
155
+ a#blog-title:focus::before {
156
+ height: 110%;
157
+ width: calc(110% + 5px);
158
+ }
159
+
64
160
  .navbar-toggler {
65
161
  border: none;
66
- background: transparent !important;
67
-
68
- &:hover {
69
- background: transparent !important;
70
- }
162
+ background: transparent;
163
+ cursor: pointer;
164
+ padding: 0.5rem;
165
+ display: none;
166
+ }
71
167
 
72
- .icon-bar {
73
- width: 22px;
74
- transition: all 0.2s;
75
- }
168
+ .navbar-toggler:hover,
169
+ .navbar-toggler:focus {
170
+ background: transparent;
171
+ }
76
172
 
77
- .top-bar {
78
- transform: rotate(45deg);
79
- transform-origin: 10% 10%;
80
- }
173
+ .icon-bar {
174
+ width: 22px;
175
+ height: 2px;
176
+ background-color: var(--color-text);
177
+ display: block;
178
+ transition: var(--transition-default);
179
+ margin: 4px 0;
180
+ }
81
181
 
82
- .middle-bar {
83
- opacity: 0;
84
- }
182
+ .navbar-toggler .top-bar {
183
+ transform: rotate(0);
184
+ }
85
185
 
86
- .bottom-bar {
87
- transform: rotate(-45deg);
88
- transform-origin: 10% 90%;
89
- }
186
+ .navbar-toggler .middle-bar {
187
+ opacity: 1;
188
+ }
90
189
 
91
- &.collapsed {
92
- .top-bar {
93
- transform: rotate(0);
94
- }
95
- .middle-bar {
96
- opacity: 1;
97
- }
98
- .bottom-bar {
99
- transform: rotate(0);
100
- }
101
- }
190
+ .navbar-toggler .bottom-bar {
191
+ transform: rotate(0);
102
192
  }
103
193
 
104
- #nav-header {
105
- border-bottom: 1px solid $firstColor !important;
194
+ .navbar-toggler:not(.collapsed) .top-bar {
195
+ transform: rotate(45deg);
196
+ transform-origin: 10% 10%;
106
197
  }
107
198
 
108
- #nav-container {
109
- height: 3.5rem;
199
+ .navbar-toggler:not(.collapsed) .middle-bar {
200
+ opacity: 0;
110
201
  }
111
202
 
112
- .divider {
113
- background: $thirdColor;
114
- color: $thirdColor;
115
- margin: 0px;
116
- max-width: 80%;
203
+ .navbar-toggler:not(.collapsed) .bottom-bar {
204
+ transform: rotate(-45deg);
205
+ transform-origin: 10% 90%;
206
+ }
207
+
208
+ #navbarNav a {
209
+ position: relative;
210
+ text-decoration: none;
211
+ z-index: 1;
212
+ }
213
+
214
+ #navbarNav a::before {
215
+ content: '';
216
+ position: absolute;
217
+ width: 100%;
117
218
  height: 4px;
118
- margin: 0 auto;
119
- opacity: 1;
219
+ background-color: var(--color-primary);
220
+ bottom: -4px;
221
+ left: 0;
222
+ transform-origin: center;
223
+ transform: scaleX(0);
224
+ transition: transform .3s ease-in-out;
225
+ z-index: -1;
120
226
  }
121
227
 
122
- .title-link {
123
- text-decoration: none !important;
228
+ #navbarNav a:hover::before {
229
+ transform-origin: left;
230
+ transform: scaleX(1);
124
231
  }
125
232
 
126
- .title-post-resume a {
127
- color: $fourthColor !important;
233
+
234
+ .post-resume {
235
+ padding-top: 1.5rem;
236
+ padding-bottom: 0.5rem;
128
237
  }
129
238
 
130
- .text-justify {
131
- margin-top: 35px !important;
239
+ .lista {
240
+ display: flex;
241
+ align-items: center;
242
+ z-index: 1;
132
243
  }
133
244
 
134
- .text-final {
135
- margin-top: 45px !important;
245
+ .lista li {
246
+ list-style: none;
247
+ }
248
+
249
+ .lista li a {
250
+ color: var(--color-text);
251
+ text-decoration: none;
252
+ transition: opacity 0.2s ease;
136
253
  }
137
254
 
138
255
  .post {
139
- padding-top: 3rem!important;
140
- height: 100%;
141
- padding-bottom: 6em;
256
+ padding: 3rem 0 6rem;
257
+ width: 100%;
142
258
  }
143
259
 
144
- #content .py-2 {
145
- padding-top: 1.5rem!important;
260
+ #posts-navigation {
261
+ padding-bottom: 1.5rem;
262
+ bottom: 0;
146
263
  }
147
264
 
148
- blockquote {
149
- background: #f9f9f9;
150
- border-left: 10px solid #F39237;
151
- margin: 1.5em 0px;
152
- padding: 0.5em 10px;
153
- quotes: "\201C""\201D""\2018""\2019";
154
- p {
155
- display: inline;
265
+ p {
266
+ margin-bottom: 1rem;
267
+ }
268
+
269
+ .row {
270
+ display: grid;
271
+ flex-wrap: wrap;
272
+ grid-template-columns: 1fr 1fr;
273
+ font-size: 20px;
274
+ * {
275
+ color: var(--color-dark);
156
276
  }
157
277
  }
158
278
 
159
- .highlight pre {
160
- border: 1px solid;
161
- border-radius: .25rem;
162
- padding: 0.75rem;
163
- margin-bottom: 1rem;
164
- white-space: pre-wrap;
279
+ .next {
280
+ text-align: right;
281
+ }
165
282
 
166
- position: relative;
167
- overflow: auto;
283
+ .previous {
284
+ text-align: left;
285
+ }
168
286
 
169
- margin: 5px 0;
170
- padding: 1.75rem 0 1.75rem 1rem;
171
- border-radius: 10px;
287
+ .center {
288
+ display: flex;
289
+ justify-content: center;
290
+ align-items: center;
291
+ }
172
292
 
173
- button {
174
- position: absolute;
175
- top: 8px;
176
- right: 8px;
177
- color: $firstColor;
178
- background: none;
179
- border: none;
293
+ .title-post-resume {
294
+ margin-top: 0.25rem;
295
+ margin-bottom: 0.75rem;
296
+ a {
297
+ color: var(--color-text);
298
+ text-decoration: none;
180
299
  }
300
+ }
181
301
 
182
- button:hover {
183
- cursor: pointer;
184
- }
302
+ .text-secondary {
303
+ font-weight: 700;
304
+ margin-bottom: 8px !important;
185
305
  }
186
306
 
187
- #search-input {
188
- margin: 2em 0em;
189
- width: 50%;
307
+ .text-justify {
308
+ margin-top: 2.1875rem;
190
309
  }
191
310
 
192
- input {
193
- font-family: "Space Grotesk" !important;
311
+ .text-final {
312
+ margin-top: 2.8125rem;
194
313
  }
195
314
 
196
- .post .text-secondary {
197
- margin-bottom: 8px !important;
198
- color: $fifthColor;
199
- font-weight: bold;
315
+ code {
316
+ font-size: .9em;
317
+ color: var(--color-code);
318
+ word-wrap: break-word;
200
319
  }
201
320
 
202
- .row .previous, .row .next {
203
- font-size: 20px;
204
- text-align: right;
205
- a {
206
- color: $fourthColor !important;
207
- }
321
+ blockquote {
322
+ background: #f9f9f9;
323
+ border-left: 10px solid #F39237;
324
+ margin: 1.5em 0;
325
+ padding: 0.5em 1.25em;
326
+ border-radius: 0.25rem;
208
327
  }
209
328
 
210
- .previous {
211
- text-align: left !important;
329
+ blockquote p {
330
+ display: inline;
212
331
  }
213
332
 
214
- #post {
215
- flex-grow: 1;
333
+ .highlight pre {
334
+ border: 1px solid var(--color-text);
335
+ border-radius: 0.625rem;
336
+ padding: 1.75rem 1rem;
337
+ margin: 0.3125rem 0;
216
338
  position: relative;
339
+ overflow: auto;
340
+ white-space: pre-wrap;
217
341
  }
218
342
 
219
- #posts-navigation {
220
- padding-bottom: 1.5rem;
221
- bottom: 0;
343
+ .highlight pre button {
344
+ position: absolute;
345
+ top: 0.5rem;
346
+ right: 0.5rem;
347
+ color: var(--color-bg);
348
+ background: none;
349
+ border: none;
350
+ cursor: pointer;
351
+ padding: 0.25rem;
352
+ }
353
+
354
+ .back {
355
+ margin-top: 2.8125rem;
356
+ font-size: 1.875rem;
357
+ color: var(--color-primary);
358
+ border-radius: 0.625rem;
359
+ border: 2px solid var(--color-primary);
360
+ padding: 0.0625rem 0.625rem;
361
+ text-decoration: none;
362
+ transition: var(--transition-default);
363
+ }
364
+
365
+ .back:hover,
366
+ .back:focus {
367
+ background-color: var(--color-primary);
368
+ .chevron::before {
369
+ color: var(--color-bg);
370
+ }
371
+ }
372
+
373
+ ul {
374
+ list-style: none;
375
+ }
376
+
377
+ .archive-group th {
378
+ text-align: start !important;
379
+ padding-right: 0.5rem;
222
380
  }
223
381
 
224
382
  #site-footer {
225
- color: $fourthColor !important;
226
383
  position: absolute;
227
384
  bottom: 0;
228
385
  width: 100%;
229
386
  height: 4rem;
230
- a {
231
- color: $fourthColor;
232
- font-weight: bold;
233
- text-decoration: none;
234
- }
387
+ color: var(--color-text);
388
+ background-color: var(--color-bg);
235
389
  }
236
390
 
237
- a.badge {
238
- color: $firstColor;
239
- background-color: $thirdColor;
391
+ #site-footer a {
392
+ color: var(--color-text);
393
+ font-weight: bold;
240
394
  text-decoration: none;
395
+ transition: color 0.2s ease;
241
396
  }
242
397
 
243
- .back {
244
- margin-top: 45px !important;
245
- font-size: 30px;
246
- color: $thirdColor;
247
- border-radius: 10px;
248
- border: 2px solid $thirdColor;
249
- padding: 1px 10px;
398
+ #site-footer a:hover,
399
+ #site-footer a:focus {
400
+ color: var(--color-text);
250
401
  }
251
402
 
252
403
  svg {
253
- vertical-align: sub !important;
254
- }
255
-
256
- #share-links ul {
257
- list-style-type: none;
258
- padding-left: 0px;
259
- li {
260
- padding-top: 5px;
261
- padding-bottom: 5px;
262
- a {
263
- color: $fourthColor;
264
- font-weight: bold;
265
- text-decoration: none;
266
- }
267
- }
404
+ vertical-align: sub;
268
405
  }
269
406
 
270
- /* Effects */
407
+ .social-networks-icons {
408
+ vertical-align: unset !important
409
+ }
271
410
 
272
- #category-badge a:hover, #category-badge a:focus, #category-badge a:active {
273
- color: $firstColor;
274
- -webkit-transform: scale(1.1);
275
- transform: scale(1.1);
411
+ .float-end {
412
+ float: right;
276
413
  }
277
414
 
278
- h1 > .underline {
279
- text-decoration: none;
280
- box-shadow: inset 0 -19px 0 $secondColor, 0 0px 0 $secondColor;
281
- transition: box-shadow .3s;
282
- color: inherit;
283
- overflow: hidden;
284
- font-size: 2rem;
415
+ .chevron::before {
416
+ border-style: solid;
417
+ border-width: 0.15em 0.15em 0 0;
418
+ content: '';
419
+ display: inline-block;
420
+ height: 0.7em;
421
+ position: relative;
422
+ transform: rotate(-45deg);
423
+ vertical-align: middle;
424
+ width: 0.7em;
425
+ color: var(--color-primary);
285
426
  }
286
427
 
287
- a > .underline {
428
+ .divider {
429
+ background: var(--color-primary);
430
+ height: 4px;
431
+ margin: 0 auto;
432
+ max-width: var(--container-width);
433
+ opacity: 1;
434
+ }
435
+
436
+ .about-image {
437
+ border-radius: 50%;
438
+ width: 280px;
439
+ height: 280px;
440
+ margin: 1.25rem;
441
+ object-fit: cover;
442
+ }
443
+
444
+ .badge {
445
+ color: var(--color-bg);
446
+ background-color: var(--color-primary);
288
447
  text-decoration: none;
289
- box-shadow: inset 0 -14px 0 $secondColor, 0 0px 0 $secondColor;
290
- transition: box-shadow .3s;
291
- color: inherit;
292
- overflow: hidden;
448
+ padding: 0.25rem 0.5rem;
449
+ border-radius: 0.25rem;
450
+ transition: transform 0.2s ease;
451
+ display: inline-block;
293
452
  }
294
453
 
295
- .underline:hover {
296
- box-shadow: inset 0 -45px 0 $secondColor, 0 0px 0 $secondColor;
454
+ .badge:hover,
455
+ .badge:focus {
456
+ -webkit-transform:scale(1.1);
457
+ transform: scale(1.1);
297
458
  }
298
459
 
299
- .link {
300
- position: relative;
301
- font-weight: bold;
302
-
303
- &::before {
304
- content: '';
305
- background-color: $sixthColor;
306
- position: absolute;
307
- left: 3%;
308
- bottom: 1px;
309
- width: 100%;
310
- height: 8px;
311
- z-index: -1;
312
- transition: all .3s ease-in-out;
313
- }
314
-
315
- &:hover::before {
316
- left: -2px;
317
- bottom: 0;
318
- height: 100%;
319
- width: calc(100% + 2px);
320
- }
460
+ #search-input {
461
+ margin: 2em 0em;
462
+ width: 50%;
463
+ font-size: 16px;
464
+ line-height: 24px;
465
+ padding: 0.2em;
466
+ }
467
+
468
+ @media screen and (max-width: 949px) {
469
+ .navbar-toggler {
470
+ display: block;
471
+ }
472
+
473
+ .lista {
474
+ display: none;
475
+ flex-direction: column;
476
+ position: absolute;
477
+ top: 100%;
478
+ left: 0;
479
+ width: 100%;
480
+ background-color: var(--color-bg);
481
+ padding: 1rem 0;
482
+ }
483
+
484
+ .lista.active {
485
+ display: flex;
486
+ }
487
+
488
+ .lista li {
489
+ width: 100%;
490
+ text-align: center;
491
+ padding: 0.5rem 0;
492
+ border-bottom: 1px solid #ccc;
493
+ }
494
+
495
+ .container {
496
+ padding: 0 1rem;
497
+ }
498
+
499
+ h1 {
500
+ font-size: 1.25rem;
501
+ font-weight: 500;
502
+ margin-bottom: 8px;
503
+ }
504
+ }
505
+
506
+ @media screen and (min-width: 950px) {
507
+ .nav-toggle {
508
+ display: none;
509
+ }
510
+
511
+ .lista {
512
+ display: flex;
513
+ justify-content: flex-end;
514
+ flex-direction: row;
515
+ }
516
+
517
+ h1 {
518
+ font-size: 1.75rem;
519
+ font-weight: 500;
520
+ margin-bottom: 8px;
521
+ }
522
+ }
523
+
524
+ @media (prefers-reduced-motion: reduce) {
525
+ * {
526
+ animation-duration: 0.01ms !important;
527
+ animation-iteration-count: 1 !important;
528
+ transition-duration: 0.01ms !important;
529
+ scroll-behavior: auto !important;
530
+ }
321
531
  }
@@ -1,5 +1,4 @@
1
1
  @charset "utf-8";
2
2
 
3
- @import
4
- "whiteblog-theme/layout",
5
- "whiteblog-theme/syntax-highlighting";
3
+ @use "whiteblog-theme/layout";
4
+ @use "whiteblog-theme/syntax-highlighting";
Binary file
Binary file
data/assets/js/main.js CHANGED
@@ -41,4 +41,11 @@ async function copyCode(block, button) {
41
41
  button.style.backgroundColor = "";
42
42
  button.style.color = "";
43
43
  }, 1000);
44
- }
44
+ }
45
+
46
+ let mainNav = document.getElementById("js-menu");
47
+ let navBarToggle = document.getElementById("js-nav-toggle");
48
+
49
+ navBarToggle.addEventListener("click", function() {
50
+ mainNav.classList.toggle("active");
51
+ });
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.0.14
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Silva
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-28 00:00:00.000000000 Z
11
+ date: 2025-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.16'
69
- description:
69
+ description:
70
70
  email:
71
71
  - vmsilvamolina@gmail.com
72
72
  executables: []
@@ -75,11 +75,13 @@ extra_rdoc_files: []
75
75
  files:
76
76
  - LICENSE.txt
77
77
  - README.md
78
+ - _includes/analytics/googleAnalytics.html
78
79
  - _includes/backtotop.html
79
80
  - _includes/comments-providers/disqus.html
80
81
  - _includes/footer.html
81
82
  - _includes/head.html
82
83
  - _includes/header.html
84
+ - _includes/scripts.html
83
85
  - _includes/sharepost.html
84
86
  - _layouts/allposts.html
85
87
  - _layouts/categories.html
@@ -87,6 +89,7 @@ files:
87
89
  - _layouts/home.html
88
90
  - _layouts/page.html
89
91
  - _layouts/post.html
92
+ - _pages/about.md
90
93
  - _pages/categories.md
91
94
  - _pages/github.md
92
95
  - _pages/search.md
@@ -95,7 +98,8 @@ files:
95
98
  - _sass/whiteblog-theme/_syntax-highlighting.scss
96
99
  - assets/css/main.scss
97
100
  - assets/css/previews.css
98
- - assets/images/favicon.svg
101
+ - assets/images/bio-photo.jpg
102
+ - assets/images/favicon.ico
99
103
  - assets/images/previews/hello-world.png
100
104
  - assets/images/previews/otro-post.png
101
105
  - assets/images/previews/test-post.png
@@ -108,7 +112,7 @@ licenses:
108
112
  - MIT
109
113
  metadata:
110
114
  plugin_type: theme
111
- post_install_message:
115
+ post_install_message:
112
116
  rdoc_options: []
113
117
  require_paths:
114
118
  - lib
@@ -124,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
128
  version: '0'
125
129
  requirements: []
126
130
  rubygems_version: 3.2.3
127
- signing_key:
131
+ signing_key:
128
132
  specification_version: 4
129
133
  summary: Minimal, wide and white blogging theme for Jekyll
130
134
  test_files: []
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 508 508"><path d="M425.6 6H390v192c0 9.6-5.6 20-15.6 20H70c-10 0-20-10-20-20V6H22.4C14.4 6 6 10.4 6 18v467.6c0 7.6 8.8 16.4 16.4 16.4H50V268c0-1.2.8-2 2-2h404c1.2 0 2 .8 2 2v234h32c7.6 0 12-8.4 12-16.4V82.8z" style="fill:#2884a9"/><path d="M54 266h400v236H54z" style="fill:#73badd"/><path d="M54 6v192c0 7.6 8.4 16 16 16h304.4c7.6 0 11.6-8.4 11.6-16V6z" style="fill:#e8e3e3"/><path d="M282 38h72v144h-72z" style="fill:#2884a9"/><path d="M278 184v2h2c-1.2 0-2-.8-2-2" style="fill:#c99"/><path d="M490 508H22.4C11.2 508 0 496.8 0 485.6V18C0 6.8 11.6 0 22.4 0h404c1.2 0 2 .4 2.8 1.2l77.6 78c.8.8 1.2 1.6 1.2 2.8v404c0 10.8-6.8 22-18 22M22.4 8C15.6 8 8 12 8 18v467.6C8 492 16 500 22.4 500H490c6 0 10-7.6 10-14.4v-402L424.8 8z"/><path d="M456 506c-2.4 0-4-1.6-4-4V268h-18c-2.4 0-4-1.6-4-4s1.6-4 4-4h22c2.4 0 4 1.6 4 4v238c0 2.4-1.6 4-4 4m-404 0c-2.4 0-4-1.6-4-4V264c0-2.4 1.6-4 4-4h350c2.4 0 4 1.6 4 4s-1.6 4-4 4H56v234c0 2.4-1.6 4-4 4m322.4-286H70c-10.8 0-22-11.2-22-22V6c0-2.4 1.6-4 4-4s4 1.6 4 4v192c0 6.8 7.6 14 14 14h304.4c6 0 9.6-7.2 9.6-14V6c0-2.4 1.6-4 4-4s4 1.6 4 4v192c0 10.4-6 22-17.6 22"/><path d="M158.4 220c-11.2 0-22.4-11.2-22.4-22V6c0-2.4 1.6-4 4-4s4 1.6 4 4v192c0 6.4 8 14 14.4 14 2.4 0 4 1.6 4 4s-1.6 4-4 4M356 188h-76c-2.4 0-4-1.6-4-4V36c0-2.4 1.6-4 4-4h38c2.4 0 4 1.6 4 4s-1.6 4-4 4h-34v140h68V40h-2c-2.4 0-4-1.6-4-4s1.6-4 4-4h6c2.4 0 4 1.6 4 4v148c0 2.4-1.6 4-4 4m54 136H102c-2.4 0-4-1.6-4-4s1.6-4 4-4h308c2.4 0 4 1.6 4 4s-1.6 4-4 4m0 64H102c-2.4 0-4-1.6-4-4s1.6-4 4-4h308c2.4 0 4 1.6 4 4s-1.6 4-4 4m0 64H102c-2.4 0-4-1.6-4-4s1.6-4 4-4h308c2.4 0 4 1.6 4 4s-1.6 4-4 4"/></svg>