lions-jekyll-theme 0.1.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: 24bc1d7c76bef523ca61b3a3f612e83e7c6cf80a13f4d6085e76988a52e31940
4
+ data.tar.gz: fe72770676b98e7644a34c52461c5bc5ffb3651a6ff90b1e82d5b5b3bfda11ca
5
+ SHA512:
6
+ metadata.gz: 19929cf38064d8c5e119e63279b6d0dbcc4b571efa5675cf61313b4875484766b624e8ae5653b82bb68b169f8bee18b90c9c70fdfc6741a00b892442221dff24
7
+ data.tar.gz: a3def99305fed24891e90b713ee63e54a7fe9047cfe7edd94cd079be5f382224fd407ef45b9258773cb1d3a0d6d394b60d608d576a4dac979722dfaaf6e93a2b
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Anders Gilliland
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,50 @@
1
+ # lions-jekyll-theme
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
+ ## Installation
10
+
11
+ Add this line to your Jekyll site's `Gemfile`:
12
+
13
+ ```ruby
14
+ gem "lions-jekyll-theme"
15
+ ```
16
+
17
+ And add this line to your Jekyll site's `_config.yml`:
18
+
19
+ ```yaml
20
+ theme: lions-jekyll-theme
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ $ bundle
26
+
27
+ Or install it yourself as:
28
+
29
+ $ gem install lions-jekyll-theme
30
+
31
+ ## Usage
32
+
33
+ TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lions-jekyll-theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://www.contributor-covenant.org/) code of conduct.
38
+
39
+ ## Development
40
+
41
+ To set up your environment to develop this theme, run `bundle install`.
42
+
43
+ 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.
44
+
45
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
46
+ To add a custom directory to your theme-gem, please edit the regexp in `lions-jekyll-theme.gemspec` accordingly.
47
+
48
+ ## License
49
+
50
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,9 @@
1
+ <footer class="site-footer h-card">
2
+ <data class="u-url" href="{{ "/" | relative_url }}"></data>
3
+
4
+ <div class="wrapper">
5
+ <div class="footer-col-wrapper">
6
+
7
+ </div>
8
+ </div>
9
+ </footer>
@@ -0,0 +1,9 @@
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="{{ "/assets/css/style.css" | relative_url }}">
6
+
7
+ {%- feed_meta -%}
8
+
9
+ </head>
@@ -0,0 +1,31 @@
1
+ <header class="site-header">
2
+ <div class="wrapper">
3
+ {%- assign default_paths = site.pages | map: "path" -%}
4
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
5
+ {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
6
+
7
+ <a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
8
+
9
+ {%- if titles_size > 0 -%}
10
+ <nav class="site-nav">
11
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
12
+ <label for="nav-trigger">
13
+ <span class="menu-icon">
14
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
15
+ <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
16
+ </svg>
17
+ </span>
18
+ </label>
19
+
20
+ <div class="trigger">
21
+ {%- for path in page_paths -%}
22
+ {%- assign my_page = site.pages | where: "path", path | first -%}
23
+ {%- if my_page.title -%}
24
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
25
+ {%- endif -%}
26
+ {%- endfor -%}
27
+ </div>
28
+ </nav>
29
+ {%- endif -%}
30
+ </div>
31
+ </header>
@@ -0,0 +1,30 @@
1
+ <div style="max-width: 30vw; width: 200px">
2
+ {%- if site.profile_picture -%}
3
+ <img class="profile-picture" src="{{ site.profile_picture }}" />
4
+ {%- endif -%}
5
+
6
+ <div style="height: 15px"></div>
7
+
8
+ {%- if site.author.name -%}
9
+ <div class="profile-name">{{ site.author.name }}</div>
10
+ {%- endif -%}
11
+
12
+ {%- if site.author.username -%}
13
+ <div class="profile-username">{{ site.author.username }}</div>
14
+ {%- endif -%}
15
+
16
+ <div style="height: 15px"></div>
17
+
18
+ <table class="profile-table">
19
+ {%- for social in site.socials -%}
20
+ <tr>
21
+ <td>
22
+ <img class="profile-icon" src="{{ '/assets/svg/' | append: social.platform | append: '.svg' | relative_url }}" />
23
+ </td>
24
+ <td>
25
+ <a class="profile-link" href="{{ social.link }}" target="#">{{ social.preview }}</a>
26
+ </td>
27
+ </tr>
28
+ {%- endfor -%}
29
+ </table>
30
+ </div>
@@ -0,0 +1,17 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ {%- include head.html -%}
5
+
6
+ <body>
7
+
8
+ {%- include header.html -%}
9
+
10
+ <div class="wrapper page-content">
11
+ {{ content }}
12
+ </div>
13
+
14
+ {%- include footer.html -%}
15
+
16
+ </body>
17
+ </html>
@@ -0,0 +1,34 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ <div class="home flex-container wrapper page-content">
6
+ <div class="wrapper" style="width: auto">
7
+ {%- include sidebar.html -%}
8
+ </div>
9
+ <div class="wrapper" style="width: auto">
10
+ {{ content }}
11
+
12
+ {%- assign posts = site.posts -%}
13
+
14
+ {%- if posts.size > 0 -%}
15
+ {%- if page.list_title -%}
16
+ <h2 class="post-list-heading">{{ page.list_title }}</h2>
17
+ {%- endif -%}
18
+
19
+ <u1 class="post-list">
20
+ {%- assign date_format = "%b %-d, %Y" -%}
21
+ {%- for post in posts -%}
22
+ <li>
23
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
24
+ <h3>
25
+ <a class="post-link" href="{{ post.url | relative_url }}">
26
+ {{ post.title | escape }}
27
+ </a>
28
+ </h3>
29
+ </li>
30
+ {%- endfor -%}
31
+ </u1>
32
+ {%- endif -%}
33
+ </div>
34
+ </div>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ <article class="post">
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
+ </header>
9
+
10
+ <div class="post-content">
11
+ {{ content }}
12
+ </div>
13
+ </article>
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ <article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
6
+ <header class="post-header">
7
+ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
8
+ <p class="post-meta">
9
+ {%- assign date_format = "%b %-d, %Y" -%}
10
+ <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ </p>
14
+ </header>
15
+
16
+ <div class="post-content e-content" itemprop="articleBody">
17
+ {{ content }}
18
+ </div>
19
+
20
+ <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
21
+ </article>
@@ -0,0 +1,274 @@
1
+ html {
2
+ font-size: $base-font-size;
3
+ }
4
+
5
+ /**
6
+ * Reset some basic elements
7
+ */
8
+ body, h1, h2, h3, h4, h5, h6,
9
+ p, blockquote, pre, hr,
10
+ dl, dd, ol, ul, figure {
11
+ margin: 0;
12
+ padding: 0;
13
+
14
+ }
15
+
16
+
17
+
18
+ /**
19
+ * Basic styling
20
+ */
21
+ body {
22
+ font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
23
+ color: $text-color;
24
+ background-color: $background-color;
25
+ -webkit-text-size-adjust: 100%;
26
+ -webkit-font-feature-settings: "kern" 1;
27
+ -moz-font-feature-settings: "kern" 1;
28
+ -o-font-feature-settings: "kern" 1;
29
+ font-feature-settings: "kern" 1;
30
+ font-kerning: normal;
31
+ display: flex;
32
+ min-height: 100vh;
33
+ flex-direction: column;
34
+ overflow-wrap: break-word;
35
+ }
36
+
37
+
38
+
39
+ /**
40
+ * Set `margin-bottom` to maintain vertical rhythm
41
+ */
42
+ h1, h2, h3, h4, h5, h6,
43
+ p, blockquote, pre,
44
+ ul, ol, dl, figure,
45
+ %vertical-rhythm {
46
+ margin-bottom: $spacing-unit * .5;
47
+ }
48
+
49
+ hr {
50
+ margin-top: $spacing-unit;
51
+ margin-bottom: $spacing-unit;
52
+ }
53
+
54
+ /**
55
+ * `main` element
56
+ */
57
+ main {
58
+ display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
59
+ }
60
+
61
+
62
+
63
+ /**
64
+ * Images
65
+ */
66
+ img {
67
+ max-width: 100%;
68
+ vertical-align: middle;
69
+ }
70
+
71
+
72
+
73
+ /**
74
+ * Figures
75
+ */
76
+ figure > img {
77
+ display: block;
78
+ }
79
+
80
+ figcaption {
81
+ font-size: $small-font-size;
82
+ }
83
+
84
+
85
+
86
+ /**
87
+ * Lists
88
+ */
89
+ ul, ol {
90
+ margin-left: $spacing-unit;
91
+ }
92
+
93
+ li {
94
+ > ul,
95
+ > ol {
96
+ margin-bottom: 0;
97
+ }
98
+ }
99
+
100
+
101
+
102
+ /**
103
+ * Headings
104
+ */
105
+ h1, h2, h3, h4, h5, h6 {
106
+ font-weight: $base-font-weight;
107
+ }
108
+
109
+
110
+
111
+ /**
112
+ * Links
113
+ */
114
+ a {
115
+ color: $link-base-color;
116
+ text-decoration: none;
117
+
118
+ &:visited {
119
+ color: $link-visited-color;
120
+ }
121
+
122
+ &:hover {
123
+ color: $link-hover-color;
124
+ text-decoration: underline;
125
+ }
126
+
127
+ .social-media-list &:hover {
128
+ text-decoration: none;
129
+
130
+ .username {
131
+ text-decoration: underline;
132
+ }
133
+ }
134
+ }
135
+
136
+
137
+ /**
138
+ * Blockquotes
139
+ */
140
+ blockquote {
141
+ color: $brand-color;
142
+ border-left: 4px solid $border-color-01;
143
+ padding-left: $spacing-unit * .5;
144
+ @include relative-font-size(1.125);
145
+ font-style: italic;
146
+
147
+ > :last-child {
148
+ margin-bottom: 0;
149
+ }
150
+
151
+ i, em {
152
+ font-style: normal;
153
+ }
154
+ }
155
+
156
+
157
+
158
+ /**
159
+ * Code formatting
160
+ */
161
+ pre,
162
+ code {
163
+ font-family: $code-font-family;
164
+ font-size: 0.9375em;
165
+ border: 1px solid $border-color-01;
166
+ border-radius: 3px;
167
+ background-color: $code-background-color;
168
+ }
169
+
170
+ code {
171
+ padding: 1px 5px;
172
+ }
173
+
174
+ pre {
175
+ padding: 8px 12px;
176
+ overflow-x: auto;
177
+
178
+ > code {
179
+ border: 0;
180
+ padding-right: 0;
181
+ padding-left: 0;
182
+ }
183
+ }
184
+
185
+ .highlight {
186
+ border-radius: 3px;
187
+ background: $code-background-color;
188
+ @extend %vertical-rhythm;
189
+
190
+ .highlighter-rouge & {
191
+ background: $code-background-color;
192
+ }
193
+ }
194
+
195
+
196
+
197
+ /**
198
+ * Wrapper
199
+ */
200
+ .wrapper {
201
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
202
+ margin-right: auto;
203
+ margin-left: auto;
204
+ padding-right: $spacing-unit * .5;
205
+ padding-left: $spacing-unit * .5;
206
+ @extend %clearfix;
207
+
208
+ @media screen and (min-width: $on-large) {
209
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
210
+ padding-right: $spacing-unit;
211
+ padding-left: $spacing-unit;
212
+ }
213
+ }
214
+
215
+
216
+
217
+ /**
218
+ * Clearfix
219
+ */
220
+ %clearfix:after {
221
+ content: "";
222
+ display: table;
223
+ clear: both;
224
+ }
225
+
226
+
227
+
228
+ /**
229
+ * Icons
230
+ */
231
+
232
+ .orange {
233
+ color: #f66a0a;
234
+ }
235
+
236
+ .grey {
237
+ color: #828282;
238
+ }
239
+
240
+ .svg-icon {
241
+ width: 1.25em;
242
+ height: 1.25em;
243
+ display: inline-block;
244
+ fill: currentColor;
245
+ vertical-align: text-bottom;
246
+ }
247
+
248
+
249
+ /**
250
+ * Tables
251
+ */
252
+ table {
253
+ margin-bottom: $spacing-unit;
254
+ text-align: $table-text-align;
255
+ color: $table-text-color;
256
+ border: none;
257
+ tr {
258
+ }
259
+ th, td {
260
+ padding: ($spacing-unit * .05) ($spacing-unit * .05);
261
+ }
262
+ th {
263
+ background-color: $table-header-bg-color;
264
+ }
265
+ td {
266
+ }
267
+
268
+ @include media-query($on-laptop) {
269
+ display: block;
270
+ overflow-x: auto;
271
+ -webkit-overflow-scrolling: touch;
272
+ -ms-overflow-style: -ms-autohiding-scrollbar;
273
+ }
274
+ }