jekyll-theme-hydeout 3.1.2 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +31 -8
- data/_includes/post-meta.html +0 -1
- data/_includes/post-tags.html +14 -2
- data/_includes/sidebar-icon-links.html +30 -10
- data/{search.html → _layouts/search.html} +1 -2
- data/_layouts/tags.html +5 -0
- metadata +3 -3
- data/tags.html +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a4d9c7cf8230e5848b3df9ae50eb03036b40a53
|
4
|
+
data.tar.gz: ffd6cc0b9cfff69edb40441d679a1283459c0fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 815da07c1729fe7cb7afa77da7f5cc106db45f557741153f3317033e0df87ad9cdd0920776aacb3e20778b623a6c5f5bd0430b3d962f914a059f02c9d29c88ca
|
7
|
+
data.tar.gz: ea2a0dc57874d761ed697c5f3afded93f13a0ebe3a96ba91647e7f045e9de83afc4e5414f9c73de1e2d8dab18564fca69e332eddbca674e9ab956dcc315e5031
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ theme for [Jekyll](http://jekyllrb.com) 3.x and adds new functionality.
|
|
10
10
|
### Usage
|
11
11
|
|
12
12
|
Hydeout is available as the `jekyll-theme-hydeout` Ruby Gem.
|
13
|
-
Add `gem "jekyll-theme-hydeout", "~> 3.1
|
13
|
+
Add `gem "jekyll-theme-hydeout", "~> 3.1"` to your Gemfile and run
|
14
14
|
`bundle install`.
|
15
15
|
|
16
16
|
Hydeout uses pagination, so if you have an `index.md`, you'll need to swap
|
@@ -69,16 +69,39 @@ of the body (e.g. for custom JS) by defining your own
|
|
69
69
|
|
70
70
|
### New Features
|
71
71
|
|
72
|
-
* Hydeout
|
73
|
-
|
72
|
+
* Hydeout adds a new tags page (accessible in the sidebar). Just create a
|
73
|
+
new page with the tags layout:
|
74
74
|
|
75
|
-
|
75
|
+
```
|
76
|
+
---
|
77
|
+
layout: tags
|
78
|
+
title: Tags
|
79
|
+
---
|
80
|
+
```
|
81
|
+
|
82
|
+
* Hydeout and a new "category" layout for dedicated category pages.
|
83
|
+
Category pages are automatically added to the sidebar. All other pages
|
76
84
|
must have `sidebar_link: true` in their front matter to show up in
|
77
|
-
the sidebar.
|
85
|
+
the sidebar. To create a category page, use the `category` layout"
|
86
|
+
|
87
|
+
```
|
88
|
+
---
|
89
|
+
layout: category
|
90
|
+
title: My Category
|
91
|
+
---
|
78
92
|
|
79
|
-
|
80
|
-
|
81
|
-
|
93
|
+
Description of "My Category"
|
94
|
+
```
|
95
|
+
|
96
|
+
* A simple redirect-to-Google search is available. Just create a page with
|
97
|
+
the `search` layout.
|
98
|
+
|
99
|
+
```
|
100
|
+
---
|
101
|
+
layout: search
|
102
|
+
title: Google Search
|
103
|
+
---
|
104
|
+
```
|
82
105
|
|
83
106
|
* Disqus integration is ready out of the box. Just add the following to
|
84
107
|
your config file:
|
data/_includes/post-meta.html
CHANGED
data/_includes/post-tags.html
CHANGED
@@ -1,9 +1,21 @@
|
|
1
|
+
{% comment %}
|
2
|
+
Check if we have a tags page active before linking to it.
|
3
|
+
{% endcomment %}
|
4
|
+
{% assign tags_page = false %}
|
5
|
+
{% for node in site.pages %}
|
6
|
+
{% if node.layout == "tags" %}
|
7
|
+
{% assign tags_page = node %}
|
8
|
+
{% endif %}
|
9
|
+
{% endfor %}
|
10
|
+
|
1
11
|
<div class="post-tags">
|
2
12
|
{% for tag in include.post.tags %}
|
3
|
-
|
13
|
+
{% if tags_page %}
|
14
|
+
<a href="{{ site.baseurl }}{{ tags_page.url }}#{{ tag | slugify }}">
|
15
|
+
{% else %}<span>{% endif %}
|
4
16
|
<span class="icon">
|
5
17
|
{% include svg/tags.svg %}
|
6
18
|
</span> <span class="tag-name">{{ tag }}</span>
|
7
|
-
</a>
|
19
|
+
{% if tags_page %}</a>{% else %}</span>{% endif %}
|
8
20
|
{% endfor %}
|
9
21
|
</div>
|
@@ -9,18 +9,38 @@
|
|
9
9
|
{% include svg/download.svg %}
|
10
10
|
</a>
|
11
11
|
{% endif %}
|
12
|
+
|
12
13
|
<a class="icon" title="Subscribe" aria-label="Subscribe"
|
13
14
|
href="{{ site.baseurl }}/feed.xml">
|
14
15
|
{% include svg/feed.svg %}
|
15
16
|
</a>
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
17
|
+
|
18
|
+
{% comment %}
|
19
|
+
Check if we have tag or search pages page active before linking to it.
|
20
|
+
{% endcomment %}
|
21
|
+
{% assign tags_page = false %}
|
22
|
+
{% assign search_page = false %}
|
23
|
+
{% for node in site.pages %}
|
24
|
+
{% if node.layout == "tags" %}
|
25
|
+
{% assign tags_page = node %}
|
26
|
+
{% elsif node.layout == "search" %}
|
27
|
+
{% assign search_page = node %}
|
28
|
+
{% endif %}
|
29
|
+
{% endfor %}
|
30
|
+
|
31
|
+
{% if tags_page %}
|
32
|
+
<a class="icon{% if page.url == '/tags' %} active{% endif %}"
|
33
|
+
title="Tags" aria-label="Tags"
|
34
|
+
href="{{ site.baseurl }}{{ tags_page.url }}">
|
35
|
+
{% include svg/tags.svg %}
|
36
|
+
</a>
|
37
|
+
{% endif %}
|
38
|
+
|
39
|
+
{% if search_page %}
|
40
|
+
<a class="icon{% if page.url == '/search' %} active{% endif %}"
|
41
|
+
title="Search" aria-label="Tags"
|
42
|
+
href="{{ site.baseurl }}{{ search_page.url }}">
|
43
|
+
{% include svg/search.svg %}
|
44
|
+
</a>
|
45
|
+
{% endif %}
|
26
46
|
</nav>
|
@@ -1,10 +1,9 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
|
-
title: Search
|
4
3
|
---
|
5
4
|
|
6
5
|
<header>
|
7
|
-
<h1 class="page-title"><label for="search-bar">
|
6
|
+
<h1 class="page-title"><label for="search-bar">{{ page.title }}</label></h1>
|
8
7
|
</header>
|
9
8
|
<div class="content">
|
10
9
|
{% include search-form.html %}
|
data/_layouts/tags.html
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-hydeout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Fong
|
@@ -118,6 +118,8 @@ files:
|
|
118
118
|
- _layouts/index.html
|
119
119
|
- _layouts/page.html
|
120
120
|
- _layouts/post.html
|
121
|
+
- _layouts/search.html
|
122
|
+
- _layouts/tags.html
|
121
123
|
- _sass/hydeout.scss
|
122
124
|
- _sass/hydeout/_base.scss
|
123
125
|
- _sass/hydeout/_code.scss
|
@@ -132,8 +134,6 @@ files:
|
|
132
134
|
- _sass/hydeout/_type.scss
|
133
135
|
- _sass/hydeout/_variables.scss
|
134
136
|
- assets/css/main.scss
|
135
|
-
- search.html
|
136
|
-
- tags.html
|
137
137
|
homepage: https://github.com/fongandrew/hydeout
|
138
138
|
licenses:
|
139
139
|
- MIT
|