jekyll-theme-hydeout 3.7.1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +168 -167
- data/_includes/back-link.html +6 -0
- data/_includes/category-links.html +1 -1
- data/_includes/copyright.html +1 -1
- data/_includes/favicons.html +2 -2
- data/_includes/head.html +3 -3
- data/_includes/page-links.html +1 -1
- data/_includes/pagination-newer.html +1 -1
- data/_includes/pagination-older.html +1 -1
- data/_includes/post-meta.html +1 -1
- data/_includes/post-tags.html +1 -1
- data/_includes/related_posts.html +1 -1
- data/_includes/search-form.html +1 -1
- data/_includes/sidebar-icon-links.html +6 -6
- data/_includes/sidebar-nav-links.html +2 -2
- data/_includes/sidebar.html +1 -1
- data/_includes/tags-list.html +1 -1
- data/_layouts/category.html +1 -1
- data/_layouts/default.html +1 -1
- data/_layouts/index.html +2 -2
- data/_layouts/page.html +2 -1
- data/_sass/hydeout.scss +13 -12
- data/_sass/hydeout/_back-link.scss +10 -0
- data/_sass/hydeout/_base.scss +48 -22
- data/_sass/hydeout/_code.scss +18 -24
- data/_sass/hydeout/_layout.scss +329 -306
- data/_sass/hydeout/_masthead.scss +5 -5
- data/_sass/hydeout/_message.scss +2 -2
- data/_sass/hydeout/_pagination.scss +11 -11
- data/_sass/hydeout/_posts.scss +53 -52
- data/_sass/hydeout/_search.scss +4 -3
- data/_sass/hydeout/_syntax.scss +56 -41
- data/_sass/hydeout/_tags.scss +19 -22
- data/_sass/hydeout/_type.scss +44 -28
- data/_sass/hydeout/_variables.scss +9 -7
- metadata +36 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61a9f26f5d08ea52740dc4c5b0873f3aa9d9075b
|
4
|
+
data.tar.gz: 8e17561df2f49a04b8ace7da4ea3332edd1c38c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ec501edef52d459d0bf36bc48f50a53ed72b8167c8c16f3977d68e31754b493b72db527837a930b7785e2b42a70a5b8b341d5e776f26fd4a350ded6e847647f
|
7
|
+
data.tar.gz: fe9807f296712b82b49610b6f76bb25abd0c5df949b46c982f428ab993633b6acebe7bebc2d3f5527d187e1c99eeeee81ff691f9c6e37c80e91efa70e003327b
|
data/README.md
CHANGED
@@ -1,167 +1,168 @@
|
|
1
|
-
# Hydeout
|
2
|
-
|
3
|
-
Hydeout updates the original [Hyde](https://github.com/poole/hyde)
|
4
|
-
theme for [Jekyll](http://jekyllrb.com) 3.x and adds new functionality.
|
5
|
-
|
6
|
-
![Desktop](/_screenshots/1.png?raw=true)
|
7
|
-
<img alt="Mobile home page" src="/_screenshots/2.png?raw=true" width="300px" />
|
8
|
-
<img alt="Mobile post page" src="/_screenshots/3.png?raw=true" width="300px" />
|
9
|
-
|
10
|
-
### Usage
|
11
|
-
|
12
|
-
Hydeout is available as the `jekyll-theme-hydeout` Ruby Gem.
|
13
|
-
Add `gem "jekyll-theme-hydeout", "~>
|
14
|
-
`bundle install`.
|
15
|
-
|
16
|
-
If you're installing on Github pages, you may also have to add
|
17
|
-
`remote_theme: fongandrew/hydeout` to your `_config.yml`. [See the Github
|
18
|
-
instructions for more details.](https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site/)
|
19
|
-
|
20
|
-
Hydeout uses pagination, so if you have an `index.md`, you'll need to swap
|
21
|
-
it with an `index.html` that uses the `index` layout:
|
22
|
-
|
23
|
-
```
|
24
|
-
---
|
25
|
-
layout: index
|
26
|
-
title: Home
|
27
|
-
---
|
28
|
-
```
|
29
|
-
|
30
|
-
You'll also need to add a setting to `_config.yml` telling Jekyll how many posts
|
31
|
-
to include per page (e.g. `paginate: 5`).
|
32
|
-
|
33
|
-
### Keep It Simple
|
34
|
-
|
35
|
-
In keeping with the original Hyde theme, Hydeout aims to keep the overall
|
36
|
-
design lightweight and plugin-free. JavaScript is currently limited only
|
37
|
-
to Disqus and Google Analytics (and is only loaded if you provide configuration
|
38
|
-
variables).
|
39
|
-
|
40
|
-
Hydeout makes heavy use of Flexbox in its CSS. If Flexbox is not available,
|
41
|
-
the CSS degrades into a single column layout.
|
42
|
-
|
43
|
-
### Customization
|
44
|
-
|
45
|
-
Hydeout replaces Hyde's class-based theming with the use
|
46
|
-
of the following SASS variables:
|
47
|
-
|
48
|
-
```scss
|
49
|
-
$sidebar-bg-color: #202020 !default;
|
50
|
-
$sidebar-
|
51
|
-
$
|
52
|
-
$
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
$
|
65
|
-
$
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
1
|
+
# Hydeout
|
2
|
+
|
3
|
+
Hydeout updates the original [Hyde](https://github.com/poole/hyde)
|
4
|
+
theme for [Jekyll](http://jekyllrb.com) 3.x and 4.x and adds new functionality.
|
5
|
+
|
6
|
+
![Desktop](/_screenshots/1.png?raw=true)
|
7
|
+
<img alt="Mobile home page" src="/_screenshots/2.png?raw=true" width="300px" />
|
8
|
+
<img alt="Mobile post page" src="/_screenshots/3.png?raw=true" width="300px" />
|
9
|
+
|
10
|
+
### Usage
|
11
|
+
|
12
|
+
Hydeout is available as the `jekyll-theme-hydeout` Ruby Gem.
|
13
|
+
Add `gem "jekyll-theme-hydeout", "~> 4.1"` to your Gemfile and run
|
14
|
+
`bundle install`.
|
15
|
+
|
16
|
+
If you're installing on Github pages, you may also have to add
|
17
|
+
`remote_theme: fongandrew/hydeout` to your `_config.yml`. [See the Github
|
18
|
+
instructions for more details.](https://help.github.com/articles/adding-a-jekyll-theme-to-your-github-pages-site/)
|
19
|
+
|
20
|
+
Hydeout uses pagination, so if you have an `index.md`, you'll need to swap
|
21
|
+
it with an `index.html` that uses the `index` layout:
|
22
|
+
|
23
|
+
```
|
24
|
+
---
|
25
|
+
layout: index
|
26
|
+
title: Home
|
27
|
+
---
|
28
|
+
```
|
29
|
+
|
30
|
+
You'll also need to add a setting to `_config.yml` telling Jekyll how many posts
|
31
|
+
to include per page (e.g. `paginate: 5`).
|
32
|
+
|
33
|
+
### Keep It Simple
|
34
|
+
|
35
|
+
In keeping with the original Hyde theme, Hydeout aims to keep the overall
|
36
|
+
design lightweight and plugin-free. JavaScript is currently limited only
|
37
|
+
to Disqus and Google Analytics (and is only loaded if you provide configuration
|
38
|
+
variables).
|
39
|
+
|
40
|
+
Hydeout makes heavy use of Flexbox in its CSS. If Flexbox is not available,
|
41
|
+
the CSS degrades into a single column layout.
|
42
|
+
|
43
|
+
### Customization
|
44
|
+
|
45
|
+
Hydeout replaces Hyde's class-based theming with the use
|
46
|
+
of the following SASS variables:
|
47
|
+
|
48
|
+
```scss
|
49
|
+
$sidebar-bg-color: #202020 !default;
|
50
|
+
$sidebar-fg-color: white !default;
|
51
|
+
$sidebar-sticky: true !default;
|
52
|
+
$layout-reverse: false !default;
|
53
|
+
$link-color: #268bd2 !default;
|
54
|
+
```
|
55
|
+
|
56
|
+
To override these variables, create your own `assets/css/main.scss` file.
|
57
|
+
Define your own variables, then import in Hydeout's SCSS, like so:
|
58
|
+
|
59
|
+
```scss
|
60
|
+
---
|
61
|
+
# Jekyll needs front matter for SCSS files
|
62
|
+
---
|
63
|
+
|
64
|
+
$sidebar-bg-color: #ac4142;
|
65
|
+
$link-color: #ac4142;
|
66
|
+
$sidebar-sticky: false;
|
67
|
+
@import "hydeout";
|
68
|
+
```
|
69
|
+
|
70
|
+
See the [_variables](_sass/hydeout/_variables.scss) file for other variables
|
71
|
+
you can override.
|
72
|
+
|
73
|
+
You can see the full set of partials you can replace in the
|
74
|
+
[`_includes`](_includes) folder, but there are a few worth noting:
|
75
|
+
|
76
|
+
* `_includes/copyright.html` - Insert your own copyright here.
|
77
|
+
|
78
|
+
* `_includes/custom-head.html` - Insert custom head tags (e.g. to load your
|
79
|
+
own stylesheets)
|
80
|
+
|
81
|
+
* `_includes/custom-foot.html` - Insert custom elements at the end of the
|
82
|
+
body (e.g. for custom JS)
|
83
|
+
|
84
|
+
* `_includes/custom-nav-links.html` - Additional nav links to insert at the
|
85
|
+
end of the list of links in the sidebar.
|
86
|
+
|
87
|
+
Pro-tip: The `nav`s in the sidebar are flexboxes. Use the `order` property
|
88
|
+
to order your links.
|
89
|
+
|
90
|
+
* `_includes/custom-icon-links.html`- Additional icon links to insert at the
|
91
|
+
end of the icon links at the bottom of the sidebar. You can use the `order`
|
92
|
+
property to re-order.
|
93
|
+
|
94
|
+
* `_includes/favicons.html` - Replace references to `favicon.ico` and
|
95
|
+
`favicon.png` with your own favicons references.
|
96
|
+
|
97
|
+
* `_includes/font-includes.html` - The Abril Fatface font used for the site
|
98
|
+
title is loaded here. If you're overriding that font in the CSS, be sure
|
99
|
+
to also remove the font load reference here.
|
100
|
+
|
101
|
+
### New Features
|
102
|
+
|
103
|
+
* Hydeout adds a new tags page (accessible in the sidebar). Just create a
|
104
|
+
new page with the tags layout:
|
105
|
+
|
106
|
+
```
|
107
|
+
---
|
108
|
+
layout: tags
|
109
|
+
title: Tags
|
110
|
+
---
|
111
|
+
```
|
112
|
+
|
113
|
+
* Hydeout adds a new "category" layout for dedicated category pages.
|
114
|
+
Category pages are automatically added to the sidebar. All other pages
|
115
|
+
must have `sidebar_link: true` in their front matter to show up in
|
116
|
+
the sidebar. To create a category page, use the `category` layout"
|
117
|
+
|
118
|
+
```
|
119
|
+
---
|
120
|
+
layout: category
|
121
|
+
title: My Category
|
122
|
+
---
|
123
|
+
|
124
|
+
Description of "My Category"
|
125
|
+
```
|
126
|
+
|
127
|
+
* You can control how pages are sorted by using the `sidebar_sort_order`
|
128
|
+
parameter in the front matter. This works for both category and non-category
|
129
|
+
pages, although non-category pages will always come first. Take a look at
|
130
|
+
[`_includes/sidebar-nav-links.html`](./_includes/sidebar-nav-links.html) if
|
131
|
+
you want to customize this behavior.
|
132
|
+
|
133
|
+
```
|
134
|
+
---
|
135
|
+
layout: page
|
136
|
+
title: My page
|
137
|
+
sidebar_sort_order: 123
|
138
|
+
---
|
139
|
+
|
140
|
+
Some content.
|
141
|
+
```
|
142
|
+
|
143
|
+
* A simple redirect-to-Google search is available. Just create a page with
|
144
|
+
the `search` layout.
|
145
|
+
|
146
|
+
```
|
147
|
+
---
|
148
|
+
layout: search
|
149
|
+
title: Google Search
|
150
|
+
---
|
151
|
+
```
|
152
|
+
|
153
|
+
* Disqus integration is ready out of the box. Just add the following to
|
154
|
+
your config file:
|
155
|
+
|
156
|
+
```yaml
|
157
|
+
disqus:
|
158
|
+
shortname: my-disqus-shortname
|
159
|
+
```
|
160
|
+
|
161
|
+
If you don't want Disqus or want to use something else, override
|
162
|
+
`comments.html`.
|
163
|
+
|
164
|
+
* For Google Analytics support, define a `google_analytics` variable with
|
165
|
+
your property ID in your config file.
|
166
|
+
|
167
|
+
There's also a bunch of minor tweaks and adjustments throughout the
|
168
|
+
theme. Hope this works for you!
|
@@ -0,0 +1,6 @@
|
|
1
|
+
{% assign back_page = site.pages | find: "name", page.back_page %}
|
2
|
+
{% if back_page != null %}
|
3
|
+
<p class="back-link">
|
4
|
+
<a href="{{ back_page.url | relative_url }}"><span class="back-arrow icon">{% include svg/back-arrow.svg %}</span>{{ back_page.short_title | default: back_page.title }}</a>
|
5
|
+
</p>
|
6
|
+
{% endif %}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
{% if node.title != null %}
|
7
7
|
{% if node.layout == "category" %}
|
8
8
|
<a class="category-link {% if page.url == node.url %} active{% endif %}"
|
9
|
-
href="{{
|
9
|
+
href="{{ node.url | relative_url }}">{{ node.title }}</a>
|
10
10
|
{% endif %}
|
11
11
|
{% endif %}
|
12
12
|
{% endfor %}
|
data/_includes/copyright.html
CHANGED
data/_includes/favicons.html
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{
|
2
|
-
<link rel="shortcut icon" href="{{
|
1
|
+
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ "/favicon.png" | relative_url }}" />
|
2
|
+
<link rel="shortcut icon" href="{{ "/favicon.ico" | relative_url}}" />
|
data/_includes/head.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<head>
|
2
|
-
<link href="
|
2
|
+
<link href="https://gmpg.org/xfn/11" rel="profile" />
|
3
3
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
4
4
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
5
|
|
@@ -17,14 +17,14 @@
|
|
17
17
|
{% include google-analytics.html %}
|
18
18
|
|
19
19
|
<!-- CSS -->
|
20
|
-
<link rel="stylesheet" href="{{
|
20
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
|
21
21
|
{% include font-includes.html %}
|
22
22
|
|
23
23
|
<!-- Icons -->
|
24
24
|
{% include favicons.html %}
|
25
25
|
|
26
26
|
<!-- RSS -->
|
27
|
-
<link rel="alternate" type="application/rss+xml" title="RSS" href="
|
27
|
+
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ site.feed.path | default: 'feed.xml' | relative_url }}" />
|
28
28
|
|
29
29
|
{% include custom-head.html %}
|
30
30
|
</head>
|
data/_includes/page-links.html
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
{% if node.title != null %}
|
8
8
|
{% if node.sidebar_link %}
|
9
9
|
<a class="page-link {% if page.url == node.url %} active{% endif %}"
|
10
|
-
href="{{
|
10
|
+
href="{{ node.url | relative_url }}">{% if node.short_title != null %}{{ node.short_title }}{% else %}{{ node.title }}{% endif %}</a>
|
11
11
|
{% endif %}
|
12
12
|
{% endif %}
|
13
13
|
{% endfor %}
|
data/_includes/post-meta.html
CHANGED
data/_includes/post-tags.html
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
<div class="post-tags">
|
12
12
|
{% for tag in include.post.tags %}
|
13
13
|
{% if tags_page %}
|
14
|
-
<a href="{{
|
14
|
+
<a href="{{ tags_page.url | relative_url }}#{{ tag | slugify }}">
|
15
15
|
{% else %}<span>{% endif %}
|
16
16
|
<span class="icon">
|
17
17
|
{% include svg/tags.svg %}
|