watery 0.1.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 +7 -0
- data/LICENSE +19 -0
- data/README.md +42 -0
- data/_includes/author.html +8 -0
- data/_includes/disqus.html +21 -0
- data/_includes/footer.html +28 -0
- data/_includes/google-analytics.html +12 -0
- data/_includes/head.html +13 -0
- data/_includes/header.html +21 -0
- data/_includes/post-data.html +29 -0
- data/_layouts/default.html +25 -0
- data/_layouts/home.html +74 -0
- data/_layouts/page.html +14 -0
- data/_layouts/post.html +23 -0
- data/assets/code.css +131 -0
- data/assets/main.css +78 -0
- data/assets/switcher.js +56 -0
- data/lib/watery/version.rb +5 -0
- data/lib/watery.rb +11 -0
- metadata +120 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: e105b507c6fd53dad47ce7add1ee02714a3241b3f8815c4672f1cee873c66a53
|
|
4
|
+
data.tar.gz: 66a3146bdc506493d56495148eab14c05b845dae4b36e8df4abb80c5f9300a57
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: be1e413983a21b2a45f52885b9759661c57545fd489b5d7eebbba0af7e3c046279a2d963be8b5ae8e869b82eec9e4c7f9f53b9af21019142e31966ebfea295f4
|
|
7
|
+
data.tar.gz: fe66e2cafd75b733184b2fcd563529e4c64173027c38a80b3e7a39e132da4670bed5388578115968f3f577f5443e896ab8abd5222b3d08a887b677003a81ad21
|
data/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Watery Jekyll Theme (Gem)
|
|
2
|
+
|
|
3
|
+
A reusable Jekyll theme extracted from the Watery site.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Use the released gem
|
|
8
|
+
|
|
9
|
+
Add to your site's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem "watery", "~> 0.1"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Then in `_config.yml`:
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
theme: watery
|
|
19
|
+
plugins:
|
|
20
|
+
- jekyll-feed
|
|
21
|
+
- jekyll-seo-tag
|
|
22
|
+
- jekyll-paginate
|
|
23
|
+
- jekyll-sitemap
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Local development against this repo
|
|
27
|
+
|
|
28
|
+
Use this form in your site's Gemfile if you want to develop the theme locally:
|
|
29
|
+
|
|
30
|
+
```ruby
|
|
31
|
+
gem "watery", path: "../theme"
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Features
|
|
35
|
+
- Minimal Water.css base
|
|
36
|
+
- Accessible templates
|
|
37
|
+
- SEO meta via jekyll-seo-tag
|
|
38
|
+
- RSS via jekyll-feed
|
|
39
|
+
- Optional pagination via jekyll-paginate
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<div id="h-card">
|
|
2
|
+
<h3>About
|
|
3
|
+
<span class="p-name">{{site.author}}</span>
|
|
4
|
+
</h3>
|
|
5
|
+
<img class="u-photo" src="{{ site.author_pic }}" alt="Photo of {{site.author}}"/>
|
|
6
|
+
<p class="p-note">{{ site.author_bio }}</p>
|
|
7
|
+
<a href="{{site.url}}" class="u-url u-uid" hidden></a>
|
|
8
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{%- if page.comments -%}
|
|
2
|
+
<!-- DISQUS COMMENT SECTION -->
|
|
3
|
+
<div id="disqus_thread"></div>
|
|
4
|
+
<script>
|
|
5
|
+
/**
|
|
6
|
+
*RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
|
7
|
+
*LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/
|
|
8
|
+
var disqus_config = function () {
|
|
9
|
+
this.page.url = '{{ page.url | absolute_url }}'; // Replace PAGE_URL with your page's canonical URL variable
|
|
10
|
+
this.page.identifier = '{{ page.url | absolute_url }}'; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
(function() { // DON'T EDIT BELOW THIS LINE
|
|
14
|
+
var d = document, s = d.createElement('script');
|
|
15
|
+
s.src = 'https://{{site.disqus}}.disqus.com/embed.js';
|
|
16
|
+
s.setAttribute('data-timestamp', +new Date());
|
|
17
|
+
(d.head || d.body).appendChild(s);
|
|
18
|
+
})();
|
|
19
|
+
</script>
|
|
20
|
+
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
|
21
|
+
{%- endif -%}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<footer>
|
|
2
|
+
<div id="social">
|
|
3
|
+
Follow:
|
|
4
|
+
<a href="https://twitter.com/{{site.twitter}}" rel="me">
|
|
5
|
+
Twitter
|
|
6
|
+
</a>
|
|
7
|
+
/
|
|
8
|
+
<a href="https://github.com/{{site.github}}" rel="me">
|
|
9
|
+
GitHub
|
|
10
|
+
</a>
|
|
11
|
+
/
|
|
12
|
+
<a href="mailto:{{site.email}}" rel="me">
|
|
13
|
+
E-mail
|
|
14
|
+
</a>
|
|
15
|
+
</div>
|
|
16
|
+
<strong>
|
|
17
|
+
<a href="https://github.com/{{ site.repository }}">Source Code</a>
|
|
18
|
+
licensed under
|
|
19
|
+
<a href="https://github.com/{{ site.repository }}/blob/main/LICENSE">MIT</a>.
|
|
20
|
+
<br/>
|
|
21
|
+
Website content licensed
|
|
22
|
+
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>
|
|
23
|
+
<br/>
|
|
24
|
+
by
|
|
25
|
+
{{ site.author }}
|
|
26
|
+
</strong>
|
|
27
|
+
|
|
28
|
+
</footer>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
|
2
|
+
<script>
|
|
3
|
+
window["ga-disable-{{ site.google_analytics }}"] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
|
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
|
5
|
+
|
|
6
|
+
function gtag() {
|
|
7
|
+
dataLayer.push(arguments);
|
|
8
|
+
}
|
|
9
|
+
gtag("js", new Date());
|
|
10
|
+
|
|
11
|
+
gtag("config", "{{ site.google_analytics }}");
|
|
12
|
+
</script>
|
data/_includes/head.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<head>
|
|
2
|
+
<meta charset="utf-8">
|
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
5
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/light.css">
|
|
6
|
+
<link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
|
|
7
|
+
<link rel="stylesheet" href="{{ '/assets/code.css' | relative_url }}">
|
|
8
|
+
{%- seo -%}
|
|
9
|
+
{%- feed_meta -%}
|
|
10
|
+
{%- if site.google_analytics -%}
|
|
11
|
+
{%- include google-analytics.html -%}
|
|
12
|
+
{%- endif -%}
|
|
13
|
+
</head>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<header>
|
|
2
|
+
<h1 id="title">
|
|
3
|
+
<a href="{{ '/' | relative_url }}">{{site.title}}</a>
|
|
4
|
+
</h1>
|
|
5
|
+
<p id="description">
|
|
6
|
+
{{site.description}}
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<hr/>
|
|
10
|
+
<nav id="navigation">
|
|
11
|
+
<a href="{{ '/' | relative_url }}">Home</a>
|
|
12
|
+
/
|
|
13
|
+
{% assign nav_pages = site.pages | where_exp: 'p', 'p.title' | where_exp: 'p', 'p.nav_exclude != true' | sort: 'title' %}
|
|
14
|
+
{% for page in nav_pages %}
|
|
15
|
+
<a href="{{ page.url | relative_url }}">{{page.title}}</a>
|
|
16
|
+
/
|
|
17
|
+
{% endfor %}
|
|
18
|
+
<a href="{{ '/feed.xml' | relative_url }}">RSS</a>
|
|
19
|
+
</nav>
|
|
20
|
+
<hr/>
|
|
21
|
+
</header>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<p>
|
|
2
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
|
3
|
+
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
|
4
|
+
{{ page.date | date: date_format }}
|
|
5
|
+
</time>
|
|
6
|
+
{%- if page.modified_date -%}
|
|
7
|
+
~
|
|
8
|
+
{%- assign mdate = page.modified_date | date_to_xmlschema -%}
|
|
9
|
+
<time class="dt-updated" datetime="{{ mdate }}" itemprop="dateModified">
|
|
10
|
+
{{ mdate | date: date_format }}
|
|
11
|
+
</time>
|
|
12
|
+
{%- endif -%}
|
|
13
|
+
 
|
|
14
|
+
{%- if page.author -%}
|
|
15
|
+
{% for author in page.author %}
|
|
16
|
+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
|
|
17
|
+
By:
|
|
18
|
+
<span itemprop="name" rel="author" class="p-author">
|
|
19
|
+
{{ author }}
|
|
20
|
+
</span>
|
|
21
|
+
</span>
|
|
22
|
+
{%- if forloop.last == false %}, {% endif -%}
|
|
23
|
+
{% endfor %}
|
|
24
|
+
{%- endif -%}
|
|
25
|
+
 | 
|
|
26
|
+
{%- for tag in page.tags -%}
|
|
27
|
+
<a class="p-category" href="{{ ('/tags/#' | append: tag) | relative_url }}">#{{ tag }}</a>  
|
|
28
|
+
{%- endfor -%}
|
|
29
|
+
</p>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
|
3
|
+
|
|
4
|
+
{%- include head.html -%}
|
|
5
|
+
|
|
6
|
+
<body class="container">
|
|
7
|
+
|
|
8
|
+
<a class="skip-main" href="#content">Skip to main content</a>
|
|
9
|
+
<div id="top" class="page" role="document">
|
|
10
|
+
{%- include header.html -%}
|
|
11
|
+
|
|
12
|
+
<main aria-label="Content">
|
|
13
|
+
<div id="content">
|
|
14
|
+
{{ content }}
|
|
15
|
+
</div>
|
|
16
|
+
</main>
|
|
17
|
+
|
|
18
|
+
{%- include footer.html -%}
|
|
19
|
+
</div>
|
|
20
|
+
{%- if site.theme_switcher -%}
|
|
21
|
+
<script src="{{ '/assets/switcher.js' | relative_url }}" type="text/javascript"></script>
|
|
22
|
+
{%- endif -%}
|
|
23
|
+
</body>
|
|
24
|
+
|
|
25
|
+
</html>
|
data/_layouts/home.html
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<div>
|
|
6
|
+
{{ content }}
|
|
7
|
+
|
|
8
|
+
{% if site.paginate %}
|
|
9
|
+
{% assign posts = paginator.posts %}
|
|
10
|
+
{% else %}
|
|
11
|
+
{% assign posts = site.posts %}
|
|
12
|
+
{% endif %}
|
|
13
|
+
|
|
14
|
+
{%- if posts.size > 0 -%}
|
|
15
|
+
{%- assign date_format = site.minima.date_format | default: "%B %-d, %Y" -%}
|
|
16
|
+
{%- for post in posts -%}
|
|
17
|
+
|
|
18
|
+
<h2>
|
|
19
|
+
<a href="{{ post.url | relative_url }}">
|
|
20
|
+
{{ post.title | escape }}
|
|
21
|
+
</a>
|
|
22
|
+
</h2>
|
|
23
|
+
<span>Posted:
|
|
24
|
+
{{ post.date | date: date_format }}
|
|
25
|
+
</span>
|
|
26
|
+
<span>
|
|
27
|
+
{% for tag in post.tags %}
|
|
28
|
+
<a href="{{ ('/tags/#' | append: tag) | relative_url }}">#{{ tag }}</a>
|
|
29
|
+
{% endfor %}
|
|
30
|
+
</span>
|
|
31
|
+
<br/>
|
|
32
|
+
<small>
|
|
33
|
+
<em>{{ post.content | strip_html | escape | truncate: 300}}</em>
|
|
34
|
+
</small>
|
|
35
|
+
|
|
36
|
+
{%- endfor -%}
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
{% if site.paginate and paginator and paginator.total_pages > 1 %}
|
|
41
|
+
<div id="pages">
|
|
42
|
+
{% if paginator.previous_page %}
|
|
43
|
+
<strong>
|
|
44
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a>
|
|
45
|
+
</strong>
|
|
46
|
+
{% else %}
|
|
47
|
+
<span>« Prev</span>
|
|
48
|
+
{% endif %}
|
|
49
|
+
|
|
50
|
+
{% for page in (1..paginator.total_pages) %}
|
|
51
|
+
{% if page == paginator.page %}
|
|
52
|
+
<span class="webjeda">({{ page }})</span>
|
|
53
|
+
{% elsif page == 1 %}
|
|
54
|
+
<a href="{{ '/' | relative_url }}">{{ page }}</a>
|
|
55
|
+
{% else %}
|
|
56
|
+
<strong>
|
|
57
|
+
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
|
|
58
|
+
</strong>
|
|
59
|
+
{% endif %}
|
|
60
|
+
{% endfor %}
|
|
61
|
+
|
|
62
|
+
{% if paginator.next_page %}
|
|
63
|
+
<strong>
|
|
64
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a>
|
|
65
|
+
</strong>
|
|
66
|
+
{% else %}
|
|
67
|
+
<span>Next »</span>
|
|
68
|
+
{% endif %}
|
|
69
|
+
</div>
|
|
70
|
+
{% endif %}
|
|
71
|
+
|
|
72
|
+
{%- endif -%}
|
|
73
|
+
|
|
74
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: default
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
|
6
|
+
|
|
7
|
+
<header>
|
|
8
|
+
<h2 itemprop="name headline">{{ page.title | escape }}</h2>
|
|
9
|
+
{%- include post-data.html -%}
|
|
10
|
+
</header>
|
|
11
|
+
|
|
12
|
+
<div class="e-content" itemprop="articleBody">
|
|
13
|
+
{{ content }}
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
{%- include author.html -%}
|
|
17
|
+
|
|
18
|
+
{%- if site.disqus -%}
|
|
19
|
+
{%- include disqus.html -%}
|
|
20
|
+
{%- endif -%}
|
|
21
|
+
|
|
22
|
+
<a class="u-url u-uid" href="{{ page.url | relative_url }}" hidden></a>
|
|
23
|
+
</article>
|
data/assets/code.css
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
.highlight table td {
|
|
2
|
+
padding: 5px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.highlight table pre {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.highlight,
|
|
10
|
+
.highlight .w {
|
|
11
|
+
color: #586e75;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.highlight .err {
|
|
15
|
+
color: #002b36;
|
|
16
|
+
background-color: #dc322f;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.highlight .c,
|
|
20
|
+
.highlight .cd,
|
|
21
|
+
.highlight .cm,
|
|
22
|
+
.highlight .c1,
|
|
23
|
+
.highlight .cs {
|
|
24
|
+
color: #657b83;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.highlight .cp {
|
|
28
|
+
color: #b58900;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.highlight .nt {
|
|
32
|
+
color: #b58900;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.highlight .o,
|
|
36
|
+
.highlight .ow {
|
|
37
|
+
color: #93a1a1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.highlight .p,
|
|
41
|
+
.highlight .pi {
|
|
42
|
+
color: #93a1a1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.highlight .gi {
|
|
46
|
+
color: #859900;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.highlight .gd {
|
|
50
|
+
color: #dc322f;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.highlight .gh {
|
|
54
|
+
color: #268bd2;
|
|
55
|
+
background-color: #002b36;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.highlight .k,
|
|
60
|
+
.highlight .kn,
|
|
61
|
+
.highlight .kp,
|
|
62
|
+
.highlight .kr,
|
|
63
|
+
.highlight .kv {
|
|
64
|
+
color: #6c71c4;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.highlight .kc {
|
|
68
|
+
color: #cb4b16;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.highlight .kt {
|
|
72
|
+
color: #cb4b16;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.highlight .kd {
|
|
76
|
+
color: #cb4b16;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.highlight .s,
|
|
80
|
+
.highlight .sb,
|
|
81
|
+
.highlight .sc,
|
|
82
|
+
.highlight .sd,
|
|
83
|
+
.highlight .s2,
|
|
84
|
+
.highlight .sh,
|
|
85
|
+
.highlight .sx,
|
|
86
|
+
.highlight .s1 {
|
|
87
|
+
color: #859900;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.highlight .sr {
|
|
91
|
+
color: #2aa198;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.highlight .si {
|
|
95
|
+
color: #d33682;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.highlight .se {
|
|
99
|
+
color: #d33682;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.highlight .nn {
|
|
103
|
+
color: #b58900;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.highlight .nc {
|
|
107
|
+
color: #b58900;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.highlight .no {
|
|
111
|
+
color: #b58900;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.highlight .na {
|
|
115
|
+
color: #268bd2;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.highlight .m,
|
|
119
|
+
.highlight .mf,
|
|
120
|
+
.highlight .mh,
|
|
121
|
+
.highlight .mi,
|
|
122
|
+
.highlight .il,
|
|
123
|
+
.highlight .mo,
|
|
124
|
+
.highlight .mb,
|
|
125
|
+
.highlight .mx {
|
|
126
|
+
color: #859900;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.highlight .ss {
|
|
130
|
+
color: #859900;
|
|
131
|
+
}
|
data/assets/main.css
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
h1,
|
|
2
|
+
figcaption,
|
|
3
|
+
#description,
|
|
4
|
+
#navigation,
|
|
5
|
+
#author h3 {
|
|
6
|
+
text-align: center;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
h2 {
|
|
10
|
+
margin-bottom: 0px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#title a {
|
|
14
|
+
color: darkcyan;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#navigation a {
|
|
18
|
+
font-weight: bold;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#h-card {
|
|
22
|
+
overflow: auto;
|
|
23
|
+
padding: 0px 10px 15px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#h-card img {
|
|
27
|
+
float: left;
|
|
28
|
+
max-height: 150px;
|
|
29
|
+
margin-top: -10px;
|
|
30
|
+
padding-right: 15px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#h-card h3 {
|
|
34
|
+
margin-top: 5px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#pages {
|
|
38
|
+
text-align: center;
|
|
39
|
+
margin-top: 20px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
#current-page {
|
|
43
|
+
padding: 0px 15px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
#social {
|
|
47
|
+
text-align: right;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ACCESSIBILITY */
|
|
51
|
+
a.skip-main {
|
|
52
|
+
left: -999px;
|
|
53
|
+
position: absolute;
|
|
54
|
+
top: auto;
|
|
55
|
+
width: 1px;
|
|
56
|
+
height: 1px;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
z-index: -999;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.a11y-only,
|
|
62
|
+
a.skip-main:focus,
|
|
63
|
+
a.skip-main:active {
|
|
64
|
+
color: #fff;
|
|
65
|
+
background-color: #000;
|
|
66
|
+
left: auto;
|
|
67
|
+
top: auto;
|
|
68
|
+
width: 30%;
|
|
69
|
+
height: auto;
|
|
70
|
+
overflow: auto;
|
|
71
|
+
margin: 10px 35%;
|
|
72
|
+
padding: 5px;
|
|
73
|
+
border-radius: 15px;
|
|
74
|
+
border: 4px solid yellow;
|
|
75
|
+
text-align: center;
|
|
76
|
+
font-size: 1.2em;
|
|
77
|
+
z-index: 999;
|
|
78
|
+
}
|
data/assets/switcher.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var frameworks = "water,a11yana,axist,bahunya,bare,base,basic,bonsai,bullframe,bulma,caiuss,caramel,cardinal,centurion,chota,cirrus,clmaterial,codify,comet,concise,concrete,cutestrap,flat-ui,fluidity,furtive,generic,github-markdown,gutenberg,hack,hello,hiq,holiday,html-starterkit,hyp,kathamo,koochak,kraken,kube,latex,lemon,lit,lotus,markdown,marx,material,materialize,mercury,milligram,min,mini,minimal,minimal-stylesheet,mobi,motherplate,mu,mui,mvp,new,no-class,normalize,oh-my-css,paper,papier,pavilion,picnic,preface,primer,propeller,pure,roble,sakura,sanitize,scooter,semantic-ui,shoelace,siimple,simple,skeleton,skeleton-framework,skeleton-plus,snack,spectre,style,stylize,tachyons,tacit,tent,thao,vanilla,vital,wing,writ,yamb,yorha,ads-gazette,ads-medium,ads-notebook,ads-tufte,attri-bright-light-green,attri-midnight-green,attri-dark-forest-green,attri-dark-fairy-pink,attri-light-fairy-pink,awsm-default,awsm-black,awsm-bigstone,awsm-gondola,awsm-mischka,awsm-pastelpink,awsm-pearllusta,awsm-tasman,awsm-white,boot-cerulean,boot-cosmo,boot-cyborg,boot-darkly,boot-flatly,boot-journal,boot-lumen,boot-paper,boot-readable,boot-sandstone,boot-slate,boot-spacelab,boot-superhero,boot-yeti,md-air,md-modest,md-retro,md-splendor,w3c-chocolate,w3c-midnight,w3c-modernist,w3c-oldstyle,w3c-steely,w3c-swiss,w3c-traditional,w3c-ultramarine";
|
|
2
|
+
|
|
3
|
+
add_switcher();
|
|
4
|
+
|
|
5
|
+
function switch_css(css) {
|
|
6
|
+
css_link.href = "https://dohliam.github.io/dropin-minimal-css/min/" + css + ".min.css";
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function capitalize(s) {
|
|
10
|
+
u = s.replace(/^(.)/, function(_, l) {
|
|
11
|
+
return l.toUpperCase();
|
|
12
|
+
});
|
|
13
|
+
return u;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function on_css_load() {
|
|
17
|
+
var bgColor = getComputedStyle(document.body).backgroundColor;
|
|
18
|
+
if (bgColor.match(/^rgba\(.*\)/)) bgColor = 'white';
|
|
19
|
+
switcher.style.backgroundColor = bgColor;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function inline_switcher() {
|
|
23
|
+
switcher = document.getElementById("switcher");
|
|
24
|
+
frameworks_array = frameworks.split(",");
|
|
25
|
+
select_open = '\n <label><strong>NEW!</strong> Try Out Different Themes! <select name="switcher_dropdown" id="switcher_dropdown" accesskey="s" onchange="switch_css(this.value)"> </label>\n';
|
|
26
|
+
dropdown = select_open;
|
|
27
|
+
for (i = 0; i < frameworks_array.length; i++) {
|
|
28
|
+
f = frameworks_array[i];
|
|
29
|
+
framework_name = capitalize(f);
|
|
30
|
+
option = ' <option value="' + f + '">' + framework_name + ' CSS</option>\n';
|
|
31
|
+
dropdown = dropdown + option;
|
|
32
|
+
}
|
|
33
|
+
select_close = ' </select>\n '
|
|
34
|
+
dropdown = dropdown + select_close;
|
|
35
|
+
switcher.innerHTML = dropdown;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function add_switcher() {
|
|
39
|
+
css_link = document.getElementsByTagName("link")[0];
|
|
40
|
+
if (css_link == undefined) {
|
|
41
|
+
head = document.getElementsByTagName('head')[0];
|
|
42
|
+
css_link = document.createElement('link');
|
|
43
|
+
css_link.rel = "stylesheet";
|
|
44
|
+
css_link.type = "text/css";
|
|
45
|
+
css_link.href = "https://dohliam.github.io/dropin-minimal-css/min/" + frameworks.split(",")[0] + ".min.css";
|
|
46
|
+
head.appendChild(css_link);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
var new_div = document.createElement('div');
|
|
50
|
+
new_div.id = 'switcher';
|
|
51
|
+
new_div.innerHTML = ' <div> </div>\n <script type="text/javascript">inline_switcher();<\/script>';
|
|
52
|
+
document.body.prepend(new_div);
|
|
53
|
+
inline_switcher();
|
|
54
|
+
|
|
55
|
+
css_link.onload = on_css_load;
|
|
56
|
+
}
|
data/lib/watery.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: watery
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Brennan K. Brown
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-08-25 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: jekyll
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '4.3'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '4.3'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: jekyll-seo-tag
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.8'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '2.8'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: jekyll-feed
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0.17'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0.17'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: jekyll-paginate
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.1'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.1'
|
|
69
|
+
description: A reusable Jekyll theme extracted from the Watery site, built on Water.css
|
|
70
|
+
with accessibility and SEO best practices.
|
|
71
|
+
email:
|
|
72
|
+
- mail@brennanbrown.ca
|
|
73
|
+
executables: []
|
|
74
|
+
extensions: []
|
|
75
|
+
extra_rdoc_files: []
|
|
76
|
+
files:
|
|
77
|
+
- LICENSE
|
|
78
|
+
- README.md
|
|
79
|
+
- _includes/author.html
|
|
80
|
+
- _includes/disqus.html
|
|
81
|
+
- _includes/footer.html
|
|
82
|
+
- _includes/google-analytics.html
|
|
83
|
+
- _includes/head.html
|
|
84
|
+
- _includes/header.html
|
|
85
|
+
- _includes/post-data.html
|
|
86
|
+
- _layouts/default.html
|
|
87
|
+
- _layouts/home.html
|
|
88
|
+
- _layouts/page.html
|
|
89
|
+
- _layouts/post.html
|
|
90
|
+
- assets/code.css
|
|
91
|
+
- assets/main.css
|
|
92
|
+
- assets/switcher.js
|
|
93
|
+
- lib/watery.rb
|
|
94
|
+
- lib/watery/version.rb
|
|
95
|
+
homepage: https://github.com/brennanbrown/watery
|
|
96
|
+
licenses:
|
|
97
|
+
- MIT
|
|
98
|
+
metadata:
|
|
99
|
+
homepage_uri: https://github.com/brennanbrown/watery
|
|
100
|
+
source_code_uri: https://github.com/brennanbrown/watery
|
|
101
|
+
post_install_message:
|
|
102
|
+
rdoc_options: []
|
|
103
|
+
require_paths:
|
|
104
|
+
- lib
|
|
105
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '3.0'
|
|
110
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
- - ">="
|
|
113
|
+
- !ruby/object:Gem::Version
|
|
114
|
+
version: '0'
|
|
115
|
+
requirements: []
|
|
116
|
+
rubygems_version: 3.4.1
|
|
117
|
+
signing_key:
|
|
118
|
+
specification_version: 4
|
|
119
|
+
summary: Watery Jekyll theme
|
|
120
|
+
test_files: []
|