benjeto-jekyll-theme 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acd01b582d3e3465c449f498070b34ed801bd3d1ae06606fae034ea2a7e339b0
4
- data.tar.gz: 33ec129a6f14a273fcb136ff3735a810ace6e824727a27a6e1714c5a2373984a
3
+ metadata.gz: 556179d6d678d50b1237c7225d8a14928d466fa8e5dcabdc41fb0d06c842fddd
4
+ data.tar.gz: 592b6a80fde78d0ddecce0b100ed14e313c4dadfef708dc30fa2278a637b2287
5
5
  SHA512:
6
- metadata.gz: 43d5f45222fff03ce1759a50880350f7376c01ebfe28d731d975d54bad05f0c273c852550f830a798eeaeee85d96e9d690c9c49b40a63ec4b7596c4cf4454fee
7
- data.tar.gz: e8620a5a792bfa4b1ac63456dafdf3b1c503e5265811cfc4356fbc062feedba78aa32c4d883a8daf220bcff7e76806bfe7114f4dbce79c43fbdbd2b6a41a21db
6
+ metadata.gz: 5387273550a837ac10915f3d3af89392390ee8ce8649d831e9c82737eaf562a16a54afa67d45b1be5e2184ad6b60d31046307b4ca1c69021e1fdaf3d0122689a
7
+ data.tar.gz: 765b5cf134418ce8f52e9d3e1a3b7c564ce9fb06fd2fab4a2b16e96d5143f1f827b1af64f9aeadb01a497bfacaf3f05238890d660149d74406a7d9999af9676f
data/_includes/head.html CHANGED
@@ -92,12 +92,12 @@
92
92
  {% if site.default_lang != "nil" -%}
93
93
  <link rel="alternate" hreflang="{{ site.default_lang }}" href="{{ site.url }}{{ page.permalink }}">
94
94
  {% endif -%}
95
- {% for lang in site.languages %}
96
- {% if lang == site.default_lang %}
97
- {% continue %}
98
- {% endif %}
95
+ {% for lang in site.languages -%}
96
+ {% if lang == site.default_lang -%}
97
+ {% continue -%}
98
+ {% endif -%}
99
99
  <link rel="alternate" hreflang="{{ lang }}" href="{{ site.url }}/{{ lang }}{{ page.permalink }}">
100
- {% endfor %}
100
+ {% endfor -%}
101
101
  {% endif -%}
102
102
 
103
103
  {% include custom_head.html %}
@@ -1,5 +1,4 @@
1
1
  ---
2
- title: false
3
2
  ---
4
3
  document.addEventListener('DOMContentLoaded', function() {
5
4
  const languages = {{ site.languages | jsonify }};
data/assets/js/share.js CHANGED
@@ -1,5 +1,4 @@
1
1
  ---
2
- title: false
3
2
  ---
4
3
  {%- assign texts = site.data.texts -%}
5
4
  document.addEventListener('DOMContentLoaded', function () {
@@ -10,7 +9,7 @@ document.addEventListener('DOMContentLoaded', function () {
10
9
  "{{ lang }}" : "{{ site.data[lang].texts.share }}",
11
10
  {%- endif %}
12
11
  {%- endfor %}
13
- {{ site.default_lang }}: "{{ site.data.texts.share }}"
12
+ "{{ site.default_lang }}" : "{{ site.data.texts.share }}"
14
13
  };
15
14
  var copiedText = {
16
15
  {%- for lang in site.languages %}
@@ -18,7 +17,7 @@ document.addEventListener('DOMContentLoaded', function () {
18
17
  "{{ lang }}" : "{{ site.data[lang].texts.copied }}",
19
18
  {%- endif %}
20
19
  {%- endfor %}
21
- {{ site.default_lang }}: "{{ site.data.texts.copied }}"
20
+ "{{ site.default_lang }}" : "{{ site.data.texts.copied }}"
22
21
  };
23
22
  {%- endif %}
24
23
  const shareButtons = document.querySelectorAll('.shareBtn');
@@ -0,0 +1,47 @@
1
+ ---
2
+ styles: true
3
+ ---
4
+ {%- assign profile = site.data.profile -%}
5
+ {%- assign settings = site.data.settings -%}
6
+
7
+ {% if settings.style.highlight == true %}
8
+ @import "benjeto/css/highlight.scss";
9
+ {% endif %}
10
+
11
+ // System styles
12
+ @import
13
+ "benjeto/base.scss",
14
+ {% if settings.style.menu == true %}
15
+ "benjeto/css/menu.scss",
16
+ {% endif %}
17
+ {% if settings.style.figure == true %}
18
+ "benjeto/css/figure.scss",
19
+ {% endif %}
20
+ {% if settings.style.home_tab == true %}
21
+ "benjeto/css/home-tab.scss",
22
+ {% endif %}
23
+ {% if settings.style.paginate == true %}
24
+ "benjeto/css/paginate.scss",
25
+ {% endif %}
26
+ {% if settings.style.app_box == true %}
27
+ "benjeto/css/app-box.scss",
28
+ {% endif %}
29
+ {% if settings.style.section_box == true %}
30
+ "benjeto/css/section-box.scss",
31
+ {% endif %}
32
+ "benjeto/custom.scss"
33
+ ;
34
+
35
+ // Dark mode
36
+ {% if settings.style.darkmode == "true" %}
37
+ @import "benjeto/dark.scss";
38
+ {% else %}
39
+ @import "benjeto/light.scss";
40
+ {% if settings.style.darkmode == "allow" %}
41
+ @media(prefers-color-scheme:dark) {
42
+ @import "benjeto/light.scss";
43
+ @import "benjeto/dark.scss";
44
+ }
45
+ {% endif %}
46
+ {% endif %}
47
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benjeto-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cizzuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-05 00:00:00.000000000 Z
11
+ date: 2024-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -129,6 +129,7 @@ files:
129
129
  - assets/js/lang-redirect.js
130
130
  - assets/js/menu.js
131
131
  - assets/js/share.js
132
+ - assets/styles.scss
132
133
  homepage: https://cizzuk.net/app/benjeto
133
134
  licenses:
134
135
  - MIT