lysande-jekyll-theme 0.0.1 → 1.0.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 +4 -4
- data/LICENSE.txt +21 -0
- data/README.md +536 -0
- data/_data/theme.yml +5 -0
- data/_includes/footer.html +19 -0
- data/_includes/globalnav.html +12 -0
- data/_includes/head.html +17 -0
- data/_includes/header.html +69 -0
- data/_layouts/blog.html +30 -0
- data/_layouts/default.html +16 -0
- data/_layouts/post.html +40 -0
- data/_layouts/projects.html +49 -0
- data/_sass/_base.scss +153 -0
- data/_sass/_blog.scss +183 -0
- data/_sass/_headandfoot.scss +61 -0
- data/_sass/_menu.scss +31 -0
- data/_sass/_projects.scss +139 -0
- data/_sass/_reset.scss +21 -0
- data/_sass/_responsive.scss +267 -0
- data/assets/backgrounds/default_rustic.jpg +0 -0
- data/assets/fonts/aqua/aqua-demo.html +480 -0
- data/assets/fonts/aqua/aqua-webfont.woff +0 -0
- data/assets/fonts/aqua/aqua-webfont.woff2 +0 -0
- data/assets/fonts/aqua/generator_config.txt +5 -0
- data/assets/fonts/aqua/specimen_files/grid_12-825-55-15.css +129 -0
- data/assets/fonts/aqua/specimen_files/specimen_stylesheet.css +396 -0
- data/assets/fonts/aqua/stylesheet.css +12 -0
- data/assets/fonts/biko/biko_regular-webfont.woff +0 -0
- data/assets/fonts/biko/biko_regular-webfont.woff2 +0 -0
- data/assets/fonts/chase/chase-webfont.woff +0 -0
- data/assets/fonts/chase/chase-webfont.woff2 +0 -0
- data/assets/fonts/simplifica_typeface-webfont.woff +0 -0
- data/assets/fonts/simplifica_typeface-webfont.woff2 +0 -0
- data/assets/main.scss +91 -0
- data/assets/open-graph/default.png +0 -0
- data/assets/projects/images/jekylltheme.png +0 -0
- data/assets/projects/symbols/code.png +0 -0
- data/assets/projects/symbols/design.png +0 -0
- data/assets/projects/symbols/published.png +0 -0
- data/favicon.ico +0 -0
- data/feed.xml +20 -0
- metadata +41 -2
- data/example/index.md +0 -39
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d57c0f817f65441dadbb6f9389bf8dce44c51b84a49335d8f4ac83549196e455
|
|
4
|
+
data.tar.gz: 23be57a9b8a3539243f88af6853e1cd6a6531ea653cde8efd53a43256f507f6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1644910c1347ab9698fb990472edbad5201d7558df7f0981bccbf99f5463fe3d51bb59ae693558fa054eb5aa35f3c3e3222fb98bbe5fec6ab1fdbc81120e1114
|
|
7
|
+
data.tar.gz: c5f1eb689b5a8d10a2c8df39795967254d93de9da36e7bad2faab0563931db49e15f602ebcefd217d7ad918d1470f42ef77c8737ae5e64d4b0a55fae90ffee3e
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016
|
|
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,536 @@
|
|
|
1
|
+
[Lysande Jekyll Theme][1]
|
|
2
|
+
|
|
3
|
+
[](https://github.com/theuggla/lysande-jekyll-theme/blob/master/LICENSE.txt)
|
|
4
|
+
[](https://jekyllrb.com/)
|
|
5
|
+
[](https://rubygems.org/gems/lysande-jekyll-theme)
|
|
6
|
+
|
|
7
|
+
Lysande is a [Jekyll theme](https://jekyllrb.com/docs/themes/) meant as
|
|
8
|
+
a base for a portfolio site.
|
|
9
|
+
|
|
10
|
+
- Clean responsive design that works all the way down to a mobile screen
|
|
11
|
+
- Blog page and layout
|
|
12
|
+
- Projects page and layout
|
|
13
|
+
- Disqus Comments
|
|
14
|
+
- SEO best practices via [Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/)
|
|
15
|
+
|
|
16
|
+
## Table of Contents
|
|
17
|
+
|
|
18
|
+
1. [Installation](#installation)
|
|
19
|
+
1. [Ruby Gem Method](#ruby-gem-method)
|
|
20
|
+
2. [GitHub Pages Method](#github-pages-method)
|
|
21
|
+
1. [Remove the Unnecessary](#remove-the-unnecessary)
|
|
22
|
+
2. [Upgrading](#upgrading)
|
|
23
|
+
1. [Ruby Gem](#ruby-gem)
|
|
24
|
+
2. [Remote Theme](#remote-theme)
|
|
25
|
+
3. [Use Git](#use-git)
|
|
26
|
+
1. [Pull Down Updates](#pull-down-updates)
|
|
27
|
+
4. [Update Files Manually](#update-files-manually)
|
|
28
|
+
3. [Structure](#structure)
|
|
29
|
+
1. [Starting Fresh](#starting-fresh)
|
|
30
|
+
2. [Starting from `jekyll new`](#starting-from-jekyll-new)
|
|
31
|
+
4. [Configuration](#configuration)
|
|
32
|
+
1. [Text](#text)
|
|
33
|
+
2. [Navigation](#navigation)
|
|
34
|
+
3. [Author](#author)
|
|
35
|
+
4. [Comments (via Disqus)](#comments-via-disqus)
|
|
36
|
+
5. [Layouts](#layouts)
|
|
37
|
+
1. [`layout: default`](#layout-default)
|
|
38
|
+
2. [`layout: blog`](#layout-blog)
|
|
39
|
+
3. [`layout: post`](#layout-page)
|
|
40
|
+
4. [`layout: projects`](#layout-projects)
|
|
41
|
+
6. [Customization](#customization)
|
|
42
|
+
1. [Overriding Includes and Layouts](#overriding-includes-and-layouts)
|
|
43
|
+
2. [Customizing Sass (SCSS)](#customizing-sass-scss)
|
|
44
|
+
3. [Icons](#icons)
|
|
45
|
+
7. [Contributing](#contributing)
|
|
46
|
+
8. [Credits](#credits)
|
|
47
|
+
9. [License](#license)
|
|
48
|
+
|
|
49
|
+
## Installation
|
|
50
|
+
|
|
51
|
+
If you're running Jekyll v3.5+ and self-hosting you can quickly install the
|
|
52
|
+
theme as a Ruby gem. If you're hosting with GitHub Pages you can install as a
|
|
53
|
+
remote theme or directly copy all of the theme files (see [structure](#structure)
|
|
54
|
+
below) into your project.
|
|
55
|
+
|
|
56
|
+
### Ruby Gem Method
|
|
57
|
+
|
|
58
|
+
1. Add this line to your Jekyll site's `Gemfile`:
|
|
59
|
+
|
|
60
|
+
```ruby
|
|
61
|
+
gem "lysande-jekyll-theme"
|
|
62
|
+
```
|
|
63
|
+
2. Add this line to your Jekyll site's `_config.yml` file:
|
|
64
|
+
|
|
65
|
+
```yaml
|
|
66
|
+
theme: lysande-jekyll-theme
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
2. Then run [Bundler](http://bundler.io/) to install the theme gem and dependencies:
|
|
70
|
+
|
|
71
|
+
```terminal
|
|
72
|
+
bundle install
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### GitHub Pages Method
|
|
76
|
+
|
|
77
|
+
GitHub Pages has added [full support](https://github.com/blog/2464-use-any-theme-with-github-pages)
|
|
78
|
+
for any GitHub-hosted theme.
|
|
79
|
+
|
|
80
|
+
1. Replace `gem "jekyll"` with:
|
|
81
|
+
|
|
82
|
+
```ruby
|
|
83
|
+
gem "github-pages", group: :jekyll_plugins
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
2. Run `bundle update` and verify that all gems install properly.
|
|
87
|
+
|
|
88
|
+
3. Add `remote_theme: "theuggla/lysande-jekyll-theme"` to your
|
|
89
|
+
`_config.yml` file. Remove any other `theme:` or `remote_theme:` entries.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
**Note:** Your Jekyll site should be viewable immediately at
|
|
94
|
+
<http://USERNAME.github.io>. If it's not, you can force a rebuild by
|
|
95
|
+
**Customizing Your Site** (see below for more details).
|
|
96
|
+
|
|
97
|
+
If you're hosting several Jekyll based sites under the same GitHub username you
|
|
98
|
+
will have to use Project Pages instead of User Pages. Essentially you rename the
|
|
99
|
+
repo to something other than **USERNAME.github.io** and create a `gh-pages`
|
|
100
|
+
branch off of `master`. For more details on how to set things up check
|
|
101
|
+
[GitHub's documentation](https://help.github.com/articles/user-organization-and-project-pages/).
|
|
102
|
+
|
|
103
|
+
#### Remove the Unnecessary
|
|
104
|
+
|
|
105
|
+
If you forked or downloaded the `lysande-jekyll-theme` repo you can
|
|
106
|
+
safely remove the following files and folders:
|
|
107
|
+
|
|
108
|
+
- `lysande-jekyll-theme.gemspec`
|
|
109
|
+
- `LICENSE`
|
|
110
|
+
- `README.md`
|
|
111
|
+
- `screenshot.png`
|
|
112
|
+
- `/example`
|
|
113
|
+
|
|
114
|
+
## Upgrading
|
|
115
|
+
|
|
116
|
+
If you're using the Ruby Gem or remote theme versions of Lysande,
|
|
117
|
+
upgrading is fairly painless.
|
|
118
|
+
|
|
119
|
+
To check which version you are currently using, view the source of your built
|
|
120
|
+
site and you should something similar to:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
<!--
|
|
124
|
+
Lysande Jekyll Theme 1.2.0
|
|
125
|
+
Copyright 2017-2018 Molly Arhammar - theuggla.github.io
|
|
126
|
+
Free for personal and commercial use under the MIT license
|
|
127
|
+
https://github.com/theuggla/lysande-jekyll-theme/blob/master/LICENSE
|
|
128
|
+
-->
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
At the top of every `.html` file, `/assets/css/main.css`, and `/assets/js/main.js`.
|
|
132
|
+
|
|
133
|
+
### Ruby Gem
|
|
134
|
+
|
|
135
|
+
Simply run `bundle update` if you're using Bundler (have a `Gemfile`) or `gem
|
|
136
|
+
update jekyll-theme-basically-basic` if you're not.
|
|
137
|
+
|
|
138
|
+
### Remote Theme
|
|
139
|
+
|
|
140
|
+
When hosting with GitHub Pages you'll need to push up a commit to force a
|
|
141
|
+
rebuild with the latest [theme release](https://github.com/theuggla/lysande-jekyll-theme/releases).
|
|
142
|
+
|
|
143
|
+
An empty commit will get the job done too if you don't have anything to push at
|
|
144
|
+
the moment:
|
|
145
|
+
|
|
146
|
+
```terminal
|
|
147
|
+
git commit --allow-empty -m "Force rebuild of site"
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Use Git
|
|
151
|
+
|
|
152
|
+
If you want to get the most out of the Jekyll + GitHub Pages workflow, then
|
|
153
|
+
you'll need to utilize Git. To pull down theme updates you must first ensure
|
|
154
|
+
there's an upstream remote. If you forked the theme's repo then you're likely
|
|
155
|
+
good to go.
|
|
156
|
+
|
|
157
|
+
To double check, run `git remote -v` and verify that you can fetch from `origin https://github.com/theuggla/lysande-jekyll-theme.git`.
|
|
158
|
+
|
|
159
|
+
To add it you can do the following:
|
|
160
|
+
|
|
161
|
+
```terminal
|
|
162
|
+
git remote add upstream https://github.com/theuggla/lysande-jekyll-theme.git
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
#### Pull Down Updates
|
|
166
|
+
|
|
167
|
+
Now you can pull any commits made to theme's `master` branch with:
|
|
168
|
+
|
|
169
|
+
```terminal
|
|
170
|
+
git pull upstream master
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Depending on the amount of customizations you've made after forking, there's
|
|
174
|
+
likely to be merge conflicts. Work through any conflicting files Git flags,
|
|
175
|
+
staging the changes you wish to keep, and then commit them.
|
|
176
|
+
|
|
177
|
+
### Update Files Manually
|
|
178
|
+
|
|
179
|
+
Another way of dealing with updates is [downloading the theme](https://github.com/theuggla/lysande-jekyll-theme/archive/master.zip)
|
|
180
|
+
--- replacing your layouts, includes, and assets with the newer ones manually.
|
|
181
|
+
To be sure that you don't miss any changes it's probably a good idea to review
|
|
182
|
+
the theme's [commit history](https://github.com/theuggla/lysande-jekyll-theme/commits/master)
|
|
183
|
+
to see what's changed since.
|
|
184
|
+
|
|
185
|
+
Here's a quick checklist of the important folders/files you'll want to be
|
|
186
|
+
mindful of:
|
|
187
|
+
|
|
188
|
+
| Name | |
|
|
189
|
+
| ---- | --- |
|
|
190
|
+
| `_layouts` | Replace all. Apply edits if you customized any layouts. |
|
|
191
|
+
| `_includes` | Replace all. Apply edits if you customized any includes. |
|
|
192
|
+
| `assets` | Replace all. Apply edits if you customized stylesheets, scripts or icons. |
|
|
193
|
+
| `_sass` | Replace all. Apply edits if you customized Sass partials. |
|
|
194
|
+
| `_data/theme.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
|
|
195
|
+
| `_config.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
**Note:** If you're not seeing the latest version, be sure to flush browser and
|
|
200
|
+
CDN caches. Depending on your hosting environment older versions of
|
|
201
|
+
`/assets/css/main.css` `*.md` or `*.html` may be cached.
|
|
202
|
+
|
|
203
|
+
## Structure
|
|
204
|
+
|
|
205
|
+
Layouts, includes, Sass partials, and data files are all placed in their default
|
|
206
|
+
locations. Stylesheets and icons in `assets`, and a few development related
|
|
207
|
+
files in the project's root directory.
|
|
208
|
+
|
|
209
|
+
**Please note:** If you installed Basically Basic via the Ruby Gem method, theme
|
|
210
|
+
files found in `/_layouts`, `/_includes`, `/_sass`, and `/assets` will be
|
|
211
|
+
missing. This is normal as they are bundled with the [`lysande-jekyll-theme`](https://rubygems.org/gems/lysande-jekyll-theme) gem.
|
|
212
|
+
|
|
213
|
+
```terminal
|
|
214
|
+
lysande-jekyll-theme
|
|
215
|
+
├── _data # data files
|
|
216
|
+
| └── theme.yml # theme settings and custom text
|
|
217
|
+
├── _includes # theme includes
|
|
218
|
+
├── _layouts # theme layouts (see below for details)
|
|
219
|
+
├── _sass # Sass partials
|
|
220
|
+
├── assets
|
|
221
|
+
| ├── backgrounds
|
|
222
|
+
| | └── default_rustic.jpg
|
|
223
|
+
| ├── fonts
|
|
224
|
+
| | └── [...fonts]
|
|
225
|
+
| ├── icons
|
|
226
|
+
| | └── [...social media icons]
|
|
227
|
+
| ├── open-graph
|
|
228
|
+
| | └── default.png
|
|
229
|
+
| ├── projects
|
|
230
|
+
| | └── images
|
|
231
|
+
| | └── symbols
|
|
232
|
+
| └── main.scss
|
|
233
|
+
├── _config.yml # sample configuration
|
|
234
|
+
└── index.md # sample home page
|
|
235
|
+
└── blog.md # sample blog landing page
|
|
236
|
+
└── projects.md # sample projects landing page
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Starting Fresh
|
|
240
|
+
|
|
241
|
+
After creating a `Gemfile` and installing the theme you'll need to add and edit
|
|
242
|
+
the following files:
|
|
243
|
+
|
|
244
|
+
- [`_config.yml`](_config.yml)
|
|
245
|
+
- [`/_data/theme.yml`](_data/theme.yml)
|
|
246
|
+
- [`index.md`](index.md)
|
|
247
|
+
- [`blog.md`](blog.md)
|
|
248
|
+
- [`projects.md`](projects.md)
|
|
249
|
+
|
|
250
|
+
### Starting from `jekyll new`
|
|
251
|
+
|
|
252
|
+
Using the `jekyll new` command will get you up and running the quickest.
|
|
253
|
+
|
|
254
|
+
Edit `_config.yml` and create `_data/theme.yml` as instructed above and you're
|
|
255
|
+
good to go.
|
|
256
|
+
|
|
257
|
+
## Configuration
|
|
258
|
+
|
|
259
|
+
Configuration of site-wide elements (`title`, `description`,
|
|
260
|
+
`author`, etc.) happens in your project's `_config.yml`. See the
|
|
261
|
+
[example configuration](example/_config.yml) in this repo for additional
|
|
262
|
+
reference.
|
|
263
|
+
|
|
264
|
+
| | Description |
|
|
265
|
+
| ------------------ | ------------------------------------------------------------------------- |
|
|
266
|
+
| `title` | Your site's title (e.g., Arthur Dent's Site) |
|
|
267
|
+
| `email` | Your emai. Will be used as a link in the social media menu |
|
|
268
|
+
| `description` | Short site description (e.g., A site about my coffe projects) |
|
|
269
|
+
| `url` | The base URL to your site (e.g., https://groverloaf.org). Leave empty if hosting on github pages.|
|
|
270
|
+
| `author` | Your name, used as a byline and title of the site |
|
|
271
|
+
| `share_image` | For sharing in line with Open Graph, set the name for your image (including .png) and place it in your /assets/open-graph directory. |
|
|
272
|
+
| `background_image` | The name of the image-file to use as a background image of the site. Place the image in /assets/backgrounds |
|
|
273
|
+
| `rss` | If set to true, an rss feed will be added for the projects of the site |
|
|
274
|
+
| `[social-media]_username` | The theme supports usernames to various social media sites. If you add in any of these usernames in your config file, an icon will appear in your header that links to that account. Supported social media sites are `twitter`, `github`, `tumblr`, `instagram`, `facebook`, `pinterest` |
|
|
275
|
+
| `youtube_channel` | The name of your Youtube channel. If added, an icon will appear in your header that links to the channel |
|
|
276
|
+
| `skype_inviteURL` | The url to invite someone to add you on skype. If added, an icon will appear in your header that links to the invitation |
|
|
277
|
+
| `linkedin_usernameURL` | The username-URL you have chosen for your LinkedIn account. If added, an icon will appear in your header that links to the account |
|
|
278
|
+
| `upwork_userID` | The ID of your Upwork account. If added, an icon will appear in your header that links to the account |
|
|
279
|
+
| `disqus_shortname` | To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208) |
|
|
280
|
+
|
|
281
|
+
For more configuration options be sure to consult the documentation for:
|
|
282
|
+
[**jekyll-seo-tag**][jekyll-seo-tag], [**jekyll-feed**][jekyll-feed],
|
|
283
|
+
|
|
284
|
+
[jekyll-seo-tag]: https://github.com/jekyll/jekyll-seo-tag
|
|
285
|
+
|
|
286
|
+
### Text
|
|
287
|
+
|
|
288
|
+
To change text on the landing pages of the blog, project and index pages found in the example folder, add the following to your [`/_data/theme.yml`](_data/theme.yml) file and customize as necessary. Leaving the field empty ill revert to the default-text, while setting it to `none` will show no text at all.
|
|
289
|
+
|
|
290
|
+
```yaml
|
|
291
|
+
t:
|
|
292
|
+
index_text: \'\'|\'none\'|\'custom text\'
|
|
293
|
+
blog_intro: \'\'|\'none\'|\'custom text\'
|
|
294
|
+
projects_intro: \'\'|\'none\'|\'custom text\'
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Navigation
|
|
298
|
+
|
|
299
|
+
All pages with a `menu: main` attribute in their Front Matter will be added to the global
|
|
300
|
+
menu. For more granular control and sorting of these menu links:
|
|
301
|
+
|
|
302
|
+
1. The link in the menu will be named after the page's `title` attribute in the Front Matter.
|
|
303
|
+
|
|
304
|
+
2. The links will be sorted according to the `weight` attribute in the front matter, starting from 1 and counting upwards.
|
|
305
|
+
|
|
306
|
+
### Author
|
|
307
|
+
|
|
308
|
+
Author information from the `_config.yml` is used as the byline of your page.
|
|
309
|
+
|
|
310
|
+
### Comments (via Disqus)
|
|
311
|
+
|
|
312
|
+
Optionally, if you have a [Disqus](https://disqus.com/) account, you can show a
|
|
313
|
+
comments section below each post.
|
|
314
|
+
|
|
315
|
+
To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208) to your project's
|
|
316
|
+
`_config.yml` file:
|
|
317
|
+
|
|
318
|
+
```yaml
|
|
319
|
+
disqus_shortname: my_disqus_shortname
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Comments will only appear in production when built
|
|
323
|
+
with the following [environment value](http://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time):
|
|
324
|
+
`JEKYLL_ENV=production`. If you are building with Github Pages, the environment variable will be set to `production` automatically.
|
|
325
|
+
|
|
326
|
+
If you don't want to display comments for a particular post you can disable
|
|
327
|
+
them by adding `comments: false` to that post's front matter.
|
|
328
|
+
|
|
329
|
+
To display the comments, make sure your posts has a layout of 'post' and add comments to the Front Matter of the posts you would like the comments on, like so:
|
|
330
|
+
|
|
331
|
+
```yaml
|
|
332
|
+
comments: true
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
## Layouts
|
|
336
|
+
|
|
337
|
+
This theme provides the following layouts, which you can use by setting the
|
|
338
|
+
`layout` [Front Matter](https://jekyllrb.com/docs/frontmatter/) on each page,
|
|
339
|
+
like so:
|
|
340
|
+
|
|
341
|
+
```yaml
|
|
342
|
+
---
|
|
343
|
+
layout: name
|
|
344
|
+
---
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
The theme comes with four layouts: default, post, projects and blog. It includes a header, footer and a global
|
|
348
|
+
navigation menu.
|
|
349
|
+
|
|
350
|
+
It is intended to be used with a _projects folder, where markdown documents representing your projects can be stored.
|
|
351
|
+
Without the _projects folder, it is possible to use it as a blog with _posts only.
|
|
352
|
+
|
|
353
|
+
### `layout: default`
|
|
354
|
+
|
|
355
|
+
This layout handles all of the basic page scaffolding placing the page content
|
|
356
|
+
between the masthead and footer elements. All other layouts inherit this one
|
|
357
|
+
and provide additional styling and features inside of the `{{ content }}` block.
|
|
358
|
+
|
|
359
|
+
### `layout: blog`
|
|
360
|
+
|
|
361
|
+
The `blog` layout includes a local navigation list of all posts in _posts, and displays a list with the title, an excerpt, and a disqus comment count for each post.
|
|
362
|
+
|
|
363
|
+
### `layout: post`
|
|
364
|
+
|
|
365
|
+
To be able to use the theme with the `blog` and `post` layouts, create a `_posts` directory and place your blog posts in it with a Front Matter that includes
|
|
366
|
+
```yaml
|
|
367
|
+
layout: post
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
The blog posts should be in `.md` format, and be named in line with the `YYYY-MM-DD-title-of-post.md`-convention. See [example](/example/_posts/2017-10-02-example-post.md)
|
|
371
|
+
|
|
372
|
+
The `post` layout supports the following additional Front Matter:
|
|
373
|
+
```yaml
|
|
374
|
+
url: /your-custom-url-to-post
|
|
375
|
+
title: the title of the post
|
|
376
|
+
comments: true
|
|
377
|
+
excerpt_separator: <!--custom-->
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
If `excerpt_separator` is not given, it will default to the first paragraph break. If `comments` is set to `true` and a `disqus_shortname` has been given in the `_config-yml`, disqus comments will be enabled when the site is in production.
|
|
381
|
+
|
|
382
|
+
### `layout: projects`
|
|
383
|
+
|
|
384
|
+
To be able to use the theme with the projects layout, copy this into your _config.yml-file:
|
|
385
|
+
|
|
386
|
+
```yaml
|
|
387
|
+
collections:
|
|
388
|
+
projects:
|
|
389
|
+
categories: [example1, example2]
|
|
390
|
+
```
|
|
391
|
+
|
|
392
|
+
Add the categories you are interested in, separated by commas, between the square brackets.
|
|
393
|
+
|
|
394
|
+
To make use of the projects layout, create a `_projects` directory and add your projects as `.md`-files, adding the following to each project's Front Matter:
|
|
395
|
+
|
|
396
|
+
```yaml
|
|
397
|
+
category: example1
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
and supply one of the categories you have recorded in your config file. See [example](/example/_projects/jekylltheme.md)
|
|
401
|
+
|
|
402
|
+
The projects will be displayed on any page you give the `projects` layout, or otherwise accessible via site.projects,
|
|
403
|
+
just as site.posts gives you access to your blog posts. Anything you add to a page with the projects layout
|
|
404
|
+
will be displayed on top of the projects posts, under the projects navigational menu. Projects are displayed crouped by category, and the `projects` layout adds a navigation between the different categories if more
|
|
405
|
+
categories than three and/or a small screen display.
|
|
406
|
+
|
|
407
|
+
The `projects` layout supports the following front matter:
|
|
408
|
+
```yaml
|
|
409
|
+
title: "jekyll theme"
|
|
410
|
+
category: code, published
|
|
411
|
+
tags: liquid, html, sass
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
Whete `title` will be the title of the project, and `tags` will be displayed in smaller font.
|
|
415
|
+
|
|
416
|
+
## Customization
|
|
417
|
+
|
|
418
|
+
The default structure and style of this theme can be overridden and
|
|
419
|
+
customized in the following two ways.
|
|
420
|
+
|
|
421
|
+
### Overriding Includes and Layouts
|
|
422
|
+
|
|
423
|
+
Theme defaults can be [overridden](http://jekyllrb.com/docs/themes/#overriding-theme-defaults)
|
|
424
|
+
by placing a file with the same name into your project's `_includes` or
|
|
425
|
+
`_layouts` directory. For instance:
|
|
426
|
+
|
|
427
|
+
- To specify a custom style path or meta data to the [`_includes/head.html `](_includes/head.html)
|
|
428
|
+
file, create an `_includes` directory in your project, copy
|
|
429
|
+
`_includes/head.html` from Lysande's gem folder to
|
|
430
|
+
`<your_project>/_includes` and start editing that file.
|
|
431
|
+
|
|
432
|
+
**ProTip:** to locate the theme's files on your computer run
|
|
433
|
+
`bundle show lysande-jekyll-theme`. This returns the location of the
|
|
434
|
+
gem-based theme files.
|
|
435
|
+
|
|
436
|
+
### Customizing Sass (SCSS)
|
|
437
|
+
|
|
438
|
+
To override the default [Sass](http://sass-lang.com/guide) (located in theme's
|
|
439
|
+
`_sass` directory), do one of the following:
|
|
440
|
+
|
|
441
|
+
1. Copy directly from the Lysande gem
|
|
442
|
+
|
|
443
|
+
- Go to your local Lysande gem installation directory (run
|
|
444
|
+
`bundle show lysande-jekyll-theme` to get the path to it).
|
|
445
|
+
- Copy the contents of `/assets/main.scss` from there to
|
|
446
|
+
`<your_project>`.
|
|
447
|
+
- Customize what you want inside `<your_project>/assets/main.scss`.
|
|
448
|
+
|
|
449
|
+
2. Copy from this repo.
|
|
450
|
+
|
|
451
|
+
- Copy the contents of [assets/main.scss](assets/main.scss)
|
|
452
|
+
to `<your_project>`.
|
|
453
|
+
- Customize what you want inside `<your_project/assets/main.scss`.
|
|
454
|
+
|
|
455
|
+
The sass layouts available to import to your main.scss should you wish are the _base, that styles the main appearance
|
|
456
|
+
of the site, the header and the footer. It is recommended that you also import the _menu for styling of the global
|
|
457
|
+
navigation. If you opt to use the project and blog layout for displaying your projects and blog posts, the styles
|
|
458
|
+
for them are included as _projects and _blog. The _responsive makes the site responsive.
|
|
459
|
+
|
|
460
|
+
Full list of _sass as follows:
|
|
461
|
+
|
|
462
|
+
1. @include '_base.scss' --- basic styling
|
|
463
|
+
2. @include '_menu.scss' --- global menu
|
|
464
|
+
3. @include '_projects.scss' --- page that displays projects
|
|
465
|
+
4. @include '_blog.scss' --- main blog page with links to blog posts
|
|
466
|
+
5. @include '_responsive.scss' --- makes site responsive
|
|
467
|
+
|
|
468
|
+
### Icons
|
|
469
|
+
|
|
470
|
+
There are icon helper includes to aid in generating
|
|
471
|
+
social network links.
|
|
472
|
+
|
|
473
|
+
| Include Parameter | Description | Required |
|
|
474
|
+
| ----------------- | ---------------------------------| ----------------------- |
|
|
475
|
+
| `username` | Username on given social network | **Required** |
|
|
476
|
+
|
|
477
|
+
## Contributing
|
|
478
|
+
|
|
479
|
+
Found a typo in the documentation? Interested in adding a feature or
|
|
480
|
+
[fixing a bug][issues]? Then by all means [submit an issue][new-issue] or take a
|
|
481
|
+
stab at submitting a [pull request][using-pull-requests]. If this is your first
|
|
482
|
+
pull request, it may be helpful to read up on the [GitHub Flow][github-flow].
|
|
483
|
+
|
|
484
|
+
[issues]: https://github.com/theuggla/lysande-jekyll-theme/issues
|
|
485
|
+
[new-issue]: https://github.com/theuggla/lysande-jekyll-theme/issues/new
|
|
486
|
+
[using-pull-requests]: https://help.github.com/articles/using-pull-requests/
|
|
487
|
+
[github-flow]: https://guides.github.com/introduction/flow/
|
|
488
|
+
|
|
489
|
+
### Pull Requests
|
|
490
|
+
|
|
491
|
+
When submitting a pull request:
|
|
492
|
+
|
|
493
|
+
1. Clone the repo.
|
|
494
|
+
2. Create a branch off of `master` and give it a meaningful name (e.g.
|
|
495
|
+
`my-awesome-new-feature`) and describe the feature or fix.
|
|
496
|
+
3. Open a pull request on GitHub.
|
|
497
|
+
|
|
498
|
+
Sample pages can be found in the [`/example`](/example)
|
|
499
|
+
folder if you'd like to tackle any "low-hanging fruit" like fixing typos, bad
|
|
500
|
+
grammar, etc.
|
|
501
|
+
|
|
502
|
+
---
|
|
503
|
+
|
|
504
|
+
## Credits
|
|
505
|
+
|
|
506
|
+
### Creator
|
|
507
|
+
|
|
508
|
+
**Molly Arhammar**
|
|
509
|
+
|
|
510
|
+
- <https://theuggla.github.io>
|
|
511
|
+
- <https://github.com/theuggla>
|
|
512
|
+
- <https://linkedin.com/in/molly-arhammar>
|
|
513
|
+
|
|
514
|
+
## License
|
|
515
|
+
|
|
516
|
+
The MIT License (MIT)
|
|
517
|
+
|
|
518
|
+
Copyright (c) 2016-2019 Molly Arhammar and contributors
|
|
519
|
+
|
|
520
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
521
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
522
|
+
in the Software without restriction, including without limitation the rights
|
|
523
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
524
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
525
|
+
furnished to do so, subject to the following conditions:
|
|
526
|
+
|
|
527
|
+
The above copyright notice and this permission notice shall be included in all
|
|
528
|
+
copies or substantial portions of the Software.
|
|
529
|
+
|
|
530
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
531
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
532
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
533
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
534
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
535
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
536
|
+
SOFTWARE.
|