2016-06-20 08:54:31 +00:00
|
|
|
# Garth Jekyll Theme
|
2016-06-15 08:48:01 +00:00
|
|
|
|
2016-06-15 08:47:48 +00:00
|
|
|
[![Gem Version](https://badge.fury.io/rb/garth-jekyll-theme.svg)](https://badge.fury.io/rb/garth-jekyll-theme)
|
2016-06-15 08:48:01 +00:00
|
|
|
|
2016-06-19 18:19:46 +00:00
|
|
|
A stupidly simple theme for Jekyll (3.2), using official Jekyll theme implementation.
|
2016-06-19 18:17:19 +00:00
|
|
|
|
|
|
|
![Screenshot](https://raw.githubusercontent.com/daviddarnes/garth-jekyll-theme/master/screenshot.png)
|
2016-06-15 08:47:48 +00:00
|
|
|
|
2016-06-20 08:54:31 +00:00
|
|
|
## Installation
|
2016-06-15 08:47:48 +00:00
|
|
|
|
2016-07-31 16:48:13 +00:00
|
|
|
1. `$ gem install jekyll`
|
|
|
|
2. `$ gem install garth-jekyll-theme`
|
2016-07-29 13:33:14 +00:00
|
|
|
3. Add the following to your config file:
|
2016-07-31 16:48:13 +00:00
|
|
|
|
2016-06-19 18:02:00 +00:00
|
|
|
``` yml
|
2016-06-19 18:00:34 +00:00
|
|
|
# Typical site settings
|
|
|
|
title: "Website title"
|
|
|
|
description: "Website description"
|
2016-07-29 13:33:14 +00:00
|
|
|
logo: https://www.gravatar.com/avatar/6c0377abcf4da91cdd35dea4554b2a4c?s=300 # Provide an avatar/logo
|
|
|
|
|
|
|
|
theme: garth-jekyll-theme # Set the theme
|
2016-06-19 18:00:34 +00:00
|
|
|
```
|
2016-06-20 12:13:55 +00:00
|
|
|
|
2016-06-20 12:12:39 +00:00
|
|
|
5. Add the following to your `css/styles.scss` file:
|
2016-06-20 12:13:55 +00:00
|
|
|
|
2016-06-20 12:12:39 +00:00
|
|
|
``` css
|
|
|
|
---
|
|
|
|
---
|
|
|
|
@import "theme";
|
|
|
|
```
|
2016-07-31 16:48:13 +00:00
|
|
|
|
2016-06-20 12:12:39 +00:00
|
|
|
6. Add the following to your `js/scripts.js` file:
|
2016-06-20 12:13:55 +00:00
|
|
|
|
2016-06-20 12:12:39 +00:00
|
|
|
``` html
|
|
|
|
---
|
|
|
|
---
|
|
|
|
{% include theme.js %}
|
|
|
|
```
|
2016-07-31 16:48:13 +00:00
|
|
|
|
2016-07-29 13:33:14 +00:00
|
|
|
7. `$ jekyll serve --watch`
|
|
|
|
|
|
|
|
## Additional notes
|
|
|
|
|
|
|
|
There's 3 templates within the theme:
|
|
|
|
|
|
|
|
- `front.html`: For blog homepage, you'll need `jekyll-paginate` to paginate posts in your blog
|
|
|
|
- `page.html`: For pages
|
|
|
|
- `post.html`: For blog posts
|