neutralizing 0.1.0 → 0.2.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: 0ebf3fca5649deac7ae7936aa5867a9bcbbee5b050d49f23c4a75e8c9db8aa51
4
- data.tar.gz: f5b87f50d999a9f0e778ffbe4b2b1ea39ffe08f89030488820bf0d0ff903838a
3
+ metadata.gz: 5877bee116ba7991cf3a5afa9e162afbff72cbdbbbdb9f28aa1179342eff71b0
4
+ data.tar.gz: a51d30d0797580fa7294df3ad10a19ef1340611c4f8e19a3fb43232e2169d647
5
5
  SHA512:
6
- metadata.gz: c59d686d2c56c57883251f1cfe4e5b6222d853a040716d23fca378187e7585456630bab25ec884e574bc7dbade9a417f9a25a5413193a36e5a878238a9236ede
7
- data.tar.gz: 53480355df190aac9a36539850166574abd57e359a68b614d18ade94315986443cbc941c476f6e530eadd5885e21ae8ed68ce0aa02f7c1817cfa3d3fab388cbd
6
+ metadata.gz: e9abd88b1683e05a743ae677dad9d46cec19dd0575cde59c4ca4c9c7ced9e5273b97b7a85ef59c70691cf6937238a44f1b34f36b8b8d90ea7d462639b6ab8945
7
+ data.tar.gz: 11eb3ad5c2d6ae2b91daeaa738d092a47ef1ed338c6863dd0126bb4a7c17aa0b4e2a96d906ab30dabb81986573805f6a8642872550842c9bb7996c497678a453
data/README.md CHANGED
@@ -74,15 +74,6 @@ visit: https://github.com/nicollinoxx/neutralizing/tree/master/_posts to see exa
74
74
 
75
75
  Bug reports and pull requests are welcome on GitHub at https://github.com/nicollinoxx/neutralizing. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
76
76
 
77
- ## Development
78
-
79
- To set up your environment to develop this theme, run `bundle install`.
80
-
81
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
82
-
83
- When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
84
- To add a custom directory to your theme-gem, please edit the regexp in `neutralizing.gemspec` accordingly.
85
-
86
77
  ## License
87
78
 
88
79
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_includes/head.html CHANGED
@@ -6,4 +6,5 @@
6
6
  <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js"></script>
7
7
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css">
8
8
  <script src="/assets/js/show_more_projects.js"></script>
9
+ <script src="/assets/js/mode.js"></script>
9
10
  </head>
@@ -1,6 +1,6 @@
1
1
  {% if page.layout != 'default' %}
2
- <header class="bg-light py-2 border-bottom fixed-top">
3
- <nav class="container navbar navbar-expand-lg bg-body-tertiary">
2
+ <header class="bg-body-tertiary py-2 border-bottom fixed-top">
3
+ <nav class="container navbar navbar-expand-lg">
4
4
  <div class="container-fluid">
5
5
  <a class="navbar-brand fw-bold text-primary" href="/">{{ site.title }}</a>
6
6
  {% if page.layout == "home" %}
@@ -9,7 +9,6 @@
9
9
  </button>
10
10
  <div class="collapse navbar-collapse justify-content-end" id="navbarNav">
11
11
  <ul class="navbar-nav">
12
-
13
12
  <li class="nav-item">
14
13
  <a class="nav-link active" aria-current="page" href="#">Profile</a>
15
14
  </li>
@@ -22,7 +21,6 @@
22
21
  <li class="nav-item">
23
22
  <a class="nav-link" href="/about/">About</a>
24
23
  </li>
25
-
26
24
  </ul>
27
25
  </div>
28
26
  {% endif %}
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="en">
2
+ <html lang="en" data-bs-theme="light">
3
3
  <head>
4
4
  {% include head.html %}
5
5
  </head>
data/_layouts/home.html CHANGED
@@ -3,10 +3,10 @@ layout: default
3
3
  ---
4
4
 
5
5
  <main class="text-center">
6
- <div id="section-profile" class="bg-secondary text-light py-5">
6
+ <div id="section-profile" class="bg-dark-subtle text-light py-5">
7
7
  <div class="container mt-5">
8
- <img src="{{ site.avatar | relative_url }}" alt="avatar" class="rounded-circle img-fluid" style="width: 230px; height: 230px;">
9
- <h2 class="fw-bold my-4">{{ site.name }}</h2>
8
+ <img src="{{ site.avatar | relative_url }}" alt="avatar" class="rounded-circle img-fluid" style="width: 200px; height: 200px;">
9
+ <h2 class="fw-bold my-4 text-body">{{ site.name }}</h2>
10
10
 
