ultralight 1.0.0

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: 5a990ce44866d201ccdeec3d1c4199d815c11d36f20b1be9292f7cb7236f97f8
4
+ data.tar.gz: 565557eb90a512699cb85bac46d1cf48ac0073d8c9d5babf9f0d4094b164bb33
5
+ SHA512:
6
+ metadata.gz: a8daaaafe7d332249d565170db73b591a0b7572858bc919420f8f8373561d50efbc90d69c56d4d57f34a1c317fcd2a87f48b119e5ebe03c7dcb6f6a94ccb3dc0
7
+ data.tar.gz: 88f97e7aa76a14babb7b65cdda73bdf866cbe60518d014378ed84aad388aa297be8406f73ffdc7699a4d1018a3576d8d3b3f60bf6807f74766c9cb05f33ba96b
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Kotet
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # ultralight
2
+
3
+ [![Build Status](https://github.com/kotet/ultralight/actions/workflows/build-check.yml/badge.svg)](https://github.com/kotet/ultralight/actions/workflows/build-check.yml)
4
+ [![](https://github.com/kotet/ultralight/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/kotet/ultralight/actions/workflows/pages/pages-build-deployment)
5
+
6
+ ![shot](https://user-images.githubusercontent.com/8435623/34344912-0665d490-ea2e-11e7-9bd8-919a6ced2a40.png)
7
+
8
+ Ultralight is super-lightweight responsive super Jekyll theme.
9
+ Inspired by [CNN Lite](https://lite.cnn.com).
10
+
11
+ It can be hosted on GitHub Pages/IPFS.
12
+
13
+ [demo1: kotet.jp/ultralight/](https://kotet.jp/ultralight/)
14
+
15
+ ### Output size:
16
+
17
+ - [minima@2863624](https://github.com/jekyll/minima/tree/2863624b903b17f838d6ce8d2f77900fa9d3c864): 388K
18
+ - **[ultralight@e7a7bce](https://github.com/kotet/ultralight/tree/e7a7bce911eed44bf4d1d1818b118cee67a3f538): 56K**
19
+
20
+ ### Pagespeed:
21
+
22
+ [![image](https://github.com/kotet/ultralight/assets/8435623/037a8982-66cc-46ae-9926-ccca7471f3f4)](https://pagespeed.web.dev/analysis/https-kotet-jp-ultralight/xvkytq8rwg?hl=en&form_factor=mobile)
23
+
24
+ ## Usage
25
+
26
+ ### GitHub Pages
27
+
28
+ ```console
29
+ $ git clone https://github.com/kotet/ultralight.git && cd ultralight
30
+ $ git remote set-url origin https://github.com/yourname/yourname.github.io.git
31
+ $ git push origin master
32
+ ```
33
+
34
+ ### IPFS
35
+
36
+ ```console
37
+ $ git clone https://github.com/kotet/ultralight.git && cd ultralight
38
+ $ bundle && bundle exec jekyll build
39
+ $ ipfs add -r _site/
40
+ ```
41
+
42
+ #### Internal link
43
+
44
+ On IPFS, all internal links must be relative links.
45
+ You can use `relative` template like this:
46
+
47
+ ```
48
+ [link]({% include relative %}{% post_url your-article-filename %})
49
+ ```
@@ -0,0 +1,3 @@
1
+ Super lightweight Jekyll theme [ultralight](https://github.com/kotet/ultralight)
2
+ [Twitter](https://twitter.com/kotetttt)
3
+ | [GitHub](https://github.com/kotet)
@@ -0,0 +1 @@
1
+ <script defer src="//www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', '{{ site.google_analytics }}');</script>
@@ -0,0 +1 @@
1
+ <script defer src="//cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
@@ -0,0 +1 @@
1
+ <link rel="stylesheet" href="{% include relative %}/style.css">
@@ -0,0 +1,5 @@
1
+ <meta name="twitter:card" content="summary" />
2
+ <meta name="twitter:site" content="@{{ site.twitter_username }}" />
3
+ {% if page.title %}<meta name="twitter:title" content="{{ page.title | escape }} - {{ site.title | escape }}" />{% else %}<meta name="twitter:title" content="{{ site.title }}" />{% endif %}
4
+ <meta name="twitter:description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}" />
5
+ {% if page.image %}<meta name="twitter:image" content="{{ site.url }}/assets/{{ page.image }}" />{% else %}<meta name="twitter:image" content="{{ site.url }}/assets/logo.png" />{% endif %}
@@ -0,0 +1 @@
1
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1">{% include head/style.html %}<title>{% if page.tags %}#{{ page.tags[0] }} {% endif %}{% if page.title %}{{ page.title | escape }} - {{ site.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title><meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">{% if page.mathjax %}{% include head/mathjax.html %}{% endif %}{% if jekyll.environment == 'production' and site.google_analytics %}{% include head/google-analytics.html %}{% endif %}{% if jekyll.environment == 'production' and site.twitter_cards %}{% include head/twitter-cards.html %}{% endif %}</head>
@@ -0,0 +1 @@
1
+ {% assign lvl = page.url | append:'X' | split:'/' | size %}{% for i in (3..lvl) %}../{% endfor %}.
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+ {% include head.html %}
4
+ <body>
5
+ <header>
6
+ <a class="site-title" href="{% include relative %}" >{{ site.title }}</a>
7
+ <div style="display: inline-block">
8
+ {% for my_page in site.pages %}{% if my_page.title and my_page.noindex != true %} | <a href="{% include relative %}{{ my_page.url | relative_url }}">{{ my_page.title }}</a>{% endif %}{% endfor %}
9
+ </div>
10
+ </header>
11
+ <hr>
12
+ <main><div class="content-wrapper">{{ content }}</div></main>
13
+ <hr>
14
+ <footer>
15
+ {% capture footer-md %}{% include footer.md %}{% endcapture %}{{ footer-md | markdownify }}
16
+ </footer>
17
+ </body>
18
+ </html>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div style="padding: 1em;">
5
+ <span style="font-weight: bold;" >{{ site.posts | size }} Posts</span>
6
+ <ul>
7
+ {% for post in site.posts %}
8
+ <li>
9
+ <a href="{% include relative %}{{ post.url | relative_url }}">{{ post.title | escape }}</a>
10
+ <p class="post-info">
11
+ <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</time>
12
+ {% for tag in post.tags %} | <a href="{% include relative %}/tags/#{{ tag | downcase }}">#{{ tag }}</a>{% endfor %}
13
+ </p>
14
+ </li>
15
+ {% endfor %}
16
+ </ul>
17
+ </div>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article>
5
+ <div class="post-header"><h1>{{ page.title | escape }}</h1></div>
6
+ {{ content }}
7
+ </article>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <article>
5
+ <div class="post-header">
6
+ <h1>
7
+ <a href="{% include relative %}/tags/#{{ page.tags[0] | downcase }}">#{{ page.tags[0] }}</a> {{ page.title | escape }}
8
+ </h1>
9
+ <p class="post-info">
10
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%b %-d, %Y" }}</time>
11
+ {% for tag in page.tags %} | <a href="{% include relative %}/tags/#{{ tag | downcase }}">#{{ tag }}</a>{% endfor %}
12
+ </p>
13
+ </div>
14
+ {{ content }}
15
+ </article>
data/_sass/base.scss ADDED
@@ -0,0 +1,52 @@
1
+ $base-font-size: 16px !default;
2
+ $text-color: black;
3
+ $border-color: lightgray;
4
+
5
+ body {
6
+ color: $text-color;
7
+ margin: 0;
8
+ word-break: break-word;
9
+ font-family: Helvetica,sans-serif;
10
+ }
11
+
12
+ ul {
13
+ padding-left: 10px;
14
+ margin: 10px;
15
+ }
16
+
17
+ li {
18
+ margin-bottom: 10px;
19
+ }
20
+
21
+ article {
22
+ padding: 0 20px 0 20px;
23
+ }
24
+
25
+ header,footer {
26
+ padding: 10px;
27
+ }
28
+
29
+ .site-title {
30
+ color: $text-color;
31
+ font-weight: bold;
32
+ }
33
+
34
+ .post-info {
35
+ margin: auto;
36
+ }
37
+
38
+ table {
39
+ th,td {
40
+ border-bottom: 1px solid $border-color;
41
+ border-right: 1px double $border-color;
42
+ }
43
+ }
44
+
45
+ .content-wrapper {
46
+ max-width: 800px;
47
+ margin-right: auto;
48
+ margin-left: auto;
49
+ * {
50
+ max-width: 100%;
51
+ }
52
+ }
@@ -0,0 +1,73 @@
1
+ code {
2
+ padding: 1px 5px;
3
+ }
4
+ .highlighter-rouge {
5
+ margin: 0;
6
+ border-radius: 5px;
7
+ background: lightgray;
8
+ overflow-x: scroll;
9
+ .highlight {
10
+ padding-left: 10px;
11
+ max-width: none;
12
+ word-break: keep-all;
13
+ }
14
+ .c { color: #998; font-style: italic } // Comment
15
+ .err { color: #a61717; background-color: #e3d2d2 } // Error
16
+ .k { font-weight: bold } // Keyword
17
+ .o { font-weight: bold } // Operator
18
+ .cm { color: #998; font-style: italic } // Comment.Multiline
19
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
20
+ .c1 { color: #998; font-style: italic } // Comment.Single
21
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
22
+ .gd { color: #000; background-color: #fdd } // Generic.Deleted
23
+ .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
24
+ .ge { font-style: italic } // Generic.Emph
25
+ .gr { color: #a00 } // Generic.Error
26
+ .gh { color: #999 } // Generic.Heading
27
+ .gi { color: #000; background-color: #dfd } // Generic.Inserted
28
+ .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
29
+ .go { color: #888 } // Generic.Output
30
+ .gp { color: #555 } // Generic.Prompt
31
+ .gs { font-weight: bold } // Generic.Strong
32
+ .gu { color: #aaa } // Generic.Subheading
33
+ .gt { color: #a00 } // Generic.Traceback
34
+ .kc { font-weight: bold } // Keyword.Constant
35
+ .kd { font-weight: bold } // Keyword.Declaration
36
+ .kp { font-weight: bold } // Keyword.Pseudo
37
+ .kr { font-weight: bold } // Keyword.Reserved
38
+ .kt { color: #458; font-weight: bold } // Keyword.Type
39
+ .m { color: #099 } // Literal.Number
40
+ .s { color: #d14 } // Literal.String
41
+ .na { color: #008080 } // Name.Attribute
42
+ .nb { color: #0086B3 } // Name.Builtin
43
+ .nc { color: #458; font-weight: bold } // Name.Class
44
+ .no { color: #008080 } // Name.Constant
45
+ .ni { color: #800080 } // Name.Entity
46
+ .ne { color: #900; font-weight: bold } // Name.Exception
47
+ .nf { color: #900; font-weight: bold } // Name.Function
48
+ .nn { color: #555 } // Name.Namespace
49
+ .nt { color: #000080 } // Name.Tag
50
+ .nv { color: #008080 } // Name.Variable
51
+ .ow { font-weight: bold } // Operator.Word
52
+ .w { color: #bbb } // Text.Whitespace
53
+ .mf { color: #099 } // Literal.Number.Float
54
+ .mh { color: #099 } // Literal.Number.Hex
55
+ .mi { color: #099 } // Literal.Number.Integer
56
+ .mo { color: #099 } // Literal.Number.Oct
57
+ .sb { color: #d14 } // Literal.String.Backtick
58
+ .sc { color: #d14 } // Literal.String.Char
59
+ .sd { color: #d14 } // Literal.String.Doc
60
+ .s2 { color: #d14 } // Literal.String.Double
61
+ .se { color: #d14 } // Literal.String.Escape
62
+ .sh { color: #d14 } // Literal.String.Heredoc
63
+ .si { color: #d14 } // Literal.String.Interpol
64
+ .sx { color: #d14 } // Literal.String.Other
65
+ .sr { color: #009926 } // Literal.String.Regex
66
+ .s1 { color: #d14 } // Literal.String.Single
67
+ .ss { color: #990073 } // Literal.String.Symbol
68
+ .bp { color: #999 } // Name.Builtin.Pseudo
69
+ .vc { color: #008080 } // Name.Variable.Class
70
+ .vg { color: #008080 } // Name.Variable.Global
71
+ .vi { color: #008080 } // Name.Variable.Instance
72
+ .il { color: #099 } // Literal.Number.Integer.Long
73
+ }
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ultralight
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Kotet
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-05-08 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.9.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.9.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: jekyll-sitemap
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.4'
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: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: github-pages
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: webrick
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Super-lightweight responsive super Jekyll theme.
112
+ email:
113
+ - kotet0418@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - LICENSE
119
+ - README.md
120
+ - _includes/footer.md
121
+ - _includes/head.html
122
+ - _includes/head/google-analytics.html
123
+ - _includes/head/mathjax.html
124
+ - _includes/head/style.html
125
+ - _includes/head/twitter-cards.html
126
+ - _includes/relative
127
+ - _layouts/default.html
128
+ - _layouts/home.html
129
+ - _layouts/page.html
130
+ - _layouts/post.html
131
+ - _sass/base.scss
132
+ - _sass/syntax-highlighting.scss
133
+ homepage: https://github.com/kotet/ultralight
134
+ licenses:
135
+ - MIT
136
+ metadata:
137
+ homepage_uri: https://github.com/kotet/ultralight
138
+ source_code_uri: https://github.com/kotet/ultralight
139
+ post_install_message:
140
+ rdoc_options: []
141
+ require_paths:
142
+ - lib
143
+ required_ruby_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ required_rubygems_version: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ requirements: []
154
+ rubygems_version: 3.3.5
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: Lightweight responsive Jekyll theme
158
+ test_files: []