unstruction-jekyll-theme 0.1.0 → 0.1.2

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: f6e12e7fa8e28659a4eac923197ab4dd2db9b9ac3fbe4bc7270cc683dfc390bc
4
- data.tar.gz: 66911f16e18a7f53bd798dd16355489af450e07adc92565104e3cf03b0a88f49
3
+ metadata.gz: fed076208d2f84c173bc1adeb16759fc81f973bcdb758b485dfd43303ac7e07f
4
+ data.tar.gz: 2e3c3eb5787a4a79de2022c2964bf26b985dccd83088793753ee986741ec76d8
5
5
  SHA512:
6
- metadata.gz: c835037af6246c88bbf3cdcdbbf7d036ee4d7d64ad9edea2417e79f42bf1ff46071e760574b7f06551af11861efc01e5ee6a4fa5575cb13aa67c83e43d6399ea
7
- data.tar.gz: f7756219f678befc2436c780b5225da6fff95564819b2d0f616a175b20bf579438b120de1e2bdf308d3120688aa4a3558dfeddd7647b1f052c75dd0aa7a30632
6
+ metadata.gz: 551d84e9886e93848605cc5d4e878a3db802a3f7d09e6f03d1c255500930df0c297022d423df25fdb4266e7de47921e3fd0be9b02696b88a48fd42a20b037733
7
+ data.tar.gz: 479e3e8818c774a7b46e601d3b56e11b1a65995a818e3759a5bd41e1bdaee288f318118a0830471118670717e8b8c6ee792df664a3964b47a586b8968a6e2c33
@@ -1,4 +1,4 @@
1
- MIT License
1
+ The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2024 Digital Malayali Studio
4
4
 
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
9
  copies of the Software, and to permit persons to whom the Software is
10
10
  furnished to do so, subject to the following conditions:
11
11
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
17
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -7,6 +7,7 @@
7
7
  [![Gem Total Downloads](https://img.shields.io/gem/dt/unstruction-jekyll-theme?logo=rubygems&logoColor=white&labelColor=%23E9573F&color=grey)](https://rubygems.org/gems/unstruction-jekyll-theme)
8
8
 
9
9
  [![Static Badge](https://img.shields.io/badge/html-template-grey?logo=html5&logoColor=white&labelColor=E34F26)](https://github.com/digitalmalayalistudio/unstruction)
10
+ [![Static Badge](https://img.shields.io/badge/wordpress-theme-grey?logo=wordpress&labelColor=21759B)](https://github.com/DigitalMalayaliStudio/unstruction-wordpress-theme)
10
11
 
11
12
  [![Static Badge](https://img.shields.io/badge/liberapay-donate-F6C915?logo=liberapay)](https://liberapay.com/zcraber)
12
13
 
@@ -80,7 +81,7 @@ Or install it yourself as:
80
81
  ## Configuration
81
82
  Unstruction is super-easy to customize! There is only one `layout` and that is [default.html](_layouts/default.html).
82
83
 
83
- Edit the [_config.yml](_config.yml) file to add your website's name, favicon, image, color theme, launch date and contact details.
84
+ Edit the [_config.yml](_config.yml) file to add your website's name, favicon, image, color theme, launch date and contact details. After customizing, add `ignore_theme_config: true` to prevent your settings from being overwritten by the theme's default config.
84
85
 
85
86
  ### `_config.yml`
86
87
  ```yml
@@ -93,7 +94,8 @@ favicon: assets/favicon.svg # SVG favicon of your website
93
94
  url: https://digitalmalayalistudio.github.io/linkhub-jekyll-theme # URL of your website
94
95
  image: assets/preview.webp # Also used for SEO (og:image)
95
96
  color: orange # Preferred theme color based on the Shoelace color tokens. Visit https://shoelace.style/tokens/color#theme-tokens.
96
- date: Jan 1, 3000, 00:00:00 # Set the planned launch date and time in an ISO 8601 format or use the format shown in the example. Time is optional. Remove this variable if you don't need a countdown.
97
+ date: Jan 1, 3000, 00:00:00 # Set the planned launch date and time in an ISO 8601 format or use the format shown in the example. Time is optional. Remove this variable if you don't need a countdown.
98
+ maintenance: false # Set true to enable maintenance mode
97
99
 
98
100
  # Contacts
99
101
  phone: +91123456789 #Remove any that are not needed
@@ -126,4 +128,4 @@ When your theme is released, only the files in [_layouts](_layouts), [_includes]
126
128
  To add a custom directory to your theme-gem, please edit the regexp in [unstruction-jekyll-theme.gemspec](unstruction-jekyll-theme.gemspec) accordingly.
127
129
 
128
130
  ## License
129
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
131
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/_config.yml ADDED
@@ -0,0 +1,28 @@
1
+ # Jekyll
2
+ theme: unstruction-jekyll-theme
3
+
4
+ # Site Configuration
5
+ name: Unstruction # Name of your website
6
+ favicon: assets/favicon.svg # SVG favicon of your website
7
+ url: https://digitalmalayalistudio.github.io/linkhub-jekyll-theme # URL of your website
8
+ image: assets/preview.webp # Also used for SEO (og:image)
9
+ color: orange # Preferred theme color based on the Shoelace color tokens. Visit https://shoelace.style/tokens/color#theme-tokens.
10
+ date: Jan 1, 3000, 00:00:00 # Set the planned launch date and time in an ISO 8601 format or use the format shown in the example. Time is optional. Remove this variable if you don't need a countdown.
11
+ maintenance: false # Set true to enable maintenance mode
12
+
13
+ # Contacts
14
+ phone: +91123456789 #Remove any that are not needed
15
+ mail: mail@example.com
16
+ whatsapp: 91123456789
17
+ location: https://maps.google.com/location
18
+
19
+ # Defaults
20
+ defaults:
21
+ -
22
+ scope:
23
+ path: ""
24
+ values:
25
+ layout: "default"
26
+
27
+ # Exclude
28
+ exclude: [README.md, Gemfile.lock, .jekyll-cache/, .github/, CHANGELOG.md, Gemfile, LICENSE.txt, funding.yml, unstruction-jekyll-theme.gemspec]
@@ -0,0 +1,25 @@
1
+ <br><small>Feel free to reach out to us.</small>
2
+ <div slot="footer">
3
+ <sl-button-group label="Alignment">
4
+ {% if site.phone %}
5
+ <sl-button size="medium" circle href="tel:{{ site.phone }}">
6
+ <sl-icon name="telephone" label="Phone"></sl-icon>
7
+ </sl-button>
8
+ {% endif %}
9
+ {% if site.mail %}
10
+ <sl-button size="medium" circle href="mailto:{{ site.mail }}">
11
+ <sl-icon name="envelope" label="Mail"></sl-icon>
12
+ </sl-button>
13
+ {% endif %}
14
+ {% if site.whatsapp %}
15
+ <sl-button size="medium" circle href="https://wa.me/{{ site.whatsapp }}">
16
+ <sl-icon name="whatsapp" label="WhatsApp"></sl-icon>
17
+ </sl-button>
18
+ {% endif %}
19
+ {% if site.location %}
20
+ <sl-button size="medium" circle href="{{ site.location }}" target="_blank">
21
+ <sl-icon name="geo-alt" label="Map"></sl-icon>
22
+ </sl-button>
23
+ {% endif %}
24
+ </sl-button-group>
25
+ </div>
@@ -0,0 +1,81 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description"
8
+ content="This website is under construction. Please check back later.">
9
+ <meta property="og:title" content="{{ site.name }} - Under Construction">
10
+ <meta property="og:description"
11
+ content="This website is under construction. Please check back later.">
12
+ <meta property="og:type" content="website">
13
+ <meta property="og:url" content="{{ site.url }}">
14
+ <meta property="og:image" content="{{ site.url }}/{{ site.image }}">
15
+ <title>{{ site.name }} - Under Construction</title>
16
+ <link rel="icon" href="{{ site.favicon }}" type="image/svg+xml">
17
+ <script src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/dist/utilities/shoelace.js"
18
+ data-shoelace="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0/dist/"></script>
19
+ <link rel="stylesheet" media="(prefers-color-scheme:light)"
20
+ href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/themes/light.css" />
21
+ <link rel="stylesheet" media="(prefers-color-scheme:dark)"
22
+ href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/themes/dark.css"
23
+ onload="document.documentElement.classList.add('sl-theme-dark');" />
24
+ <script type="module"
25
+ src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/card/card.js"></script>
26
+ {% if site.phone or site.mail or site.whatsapp or site.location %}
27
+ <script type="module"
28
+ src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/button/button.js"></script>
29
+ <script type="module"
30
+ src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/icon/icon.js"></script>
31
+ <style>
32
+ .card-overview small{ color: var(--sl-color-neutral-700);} .card-overview [slot='footer']{ display: flex; justify-content: space-between; align-items: center;} sl-button::part(base){ color: var(--sl-color-gray-50); background-color: var(--theme-color-600); border-color: var(--theme-color-300);} sl-button::part(base):hover{ background-color: var(--theme-color-500);}
33
+ </style>
34
+ {% endif %}
35
+ <script type="module"
36
+ src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/icon-button/icon-button.js"></script>
37
+ <script type="module"
38
+ src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/button-group/button-group.js"></script>
39
+ <script type="module"
40
+ src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/badge/badge.js"></script>
41
+ <style>
42
+ :root {
43
+ --theme-color-300: var(--sl-color-{{ site.color | downcase }}-300);
44
+ --theme-color-500: var(--sl-color-{{ site.color | downcase }}-500);
45
+ --theme-color-600: var(--sl-color-{{ site.color | downcase }}-600);
46
+ }
47
+ body{ min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--sl-font-sans); line-height: var(--sl-line-height-normal);} .card-overview{ max-width: 350px;} sl-badge::part(base){ background-color: var(--theme-color-600); --pulse-color: var(--theme-color-600);} sl-icon-button::part(base):hover{ color: var(--theme-color-600);} .copyright{ color: var(--sl-color-neutral-600); text-align: center; margin-top: 2rem;} .copyright a{ color: var(--theme-color-600);}
48
+ </style>
49
+ </head>
50
+
51
+ <body>
52
+ <sl-card class="card-overview">
53
+ <img slot="image" src="{{ site.image }}" alt="{{ site.name }} - Under Construction" width="350">
54
+ <strong>{{ site.name }}</strong><br>
55
+ {% if site.maintenance == true %}
56
+ This website is undergoing maintenance.
57
+ {% else %}
58
+ This website is under construction.
59
+ {% endif %}
60
+ {% if site.date %}
61
+ <br>Please check back later in <sl-badge pill pulse
62
+ class="days"></sl-badge> days, <sl-badge pill pulse class="hr"></sl-badge> hours, <sl-badge
63
+ pill pulse class="min"></sl-badge> minutes and <sl-badge pill pulse
64
+ class="sec"></sl-badge> seconds!
65
+ <script>
66
+ const id=setInterval(timer, 1000); function timer(){ const target=new Date('{{ site.date}}').getTime(); const current=new Date().getTime(); const diff=target - current; const s=1000; const m=s * 60; const h=m * 60; const d=h * 24; let days=Math.floor(diff / d); let hr=Math.floor((diff % d) / h); let min=Math.floor((diff % h) / m); let sec=Math.floor((diff % m) / s); document.querySelector('.days').textContent=days; document.querySelector('.hr').textContent=hr; document.querySelector('.min').textContent=min; document.querySelector('.sec').textContent=sec; if (diff <=0){ clearInterval(id); document.querySelector('.days').textContent='0'; document.querySelector('.hr').textContent='0'; document.querySelector('.min').textContent='0'; document.querySelector('.sec').textContent='0';}} timer();
67
+ </script>
68
+ {% else %}
69
+ <br>Please check back later!
70
+ {% endif %}
71
+ {% if site.phone or site.mail or site.whatsapp or site.location %}
72
+ {% include contacts.html %}
73
+ {% endif %}
74
+ </sl-card>
75
+
76
+ <small class="copyright"><sl-icon-button name="github" label="Settings" style="font-size: 1.2rem;"
77
+ href="https://github.com/digitalmalayalistudio/unstruction-jekyll-theme/"
78
+ target="_blank"></sl-icon-button><br>Unstruction v{{ theme.version }} by
79
+ <a href="http://studio.digitalmalayali.in/">Digital Malayali Studio</a><br>
80
+ © {{ "now" | date: "%Y" }} {{ site.name }}</small>
81
+ </body>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg width="100%" height="100%" viewBox="0 0 4 4" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
4
+ <path d="M3.486,2.196C3.494,2.132 3.5,2.068 3.5,2C3.5,1.932 3.494,1.868 3.486,1.804L3.908,1.474C3.946,1.444 3.956,1.39 3.932,1.346L3.532,0.654C3.508,0.61 3.454,0.594 3.41,0.61L2.912,0.81C2.808,0.73 2.696,0.664 2.574,0.614L2.498,0.084C2.492,0.036 2.45,-0 2.4,-0L1.6,-0C1.55,-0 1.508,0.036 1.502,0.084L1.426,0.614C1.304,0.664 1.192,0.732 1.088,0.81L0.59,0.61C0.544,0.592 0.492,0.61 0.468,0.654L0.068,1.346C0.042,1.39 0.054,1.444 0.092,1.474L0.514,1.804C0.506,1.868 0.5,1.934 0.5,2C0.5,2.066 0.506,2.132 0.514,2.196L0.092,2.526C0.054,2.556 0.044,2.61 0.068,2.654L0.468,3.346C0.492,3.39 0.546,3.406 0.59,3.39L1.088,3.19C1.192,3.27 1.304,3.336 1.426,3.386L1.502,3.916C1.508,3.964 1.55,4 1.6,4L2.4,4C2.45,4 2.492,3.964 2.498,3.916L2.574,3.386C2.696,3.336 2.808,3.268 2.912,3.19L3.41,3.39C3.456,3.408 3.508,3.39 3.532,3.346L3.932,2.654C3.956,2.61 3.946,2.556 3.908,2.526L3.486,2.196ZM2,1.045C2.527,1.045 2.955,1.473 2.955,2C2.955,2.527 2.527,2.955 2,2.955C1.473,2.955 1.045,2.527 1.045,2C1.045,1.473 1.473,1.045 2,1.045ZM2,2.7C1.614,2.7 1.3,2.386 1.3,2C1.3,1.614 1.614,1.3 2,1.3C2.386,1.3 2.7,1.614 2.7,2C2.7,2.386 2.386,2.7 2,2.7Z" style="fill:rgb(255,137,39);"/>
5
+ </svg>
Binary file
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unstruction-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Digital Malayali Studio
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: jekyll
@@ -16,37 +15,41 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '4.3'
18
+ version: '4.4'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '4.3'
25
+ version: '4.4'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: bundler
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - "~>"
32
31
  - !ruby/object:Gem::Version
33
- version: '2.4'
32
+ version: '4.0'
34
33
  type: :development
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - "~>"
39
38
  - !ruby/object:Gem::Version
40
- version: '2.4'
41
- description:
39
+ version: '4.0'
42
40
  email:
43
41
  - studio@digitalmalayali.in
44
42
  executables: []
45
43
  extensions: []
46
44
  extra_rdoc_files: []
47
45
  files:
48
- - LICENSE
46
+ - LICENSE.txt
49
47
  - README.md
48
+ - _config.yml
49
+ - _includes/contacts.html
50
+ - _layouts/default.html
51
+ - assets/favicon.svg
52
+ - assets/preview.webp
50
53
  homepage: https://digitalmalayalistudio.github.io/linkhub-jekyll-theme
51
54
  licenses:
52
55
  - MIT
@@ -56,7 +59,6 @@ metadata:
56
59
  documentation_uri: https://github.com/digitalmalayalistudio/unstruction-jekyll-theme#readme
57
60
  source_code_uri: https://github.com/digitalmalayalistudio/unstruction-jekyll-theme
58
61
  funding_uri: https://liberapay.com/zcraber
59
- post_install_message:
60
62
  rdoc_options: []
61
63
  require_paths:
62
64
  - lib
@@ -71,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
73
  - !ruby/object:Gem::Version
72
74
  version: '0'
73
75
  requirements: []
74
- rubygems_version: 3.5.22
75
- signing_key:
76
+ rubygems_version: 4.0.7
76
77
  specification_version: 4
77
78
  summary: Unstruction is a free Jekyll theme for setting up a simple and easy 'website
78
79
  under construction' page.