jekyll-theme-lily 1.0.2.2.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9db6fe76fb508718dba6243e172ca81a96406db3e06a542928fbe59eecb30996
4
+ data.tar.gz: ba49974fa76f5fcea752dc2c32e62827bdc86d746c01edcfdeb578eb36201daa
5
+ SHA512:
6
+ metadata.gz: 21d5edd9209ac062e9850dcd80ac25d4d68d1cd9664d313bb82a3359c9593a4d4b4c4bfbc4a85683061b67fc69e9d5ead0bb09a34d8b44b8453b588efb6383b9
7
+ data.tar.gz: 2024018fbf5537a4781561f2aeb355b2889a71196b223ef199028f4a50b1a817b58f7b9efdacce560cde43f5871a9ad01e7abdf29385ca56608d9b75574b539a
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # jekyll-theme-lily
2
+
3
+ Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
+
5
+ To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
+
7
+ TODO: Delete this and the text above, and describe your gem
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's `Gemfile`:
13
+
14
+ ```ruby
15
+ gem "jekyll-theme-lily"
16
+ ```
17
+
18
+ And add this line to your Jekyll site's `_config.yml`:
19
+
20
+ ```yaml
21
+ theme: jekyll-theme-lily
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install jekyll-theme-lily
31
+
32
+ ## Usage
33
+
34
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
+
36
+ ## Contributing
37
+
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
+
40
+ ## Development
41
+
42
+ To set up your environment to develop this theme, run `bundle install`.
43
+
44
+ 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.
45
+
46
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
47
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-lily.gemspec` accordingly.
48
+
49
+ ## License
50
+
51
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
data/_config.yml ADDED
@@ -0,0 +1,10 @@
1
+ title: Lily theme
2
+ description: A fresh theme for Jekyll based on Beercss.
3
+ show_downloads: true
4
+ google_analytics:
5
+ theme: jekyll-theme-lily
6
+
7
+ lily:
8
+ beercss:
9
+ css_url:
10
+ js_url:
@@ -0,0 +1,8 @@
1
+ <footer>
2
+ {% if site.github.is_project_page %}
3
+ {{ site.title | default: site.github.repository_name }} is maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a><br>
4
+ <div class="small-divider"></div>
5
+ {% endif %}
6
+ <p>{{ site.description }}</p>
7
+ <p class="footer-copyright">&#xA9; 2022 {{site.title}}. Powered by <a href="https://github.com/HowerZiu/lily">Lily</a>.</p>
8
+ </footer>
@@ -0,0 +1,10 @@
1
+ {% if site.google_analytics %}
2
+ <script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+ </script>
10
+ {% endif %}
@@ -0,0 +1,9 @@
1
+ <!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
2
+
3
+ <!-- Setup Google Analytics -->
4
+ {% include head-custom-google-analytics.html %}
5
+
6
+ <!-- You can set your favicon here -->
7
+ <!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
8
+
9
+ <!-- end custom head snippets -->
@@ -0,0 +1,25 @@
1
+ <head>
2
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <title>
5
+ {% if page.title %}
6
+ {{ page.title | escape }}
7
+ {% else %}
8
+ {{ site.title | escape }}
9
+ {% endif %}
10
+ </title>
11
+ {% if site.lily.beercss.css_url %}
12
+ <link rel="stylesheet" type="text/css" href="{{ site.lily.beercss.css_url }}">
13
+ {% else %}
14
+ <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/beercss@2.2.11/dist/cdn/beer.min.css">
15
+ {% endif %}
16
+ <link rel="stylesheet" type="text/css" href="{{ "/assets/css/style.css" | relative_url }}">
17
+ {% if site.lily.beercss.js_url %}
18
+ <script type="text/javascript" src="{{ site.lily.beercss.js_url }}"></script>
19
+ {% else %}
20
+ <script type="text/javascript" src="//cdn.jsdelivr.net/npm/beercss@2.2.11/dist/cdn/beer.min.js"></script>
21
+ {% endif %}
22
+ {% seo %}
23
+ <script type="text/javascript" src="{{ "/assets/js/lily.js" | relative_url }}"></script>
24
+ {% include head-custom.html %}
25
+ </head>
@@ -0,0 +1,23 @@
1
+ <header class="responsive fixed lily-translucent-bar">
2
+ <nav>
3
+ {% if page.hide_title %}
4
+ <h5 class="max lily-bar-text" ondblclick="body.scrollTop=document.documentElement.scrollTop=0;"></h5>
5
+ {% else %}
6
+ {% if page.hide_excerpt %}
7
+ <h5 class="max lily-bar-text" ondblclick="body.scrollTop=document.documentElement.scrollTop=0;">{{ page.title | default: site.title | default: site.github.repository_name }}</h5>
8
+ {% else %}
9
+ {% if page.layout=="post" %}
10
+ <h5 class="max lily-bar-text" ondblclick="body.scrollTop=document.documentElement.scrollTop=0;">{{ page.title | default: site.title | default: site.github.repository_name }}</h5>
11
+ {% else %}
12
+ <div class="max lily-bar-text" ondblclick="body.scrollTop=document.documentElement.scrollTop=0;">
13
+ <h6 class="lily-bar-text">{{ page.title | default: site.title | default: site.github.repository_name }}</h6>
14
+ <p class="lily-bar-text">{{ page.excerpt | default: site.description | default: site.github.project_tagline }}</p>
15
+ </div>
16
+ {% endif %}
17
+ {% endif %}
18
+ {% endif %}
19
+ <button class="circle transparent" title="Light mode switch" onclick="changeLilyMode()">
20
+ <i>light_mode</i>
21
+ </button>
22
+ </nav>
23
+ </header>
@@ -0,0 +1,38 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
+
4
+ {% include head.html %}
5
+
6
+ <body>
7
+ <div id="body" class="lily-mode-light">
8
+ {% include header.html %}
9
+ <main class="responsive">
10
+ <section id="downloads">
11
+ {% if page.layout!="post" %}
12
+ {% if site.show_downloads %}
13
+ <a href="{{ site.github.zip_url }}" id="download-zip" class="chip left-round">Download <strong>.zip</strong></a>
14
+ {% endif %}
15
+ {% if site.github.public %}
16
+ {% if site.github.is_project_page %}
17
+ <a href="{{ site.github.repository_url }}" id="view-on-github" class="chip">View On <strong>GitHub</strong></a>
18
+ {% else %}
19
+ <a href="{{ site.github.owner_url }}" id="view-on-github" class="chip">View On <strong>GitHub</strong></a>
20
+ {% endif %}
21
+ {% endif %}
22
+ {% if site.show_downloads %}
23
+ <a href="{{ site.github.tar_url }}" id="download-tar-gz" class="chip right-round">Download <strong>.tar.gz</strong></a>
24
+ {% endif %}
25
+ {% endif %}
26
+ </section>
27
+ <section id="main_content">
28
+ {{ content }}
29
+ </section>
30
+ </main>
31
+ <div class="large-divider"></div>
32
+ {% include footer.html %}
33
+ </div>
34
+ <script>setLilyMode();</script>
35
+ <script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
36
+ </body>
37
+
38
+ </html>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,42 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div id="post-info">
5
+ <article>
6
+ <details>
7
+ <summary class="none">
8
+ <div class="row">
9
+ <i title="Date">date_range</i>
10
+ <noscript>{{ page.date | date: "%d/%m/%Y %H:%M %Z" }}</noscript>
11
+ <script>
12
+ var datecz = new Date('{{ page.date }}');
13
+ document.write(datecz);
14
+ </script>
15
+ <div class="max"></div>
16
+ <i title="Show extra info">arrow_drop_down</i>
17
+ </div>
18
+ </summary>
19
+ <div class="medium-divider"></div>
20
+ <div class="row">
21
+ <i title="Categories">sort</i>
22
+ {% for cat in page.categories %}
23
+ {% capture test %}{{ cat | slice: 0 }}{% endcapture %}
24
+ {% capture testup %}{{ cat | slice: 0 | upcase }}{% endcapture %}
25
+ <a class="chip round">{{ cat }}</a>
26
+ {% endfor %}
27
+ </div>
28
+ <div class="row">
29
+ <i title="Tags">label</i>
30
+ {% for tag in page.tags %}
31
+ {% capture test %}{{ tag | slice: 0 }}{% endcapture %}
32
+ {% capture testup %}{{ tag | slice: 0 | upcase }}{% endcapture %}
33
+ <a class="chip primary right-round">{{ tag }}</a>
34
+ {% endfor %}
35
+ </div>
36
+ </details>
37
+ </article>
38
+ </div>
39
+ <div class="large-divider"></div>
40
+ <div id="post_content">
41
+ {{ content }}
42
+ </div>
@@ -0,0 +1,141 @@
1
+ .lily-mode-light {
2
+ --primary:#4d57a9;--on-primary:#ffffff;--primary-container:#dee0ff;--on-primary-container:#000965;--secondary:#5c5d72;--on-secondary:#ffffff;--secondary-container:#e0e0f9;--on-secondary-container:#181a2c;--tertiary:#78536c;--on-tertiary:#ffffff;--tertiary-container:#ffd7f1;--on-tertiary-container:#2e1127;--error:#ba1b1b;--error-container:#ffdad4;--on-error:#ffffff;--on-error-container:#410001;--background:#fffbff;--on-background:#1b1b1f;--surface:#fffbff;--on-surface:#1b1b1f;--surface-variant:#e3e1ec;--on-surface-variant:#46464f;--outline:#77767f;--inverse-on-surface:#f3f0f5;--inverse-surface:#303034;--inverse-primary:#bbc2ff;--shadow:#000000;--mode: light;
3
+ @import "rouge-light";
4
+ }
5
+
6
+ .lily-mode-dark {
7
+ --primary:#bbc2ff;--on-primary:#1c2678;--primary-container:#343e8f;--on-primary-container:#dee0ff;--secondary:#c4c4dc;--on-secondary:#2d2f42;--secondary-container:#444559;--on-secondary-container:#e0e0f9;--tertiary:#e7b9d6;--on-tertiary:#45263c;--tertiary-container:#5d3c53;--on-tertiary-container:#ffd7f1;--error:#ffb4a9;--error-container:#930006;--on-error:#680003;--on-error-container:#ffdad4;--background:#1b1b1f;--on-background:#e4e1e6;--surface:#1b1b1f;--on-surface:#e4e1e6;--surface-variant:#46464f;--on-surface-variant:#c7c5d0;--outline:#91909a;--inverse-on-surface:#1b1b1f;--inverse-surface:#e4e1e6;--inverse-primary:#4d57a9;--shadow:#000000;--mode: dark;
8
+ @import "rouge-dark";
9
+ }
10
+
11
+ .lily-transparent-bg {
12
+ background-color: rgba(#000000, 0);
13
+ }
14
+
15
+ .lily-translucent-bar {
16
+ background-color: rgba(#000000, 0);
17
+ &:after {
18
+ content: "";
19
+ position: absolute;
20
+ width: 100%;
21
+ height: 100%;
22
+ z-index: -1;
23
+ background: var(--primary-container);
24
+ opacity: 93%;
25
+ top: 0;
26
+ left: 0;
27
+ }
28
+ }
29
+
30
+ .lily-bar-text {
31
+ max-width: 100%;
32
+ white-space: nowrap;
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
35
+ }
36
+
37
+ main {
38
+ line-height: 1.5;
39
+
40
+ p, ul, ol, table, dl {
41
+ margin: 0 0 16rem;
42
+ }
43
+
44
+ ul, ol {
45
+ padding-inline-start: 32rem;
46
+ }
47
+
48
+ li {
49
+ list-style-position: inside;
50
+ }
51
+
52
+ dd {
53
+ margin-inline-start: 32rem;
54
+ }
55
+
56
+ table {
57
+ width: 100%;
58
+ border-collapse: separate;
59
+ }
60
+
61
+ section {
62
+ padding-bottom: 32rem;
63
+ }
64
+
65
+ }
66
+
67
+ main, footer {
68
+ word-wrap: break-word;
69
+
70
+ a:not([class]) {
71
+ color: var(--primary);
72
+ &:hover, &:focus {
73
+ color: var(--secondary);
74
+ font-weight: bold;
75
+ }
76
+ }
77
+
78
+ }
79
+
80
+ blockquote {
81
+ border-left: 4rem solid var(--secondary);
82
+ margin: 0;
83
+ padding: 0 0 0 16rem;
84
+ font-style: italic;
85
+ }
86
+
87
+ pre {
88
+ padding: 8rem;
89
+ overflow-x: auto;
90
+ }
91
+
92
+ .highlighter-rouge, .highlight {
93
+ padding: 8rem;
94
+ margin-bottom: 16rem;
95
+ }
96
+
97
+ .highlighter-rouge>.highlight, .highlight>.highlight {
98
+ border-radius: 8rem;
99
+ margin-bottom: 0;
100
+ }
101
+
102
+ figure.highlight {
103
+ padding: 8rem;
104
+ border-radius: 8rem;
105
+ margin-bottom: 16rem;
106
+ }
107
+
108
+ table {
109
+ border-collapse: collapse;
110
+ }
111
+
112
+ td, th {
113
+ border-bottom: 1rem solid var(--outline)
114
+ }
115
+
116
+ dt {
117
+ font-weight: 700;
118
+ }
119
+
120
+ img {
121
+ max-width: 100%;
122
+ }
123
+
124
+ kbd {
125
+ box-shadow: var(--shadow1);
126
+ background-color: var(--surface-variant);
127
+ color: var(--on-surface-variant);
128
+ padding: 4rem;
129
+ border-radius: 4rem;
130
+ display: inline-block;
131
+ vertical-align: middle;
132
+ transition: var(--speed3) transform,var(--speed3) border-radius,var(--speed3) padding;
133
+ }
134
+
135
+ strong {
136
+ font-weight: 700;
137
+ }
138
+
139
+ .footer-copyright {
140
+ text-align: right;
141
+ }
data/_sass/lilie.scss ADDED
@@ -0,0 +1,4 @@
1
+ // Placeholder file. If your site uses
2
+ // @import "{{ site.theme }}";
3
+ // Then using this theme with jekyll-remote-theme will work fine.
4
+ @import "jekyll-theme-lily";
@@ -0,0 +1,95 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #fbf1c7;
5
+ background-color: var(--surface-variant);
6
+ }
7
+ .highlight .err {
8
+ color: #fb4934;
9
+ background-color: #e3d2d2;
10
+ font-weight: bold;
11
+ }
12
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
13
+ color: #928374;
14
+ font-style: italic;
15
+ }
16
+ .highlight .cp {
17
+ color: #8ec07c;
18
+ font-weight: bold;
19
+ }
20
+ .highlight .nt {
21
+ color: #fb4934;
22
+ }
23
+ .highlight .o, .highlight .ow {
24
+ color: #fbf1c7;
25
+ font-weight: bold;
26
+ }
27
+ .highlight .p, .highlight .pi {
28
+ color: #fbf1c7;
29
+ }
30
+ .highlight .gi {
31
+ color: #b8bb26;
32
+ background-color: #ddffdd;
33
+ }
34
+ .highlight .gd {
35
+ color: #fb4934;
36
+ background-color: #ffdddd;
37
+ }
38
+ .highlight .gh {
39
+ color: #b8bb26;
40
+ font-weight: bold;
41
+ }
42
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
43
+ color: #fb4934;
44
+ font-weight: bold;
45
+ }
46
+ .highlight .kc {
47
+ color: #d3869b;
48
+ font-weight: bold;
49
+ }
50
+ .highlight .kt {
51
+ color: #fabd2f;
52
+ font-weight: bold;
53
+ }
54
+ .highlight .kd {
55
+ color: #fe8019;
56
+ font-weight: bold;
57
+ }
58
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
59
+ color: #b8bb26;
60
+ font-style: italic;
61
+ }
62
+ .highlight .si {
63
+ color: #b8bb26;
64
+ font-style: italic;
65
+ }
66
+ .highlight .sr {
67
+ color: #b8bb26;
68
+ font-style: italic;
69
+ }
70
+ .highlight .sa {
71
+ color: #fb4934;
72
+ font-weight: bold;
73
+ }
74
+ .highlight .se {
75
+ color: #fe8019;
76
+ }
77
+ .highlight .nn {
78
+ color: #8ec07c;
79
+ }
80
+ .highlight .nc {
81
+ color: #8ec07c;
82
+ font-weight: bold;
83
+ }
84
+ .highlight .no {
85
+ color: #d3869b;
86
+ }
87
+ .highlight .na {
88
+ color: #b8bb26;
89
+ }
90
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
91
+ color: #d3869b;
92
+ }
93
+ .highlight .ss {
94
+ color: #83a598;
95
+ }
@@ -0,0 +1,225 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight .cm {
4
+ color: #999988;
5
+ font-style: italic;
6
+ }
7
+ .highlight .cp {
8
+ color: #999999;
9
+ font-weight: bold;
10
+ }
11
+ .highlight .c1 {
12
+ color: #999988;
13
+ font-style: italic;
14
+ }
15
+ .highlight .cs {
16
+ color: #999999;
17
+ font-weight: bold;
18
+ font-style: italic;
19
+ }
20
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cpf {
21
+ color: #999988;
22
+ font-style: italic;
23
+ }
24
+ .highlight .err {
25
+ color: #a61717;
26
+ background-color: #e3d2d2;
27
+ font-weight: bold;
28
+ }
29
+ .highlight .gd {
30
+ color: #000000;
31
+ background-color: #ffdddd;
32
+ }
33
+ .highlight .ge {
34
+ color: #000000;
35
+ font-style: italic;
36
+ }
37
+ .highlight .gr {
38
+ color: #aa0000;
39
+ }
40
+ .highlight .gh {
41
+ color: #999999;
42
+ font-weight: bold;
43
+ }
44
+ .highlight .gi {
45
+ color: #000000;
46
+ background-color: #ddffdd;
47
+ }
48
+ .highlight .go {
49
+ color: #888888;
50
+ }
51
+ .highlight .gp {
52
+ color: #555555;
53
+ }
54
+ .highlight .gs {
55
+ font-weight: bold;
56
+ }
57
+ .highlight .gu {
58
+ color: #aaaaaa;
59
+ }
60
+ .highlight .gt {
61
+ color: #aa0000;
62
+ }
63
+ .highlight .kc {
64
+ color: #000000;
65
+ font-weight: bold;
66
+ }
67
+ .highlight .kd {
68
+ color: #000000;
69
+ font-weight: bold;
70
+ }
71
+ .highlight .kn {
72
+ color: #000000;
73
+ font-weight: bold;
74
+ }
75
+ .highlight .kp {
76
+ color: #000000;
77
+ font-weight: bold;
78
+ }
79
+ .highlight .kr {
80
+ color: #000000;
81
+ font-weight: bold;
82
+ }
83
+ .highlight .kt {
84
+ color: #445588;
85
+ font-weight: bold;
86
+ }
87
+ .highlight .k, .highlight .kv {
88
+ color: #000000;
89
+ font-weight: bold;
90
+ }
91
+ .highlight .mf {
92
+ color: #009999;
93
+ }
94
+ .highlight .mh {
95
+ color: #009999;
96
+ }
97
+ .highlight .il {
98
+ color: #009999;
99
+ }
100
+ .highlight .mi {
101
+ color: #009999;
102
+ }
103
+ .highlight .mo {
104
+ color: #009999;
105
+ }
106
+ .highlight .m, .highlight .mb, .highlight .mx {
107
+ color: #009999;
108
+ }
109
+ .highlight .sa {
110
+ color: #000000;
111
+ font-weight: bold;
112
+ }
113
+ .highlight .sb {
114
+ color: #d14;
115
+ font-style: italic;
116
+ }
117
+ .highlight .sc {
118
+ color: #d14;
119
+ font-style: italic;
120
+ }
121
+ .highlight .sd {
122
+ color: #d14;
123
+ font-style: italic;
124
+ }
125
+ .highlight .s2 {
126
+ color: #d14;
127
+ font-style: italic;
128
+ }
129
+ .highlight .se {
130
+ color: #d14;
131
+ }
132
+ .highlight .sh {
133
+ color: #d14;
134
+ font-style: italic;
135
+ }
136
+ .highlight .si {
137
+ color: #d14;
138
+ font-style: italic;
139
+ }
140
+ .highlight .sx {
141
+ color: #d14;
142
+ font-style: italic;
143
+ }
144
+ .highlight .sr {
145
+ color: #009926;
146
+ font-style: italic;
147
+ }
148
+ .highlight .s1 {
149
+ color: #d14;
150
+ font-style: italic;
151
+ }
152
+ .highlight .ss {
153
+ color: #990073;
154
+ }
155
+ .highlight .s, .highlight .dl {
156
+ color: #d14;
157
+ font-style: italic;
158
+ }
159
+ .highlight .na {
160
+ color: #008080;
161
+ }
162
+ .highlight .bp {
163
+ color: #999999;
164
+ }
165
+ .highlight .nb {
166
+ color: #0086B3;
167
+ }
168
+ .highlight .nc {
169
+ color: #445588;
170
+ font-weight: bold;
171
+ }
172
+ .highlight .no {
173
+ color: #008080;
174
+ }
175
+ .highlight .nd {
176
+ color: #3c5d5d;
177
+ font-weight: bold;
178
+ }
179
+ .highlight .ni {
180
+ color: #800080;
181
+ }
182
+ .highlight .ne {
183
+ color: #990000;
184
+ font-weight: bold;
185
+ }
186
+ .highlight .nf, .highlight .fm {
187
+ color: #990000;
188
+ font-weight: bold;
189
+ }
190
+ .highlight .nl {
191
+ color: #990000;
192
+ font-weight: bold;
193
+ }
194
+ .highlight .nn {
195
+ color: #555555;
196
+ }
197
+ .highlight .nt {
198
+ color: #000080;
199
+ }
200
+ .highlight .vc {
201
+ color: #008080;
202
+ }
203
+ .highlight .vg {
204
+ color: #008080;
205
+ }
206
+ .highlight .vi {
207
+ color: #008080;
208
+ }
209
+ .highlight .nv, .highlight .vm {
210
+ color: #008080;
211
+ }
212
+ .highlight .ow {
213
+ color: #000000;
214
+ font-weight: bold;
215
+ }
216
+ .highlight .o {
217
+ color: #000000;
218
+ font-weight: bold;
219
+ }
220
+ .highlight .w {
221
+ color: #bbbbbb;
222
+ }
223
+ .highlight {
224
+ background-color: var(--surface-variant);
225
+ }
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "jekyll-theme-lily";
data/assets/js/lily.js ADDED
@@ -0,0 +1,38 @@
1
+ function setLilyCookie(cname,cvalue,exdays,path) {
2
+ var d=new Date();
3
+ d.setTime(d.getTime()+(exdays*24*60*60*1000));
4
+ c=cname+"="+cvalue;
5
+ if (exdays) c=c+"; expires="+d.toGMTString();
6
+ if (path) c=c+"; path="+path;
7
+ document.cookie=c;
8
+ }
9
+ function getLilyCookie(cname) {
10
+ var name=cname+"=";
11
+ var carr=document.cookie.split(';');
12
+ for (var i=0; i<carr.length; ++i) {
13
+ var c=carr[i].trim();
14
+ if (c.indexOf(name)==0) return c.substring(name.length,c.length);
15
+ }
16
+ return "";
17
+ }
18
+ function delLilyCookie(cname) {
19
+ document.cookie=cname+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT";
20
+ }
21
+ function setLilyMode() {
22
+ body=document.body;
23
+ var lily_mode=getLilyCookie("lily_mode");
24
+ if (lily_mode=="dark") {
25
+ body.classList.remove("light");
26
+ body.classList.add("dark");
27
+ document.getElementById("body").classList.remove("lily-mode-light");
28
+ document.getElementById("body").classList.add("lily-mode-dark");
29
+ } else {
30
+ body.classList.remove("dark");
31
+ body.classList.add("light");
32
+ document.getElementById("body").classList.remove("lily-mode-dark");
33
+ document.getElementById("body").classList.add("lily-mode-light");
34
+ }
35
+ }
36
+ function changeLilyMode() {
37
+ var lily_mode=getLilyCookie('lily_mode'); if (lily_mode=='dark') lily_mode='light'; else lily_mode='dark'; setLilyCookie('lily_mode',lily_mode,180,'/'); setLilyMode();
38
+ }
@@ -0,0 +1,27 @@
1
+ (function(document) {
2
+ var metas = document.getElementsByTagName('meta'),
3
+ changeViewportContent = function(content) {
4
+ for (var i = 0; i < metas.length; i++) {
5
+ if (metas[i].name == "viewport") {
6
+ metas[i].content = content;
7
+ }
8
+ }
9
+ },
10
+ initialize = function() {
11
+ changeViewportContent("width=device-width, minimum-scale=1.0, maximum-scale=1.0");
12
+ },
13
+ gestureStart = function() {
14
+ changeViewportContent("width=device-width, minimum-scale=0.25, maximum-scale=1.6");
15
+ },
16
+ gestureEnd = function() {
17
+ initialize();
18
+ };
19
+
20
+
21
+ if (navigator.userAgent.match(/iPhone/i)) {
22
+ initialize();
23
+
24
+ document.addEventListener("touchstart", gestureStart, false);
25
+ document.addEventListener("touchend", gestureEnd, false);
26
+ }
27
+ })(document);
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-lily
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2.2.11
5
+ platform: ruby
6
+ authors:
7
+ - HowerZiu
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-10-03 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: '3.5'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.5'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: jekyll-feed
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.9'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0.9'
47
+ - !ruby/object:Gem::Dependency
48
+ name: jekyll-seo-tag
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '2.0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '2.0'
61
+ description:
62
+ email:
63
+ - howerziu@yeah.net
64
+ executables: []
65
+ extensions: []
66
+ extra_rdoc_files: []
67
+ files:
68
+ - LICENSE.txt
69
+ - README.md
70
+ - _config.yml
71
+ - _includes/footer.html
72
+ - _includes/head-custom-google-analytics.html
73
+ - _includes/head-custom.html
74
+ - _includes/head.html
75
+ - _includes/header.html
76
+ - _layouts/default.html
77
+ - _layouts/page.html
78
+ - _layouts/post.html
79
+ - _sass/jekyll-theme-lily.scss
80
+ - _sass/lilie.scss
81
+ - _sass/rouge-dark.scss
82
+ - _sass/rouge-light.scss
83
+ - assets/css/style.scss
84
+ - assets/js/lily.js
85
+ - assets/js/scale.fix.js
86
+ homepage: https://github.com/HowerZiu/lily
87
+ licenses:
88
+ - MIT
89
+ metadata:
90
+ plugin_type: theme
91
+ post_install_message:
92
+ rdoc_options: []
93
+ require_paths:
94
+ - lib
95
+ required_ruby_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ requirements: []
106
+ rubygems_version: 3.1.2
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: A fresh theme for Jekyll.
110
+ test_files: []