jekyll-theme-amethyst 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/wrapper.html +27 -23
- 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: '098f1973205c26d8a0bdbb0c188b2be769783ab3b527b39088e3fa2bbbb9e7c6'
|
4
|
+
data.tar.gz: 0fac758e9d16da28ba89ec6e43487a4bb66d65eeb20468111a98a967c3306865
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 061a89dc8273ddbe34207b55dee3c2569d0f7feb670f6b3956ab6b48b5c97413c4c5f742f33bb2d61a574c7a0a4a5f328d8bb18c1c41920924a9d4bf45d0c4ef
|
7
|
+
data.tar.gz: d2f40a4e94f42d0a77545f9e61659d25dce7640dea0af24a9597b347adedba086baee1d61fcc3166da6dd0e19597f90b072d5aa1601cd118d39c9ee573b55bfd
|
data/_layouts/wrapper.html
CHANGED
@@ -39,19 +39,6 @@
|
|
39
39
|
<path d="M1806,332c0-123.3-43.8-228.8-131.5-316.5C1586.8-72.2,1481.3-116,1358-116s-228.8,43.8-316.5,131.5 C953.8,103.2,910,208.7,910,332s43.8,228.8,131.5,316.5C1129.2,736.2,1234.7,780,1358,780s228.8-43.8,316.5-131.5 C1762.2,560.8,1806,455.3,1806,332z M2318,1164c0,34.7-12.7,64.7-38,90s-55.3,38-90,38c-36,0-66-12.7-90-38l-343-342 c-119.3,82.7-252.3,124-399,124c-95.3,0-186.5-18.5-273.5-55.5s-162-87-225-150s-113-138-150-225S654,427.3,654,332 s18.5-186.5,55.5-273.5s87-162,150-225s138-113,225-150S1262.7-372,1358-372s186.5,18.5,273.5,55.5s162,87,225,150s113,138,150,225 S2062,236.7,2062,332c0,146.7-41.3,279.7-124,399l343,343C2305.7,1098.7,2318,1128.7,2318,1164z"/>
|
40
40
|
</svg>
|
41
41
|
</button>
|
42
|
-
<script type="module">
|
43
|
-
const searchToggle = document.querySelector('.search-toggle');
|
44
|
-
const searchForm = document.querySelector('form[role=search]');
|
45
|
-
const searchInput = searchForm.querySelector('input[type=search]');
|
46
|
-
searchToggle.addEventListener('click', () => {
|
47
|
-
const newState = searchToggle.getAttribute('aria-expanded') !== 'true';
|
48
|
-
searchToggle.setAttribute('aria-expanded', String(newState));
|
49
|
-
searchForm.style.display = newState ? 'block' : '';
|
50
|
-
if (newState) {
|
51
|
-
searchInput.focus();
|
52
|
-
}
|
53
|
-
});
|
54
|
-
</script>
|
55
42
|
<button class="nav-toggle toggle" data-opens=".site-nav" aria-expanded="false">
|
56
43
|
<span class="screen-reader-text">Menu</span>
|
57
44
|
<svg class="icon icon-nav-toggle" aria-hidden="true" viewBox="0 0 100 100" height="20">
|
@@ -61,14 +48,31 @@
|
|
61
48
|
</svg>
|
62
49
|
</button>
|
63
50
|
<script type="module">
|
51
|
+
const searchToggle = document.querySelector('.search-toggle');
|
52
|
+
const searchForm = document.querySelector('form[role=search]');
|
53
|
+
const searchInput = searchForm.querySelector('input[type=search]');
|
54
|
+
function searchFn(newState) {
|
55
|
+
searchToggle.setAttribute('aria-expanded', String(newState));
|
56
|
+
searchForm.style.display = newState ? 'block' : '';
|
57
|
+
if (newState) {
|
58
|
+
searchInput.focus();
|
59
|
+
}
|
60
|
+
}
|
64
61
|
const navToggle = document.querySelector('.nav-toggle');
|
65
62
|
const navToggleOpens = document.querySelector(navToggle.dataset.opens);
|
63
|
+
function navFn(newState) {
|
64
|
+
navToggle.classList.toggle('opened', newState);
|
65
|
+
navToggleOpens.classList.toggle('opened', newState);
|
66
|
+
navToggle.setAttribute('aria-expanded', String(newState));
|
67
|
+
navToggleOpens.setAttribute('aria-expanded', String(newState));
|
68
|
+
}
|
69
|
+
searchToggle.addEventListener('click', () => {
|
70
|
+
navFn(false);
|
71
|
+
searchFn(searchToggle.getAttribute('aria-expanded') !== 'true');
|
72
|
+
});
|
66
73
|
navToggle.addEventListener('click', () => {
|
67
|
-
|
68
|
-
navToggle.classList.
|
69
|
-
navToggle.setAttribute('aria-expanded', !state);
|
70
|
-
navToggleOpens.classList.toggle('opened', !state);
|
71
|
-
navToggleOpens.setAttribute('aria-expanded', !state);
|
74
|
+
searchFn(false);
|
75
|
+
navFn(!navToggle.classList.contains('opened'));
|
72
76
|
});
|
73
77
|
</script>
|
74
78
|
</div>
|
@@ -78,18 +82,18 @@
|
|
78
82
|
<footer class="site-footer">
|
79
83
|
<div class="wrapper">
|
80
84
|
<p class="external-links">
|
81
|
-
<a href="https://github.com/{{ site.amethyst.github | escape }}" target="_blank" rel="noopener
|
85
|
+
<a href="https://github.com/{{ site.amethyst.github | escape }}" target="_blank" rel="noopener">GitHub</a>
|
82
86
|
{%- if site.amethyst.mastodon %}
|
83
|
-
<a href="{{ site.amethyst.mastodon | escape }}" target="_blank" rel="noopener
|
87
|
+
<a href="{{ site.amethyst.mastodon | escape }}" target="_blank" rel="noopener">Mastodon</a>
|
84
88
|
{% endif -%}
|
85
89
|
{%- if site.amethyst.twitter %}
|
86
|
-
<a href="https://twitter.com/{{ site.amethyst.twitter | escape }}" target="_blank" rel="noopener
|
90
|
+
<a href="https://twitter.com/{{ site.amethyst.twitter | escape }}" target="_blank" rel="noopener">Twitter</a>
|
87
91
|
{% endif -%}
|
88
92
|
{%- if site.amethyst.gitter %}
|
89
|
-
<a href="https://gitter.im/{{ site.amethyst.gitter | escape }}" target="_blank" rel="noopener
|
93
|
+
<a href="https://gitter.im/{{ site.amethyst.gitter | escape }}" target="_blank" rel="noopener">Chat</a>
|
90
94
|
{%- endif %}
|
91
95
|
</p>
|
92
|
-
<p class="copyright">Copyright <a href="https://openjsf.org/" target="_blank" rel="noopener
|
96
|
+
<p class="copyright">Copyright <a href="https://openjsf.org/" target="_blank" rel="noopener">OpenJS Foundation</a> and contributors.
|
93
97
|
{%- comment -%}
|
94
98
|
Ignore non-markdown source paths, which are likely generated and thus
|
95
99
|
don't have a corresponding file in the repository (e.g. an archive page)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-amethyst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timo Tijhof
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-05-
|
12
|
+
date: 2023-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|