11
11
  <ul class="list-unstyled d-flex flex-wrap justify-content-center gap-3">
12
12
  {% for tool in site.tools %}
@@ -16,13 +16,13 @@ layout: default
16
16
  {% endfor %}
17
17
  </ul>
18
18
 
19
- <div class="d-flex align-items-center justify-content-between my-2">
19
+ <div class="d-flex align-items-center justify-content-between my-2 text-body">
20
20
  <hr class="flex-grow-1 me-3">
21
21
  <i class="bi bi-stars text-primary h1"></i>
22
22
  <hr class="flex-grow-1 ms-3">
23
23
  </div>
24
24
 
25
- <p class="text-center">{{ site.introduction }}</p>
25
+ <p class="text-center text-body">{{ site.introduction }}</p>
26
26
  </div>
27
27
  </div>
28
28
 
@@ -40,7 +40,7 @@ layout: default
40
40
  {% assign sorted_posts = site.posts | sort: "date" | reverse %}
41
41
  {% for post in sorted_posts %}
42
42
  <a href="{{ post.url }}" class="post {% if forloop.index > 3 %}d-none{% endif %}">
43
- <div class="d-flex flex-column shadow rounded">
43
+ <div class="d-flex flex-column shadow-sm border rounded transition-hover" style="transition: transform .3s;" onmouseover="this.style.transform='scale(1.02)'" onmouseout="this.style.transform='scale(1)'">
44
44
  <img src="{{ post.thumbnail | relative_url }}" class="object-fit-cover img-fluid" alt="{{ post.title }}" style="width: 24rem; height: 14rem;">
45
45
  <h1 class="h6 my-3">{{ post.title }}</h1>
46
46
  </div>
data/_layouts/post.html CHANGED
@@ -32,6 +32,9 @@ layout: default
32
32
  {% endif %}
33
33
 
34
34
  <div class="mb-5">
35
- {{ content | replace: "<video", "<video class=' img-fluid mx-auto d-block bg-dark'" }}
35
+ {{ content
36
+ | replace: "<video", "<video class='img-fluid mx-auto d-block bg-dark'"
37
+ | replace: "<img", "<img class='img-fluid mx-auto d-block'"
38
+ }}
36
39
  </div>
37
40
  </div>
data/assets/js/mode.js ADDED
@@ -0,0 +1,9 @@
1
+ function setBootstrapTheme() {
2
+ const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
3
+ const theme = prefersDark ? 'dark' : 'light';
4
+ document.documentElement.setAttribute('data-bs-theme', theme);
5
+ }
6
+
7
+ setBootstrapTheme();
8
+
9
+ window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', setBootstrapTheme);
data/neutralizing.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  spec.required_ruby_version = ">= 3.0.0"
5
5
 
6
6
  spec.name = "neutralizing"
7
- spec.version = "0.1.0"
7
+ spec.version = "0.2.0"
8
8
  spec.authors = ["Nicolas"]
9
9
  spec.email = ["nicolasalmeida321@gmail.com"]
10
10
 
@@ -12,6 +12,10 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = "https://github.com/nicollinoxx/neutralizing"
13
13
  spec.license = "MIT"
14
14
 
15
+ spec.metadata["homepage_uri"] = spec.homepage
16
+ spec.metadata["source_code_uri"] = "https://github.com/nicollinoxx/neutralizing"
17
+ spec.metadata["changelog_uri"] = "https://github.com/nicollinoxx/neutralizing/blob/main/CHANGELOG.md"
18
+
15
19
  spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_data|_layouts|_includes|_sass|LICENSE|README|_config\.yml|)!i) }
16
20
 
17
21
  spec.add_runtime_dependency "jekyll", "~> 4.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neutralizing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-01 00:00:00.000000000 Z
11
+ date: 2025-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,6 +66,7 @@ files:
66
66
  - assets/examples/example-1.png
67
67
  - assets/examples/example-2.png
68
68
  - assets/examples/example.png
69
+ - assets/js/mode.js
69
70
  - assets/js/show_more_projects.js
70
71
  - index.markdown
71
72
  - neutralizing.gemspec
@@ -73,7 +74,10 @@ files:
73
74
  homepage: https://github.com/nicollinoxx/neutralizing
74
75
  licenses:
75
76
  - MIT
76
- metadata: {}
77
+ metadata:
78
+ homepage_uri: https://github.com/nicollinoxx/neutralizing
79
+ source_code_uri: https://github.com/nicollinoxx/neutralizing
80
+ changelog_uri: https://github.com/nicollinoxx/neutralizing/blob/main/CHANGELOG.md
77
81
  post_install_message:
78
82
  rdoc_options: []
79
83
  require_paths: