jekyll-theme-crab 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c769576c3dc653d9e4e2b86858281691cf7bdf0cee2a92da7a247b743accab83
4
+ data.tar.gz: c7191cfa5f5cafb643716a2baf972b18a2ff441ca1bf9908d57494011be8e973
5
+ SHA512:
6
+ metadata.gz: 8855255215ffdf068f28480795fae63d761eeb560a5582f87f1a80f755f775ec2b406e909cde3a9c7b37a2c4f7ba901cab98ff475eec6a93c525d9be2f2150e5
7
+ data.tar.gz: 6bcba5852c369d161bb0342a65f3296d86377286f4fdd41bb9d59a7621fa00a9a58ea2a409fdd445dc1ee270ad89359ad9f8f098a8fb33aa3fcc55b1750edc51
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019
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.
@@ -0,0 +1,58 @@
1
+ # jekyll-theme-crab
2
+
3
+ The Crab theme for Jekyll is a port of the [original crab theme](https://themes.gohugo.io/crab) for Hugo by Thomas Heller.
4
+
5
+ ![Crab theme screenshot](https://raw.githubusercontent.com/thomasheller/crab/master/images/screenshot.png)
6
+
7
+ ## Features
8
+
9
+ - responsive
10
+ - nested menus
11
+ - two-column
12
+ - tag support
13
+ - blog articles
14
+
15
+
16
+ ## Installation
17
+
18
+ Add this line to your Jekyll site's `Gemfile`:
19
+
20
+ ```ruby
21
+ gem "jekyll-theme-crab"
22
+ ```
23
+
24
+ And add this line to your Jekyll site's `_config.yml`:
25
+
26
+ ```yaml
27
+ theme: jekyll-theme-crab
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ $ bundle
33
+
34
+ Or install it yourself as:
35
+
36
+ $ gem install jekyll-theme-crab
37
+
38
+ ## Usage
39
+
40
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
41
+
42
+ ## Contributing
43
+
44
+ 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.
45
+
46
+ ## Development
47
+
48
+ To set up your environment to develop this theme, run `bundle install`.
49
+
50
+ 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.
51
+
52
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
53
+ To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-crab.gemspec` accordingly.
54
+
55
+ ## License
56
+
57
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
58
+
@@ -0,0 +1,12 @@
1
+ </div>
2
+
3
+ </div>
4
+
5
+ <div id="footer">
6
+ Copyright &copy; {{ site.time | date: "%Y" }} {{ site.copyright }}
7
+ </div>
8
+
9
+ </div>
10
+
11
+ </body>
12
+ </html>
@@ -0,0 +1,36 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ {%- seo -%}
5
+ <link rel="stylesheet" href="{{ "assets/css/crab.css" | relative_url }}">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0">
7
+ {%- feed_meta -%}
8
+
9
+ </head>
10
+ <body>
11
+
12
+ <div id="container">
13
+
14
+ <div id="header">
15
+
16
+ <div id="site-logo">
17
+ <img src="/assets/images/logo.png">
18
+ </div>
19
+
20
+ <div id="site-title"><a href="{{ / | relative_url }}">{{ site.title | escape }}</a></div>
21
+ <div id="site-slogan">{{ site.description | escape }}</div>
22
+
23
+ </div>
24
+ <nav>
25
+ {% assign menu = site.data.navigation.header %}
26
+ {%- include menu.html -%}
27
+ </nav>
28
+ <div id="content">
29
+
30
+ <div id="article">
31
+ {%- if page.summary -%}
32
+ {%- include summary.html -%}
33
+ {%- endif -%}
34
+
35
+ <h1>{{ page.title }}</h1>
36
+
@@ -0,0 +1,23 @@
1
+ {% if menu %}
2
+ <ul class="first">
3
+ {% for item in menu %}
4
+ <li><a href="{{ item.url }}">{{ item.title }}{% if item.children %} &raquo;{% endif %}</a>
5
+ {% if item.children %}
6
+ <ul class="second">
7
+ {% for child in item.children %}
8
+ <li><a href="{{ child.url }}">{{ child.title }} {% if child.children %} &raquo;{% endif %}</a>
9
+ {% if child.children %}
10
+ <ul class="third">
11
+ {% for grandchild in child.children %}
12
+ <li><a href="{{ grandchild.url }}">{{ grandchild.title }}</a></li>
13
+ {% endfor %}
14
+ </ul>
15
+ </li>
16
+ {% endif %}
17
+ {% endfor %}
18
+ </ul>
19
+ </li>
20
+ {% endif %}
21
+ {% endfor %}
22
+ </ul>
23
+ {% endif %}
@@ -0,0 +1,29 @@
1
+ {{ $pag := .Paginator }}
2
+ {{ if gt $pag.TotalPages 1 }}
3
+ <ul class="pagination">
4
+ {{ with $pag.First }}
5
+ <li
6
+ {{ if not $pag.HasPrev }}class="disabled"{{ end }}>
7
+ <a href="{{ .URL }}" aria-label="First"><span aria-hidden="true">&laquo;&laquo;</span></a>
8
+ </li>
9
+ {{ end }}
10
+ <li
11
+ {{ if not $pag.HasPrev }}class="disabled"{{ end }}>
12
+ <a href="{{ if $pag.HasPrev }}{{ $pag.Prev.URL }}{{ end }}" aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
13
+ </li>
14
+ {{ range $pag.Pagers }}
15
+ <li
16
+ {{ if eq . $pag }}class="active"{{ end }}><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
17
+ {{ end }}
18
+ <li
19
+ {{ if not $pag.HasNext }}class="disabled"{{ end }}>
20
+ <a href="{{ if $pag.HasNext }}{{ $pag.Next.URL }}{{ end }}" aria-label="Next"><span aria-hidden="true">&raquo;</span></a>
21
+ </li>
22
+ {{ with $pag.Last }}
23
+ <li
24
+ {{ if not $pag.HasNext }}class="disabled"{{ end }}>
25
+ <a href="{{ .URL }}" aria-label="Last"><span aria-hidden="true">&raquo;&raquo;</span></a>
26
+ </li>
27
+ {{ end }}
28
+ </ul>
29
+ {{ end }}
@@ -0,0 +1,3 @@
1
+ <div id="summary">
2
+ {{ page.summary }}
3
+ </div>
@@ -0,0 +1,5 @@
1
+ <p class="tags">
2
+ Tags: {{ range . }}
3
+ <a href="{{ "/tags/" | absURL }}{{ . | urlize | lower }}">{{ . }}</a>
4
+ {{ end }}
5
+ </p>
@@ -0,0 +1,3 @@
1
+ {%- include header.html -%}
2
+ {{ content }}
3
+ {%- include footer.html -%}
@@ -0,0 +1,255 @@
1
+ @import url('https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i|Open+Sans:400,400i,600,600i,700,700i');
2
+
3
+ html,
4
+ body {
5
+ background: #fff;
6
+ color: #333;
7
+ font-family: 'Open Sans', sans-serif;
8
+ }
9
+
10
+ #container {
11
+ margin: auto;
12
+ }
13
+
14
+ #header {
15
+ margin-top: 2em;
16
+ }
17
+
18
+ #site-logo {
19
+ float: right;
20
+ }
21
+
22
+ #site-title,
23
+ a:link,
24
+ a:active,
25
+ a:visited,
26
+ a:hover {
27
+ color: #1da8be;
28
+ }
29
+
30
+ #site-title {
31
+ font-weight: 700;
32
+ font-size: xx-large;
33
+ }
34
+
35
+ #site-title a:link,
36
+ #site-title a:active,
37
+ #site-title a:visited,
38
+ #site-title a:hover {
39
+ text-decoration: none;
40
+ }
41
+
42
+ #site-slogan,
43
+ #footer {
44
+ color: #777;
45
+ }
46
+
47
+ #site-slogan {
48
+ margin-top: .75em;
49
+ }
50
+
51
+ nav {
52
+ clear: both;
53
+ margin-top: 3em;
54
+ }
55
+
56
+ nav ul {
57
+ list-style-type: none;
58
+ padding: 0;
59
+ }
60
+
61
+ nav ul.first > li {
62
+ display: block;
63
+ margin: .5em 0;
64
+ }
65
+
66
+ nav ul.second,
67
+ nav ul.third {
68
+ display: none;
69
+ }
70
+
71
+ nav a:link,
72
+ nav a:active,
73
+ nav a:visited,
74
+ nav a:hover {
75
+ text-decoration: none;
76
+ }
77
+
78
+ nav a:link,
79
+ nav a:active,
80
+ nav a:visited {
81
+ color: #444;
82
+ }
83
+
84
+ nav a:hover {
85
+ color: #1da8be;
86
+ }
87
+
88
+ #content,
89
+ #footer,
90
+ hr {
91
+ border-top: 1px dashed #aaa;
92
+ }
93
+
94
+ #content {
95
+ margin-top: 2em;
96
+ }
97
+
98
+ #article {
99
+ margin-top: 2em;
100
+ }
101
+
102
+ h1,
103
+ h2,
104
+ h3,
105
+ h4,
106
+ h5,
107
+ h6 {
108
+ font-family: 'Lora', serif;
109
+ font-weight: 400;
110
+ }
111
+
112
+ #article p, #article ol li, #article ul li {
113
+ text-align: justify;
114
+ }
115
+
116
+ #article blockquote {
117
+ font-family: 'Lora', serif;
118
+ font-style: italic;
119
+ font-size: 1.05em;
120
+ line-height: 1.5em;
121
+ }
122
+
123
+ #article dl dt {
124
+ font-weight: bold;
125
+ }
126
+
127
+ #article dl dt em {
128
+ font-weight: normal;
129
+ }
130
+
131
+ #article .timestamp,
132
+ #article .tags,
133
+ #article .tags a:link,
134
+ #article .tags a:active,
135
+ #article .tags a:visited,
136
+ #article .tags a:hover {
137
+ color: #555;
138
+ }
139
+
140
+ hr {
141
+ border-bottom: 0;
142
+ border-left: 0;
143
+ border-right: 0;
144
+ margin: 2.5em 0;
145
+ }
146
+
147
+ span.upper {
148
+ text-transform: uppercase;
149
+ }
150
+
151
+ img.right {
152
+ float: right;
153
+ margin: 0 0 1em 1em;
154
+ }
155
+
156
+ img.left {
157
+ float: left;
158
+ margin: 0 1em 1em 0;
159
+ }
160
+
161
+ #footer {
162
+ clear: both;
163
+ padding-top: 2em;
164
+ font-size: 90%;
165
+ }
166
+
167
+ ul.pagination {
168
+ padding: 0;
169
+ list-style-type: none;
170
+ }
171
+
172
+ .pagination li {
173
+ display: inline-block;
174
+ }
175
+
176
+ .pagination .active a:link,
177
+ .pagination .active a:active,
178
+ .pagination .active a:visited,
179
+ .pagination .active a:hover,
180
+ .pagination .disabled a:link,
181
+ .pagination .disabled a:active,
182
+ .pagination .disabled a:visited,
183
+ .pagination .disabled a:hover {
184
+ color: #555;
185
+ text-decoration: none;
186
+ }
187
+
188
+ @media (min-width: 768px) {
189
+ }
190
+
191
+ @media (min-width: 992px) {
192
+ #container {
193
+ width: 950px;
194
+ }
195
+
196
+ nav ul li a {
197
+ display: block;
198
+ font-size: 90%;
199
+ }
200
+
201
+ nav ul.first > li {
202
+ display: inline-block;
203
+ position: relative;
204
+ padding-right: 1.25em;
205
+ }
206
+
207
+ nav ul.second,
208
+ nav ul.third {
209
+ position: absolute;
210
+ background: #fff;
211
+ width: 212px;
212
+ border: 1px solid #ddd;
213
+ box-shadow: 1px 1px 1px 0px rgba(0,0,0,0.25);
214
+ }
215
+
216
+ nav ul.second {
217
+ z-index: 2;
218
+ }
219
+
220
+ nav ul.third {
221
+ z-index: 3;
222
+ }
223
+
224
+ nav ul.second li {
225
+ position: relative;
226
+ }
227
+
228
+ nav ul.third {
229
+ left: 212px;
230
+ top: -1px;
231
+ }
232
+
233
+ nav ul.first li:hover ul.second,
234
+ nav ul.second li:hover ul.third {
235
+ display: block;
236
+ }
237
+
238
+ nav ul.second li a,
239
+ nav ul.third li a {
240
+ padding: 0.75em 1em;
241
+ }
242
+
243
+ #article {
244
+ width: 576px;
245
+ position: relative;
246
+ }
247
+
248
+ #summary {
249
+ display: block;
250
+ position: absolute;
251
+ top: 0px;
252
+ left: 608px;
253
+ width: 342px;
254
+ }
255
+ }
@@ -0,0 +1,3 @@
1
+ ---
2
+ ---
3
+ @import "crab";
Binary file
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-crab
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Rance Hall
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-08-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.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.16'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.16'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ description:
56
+ email:
57
+ - rance_hall@icloud.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/footer.html
65
+ - _includes/header.html
66
+ - _includes/menu.html
67
+ - _includes/pagination.html
68
+ - _includes/summary.html
69
+ - _includes/tags.html
70
+ - _layouts/home.html
71
+ - _sass/crab.scss
72
+ - assets/css/crab.scss
73
+ - assets/images/logo.png
74
+ homepage: https://github.com/RanceH/jekyll-theme-crab
75
+ licenses:
76
+ - MIT
77
+ metadata: {}
78
+ post_install_message:
79
+ rdoc_options: []
80
+ require_paths:
81
+ - lib
82
+ required_ruby_version: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ requirements: []
93
+ rubygems_version: 3.0.3
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: Jekyll port of the Hugo Crab theme
97
+ test_files: []