jekyll-theme-hydeout 3.1.2 → 3.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa5fa32a94b886339ab2e12f697c9176a14d64cd
4
- data.tar.gz: 7e9471e18ad060e00807c012e417dd7c6a7983ef
3
+ metadata.gz: 2a4d9c7cf8230e5848b3df9ae50eb03036b40a53
4
+ data.tar.gz: ffd6cc0b9cfff69edb40441d679a1283459c0fbb
5
5
  SHA512:
6
- metadata.gz: bc7210b14686ca62fa707cd061899cbfde6eb26d1ac3afcb5a52e7cc0126ffa9a67976328ce4aeccb1b3c08b0ef6856ae4c7f3a25801b96c877ad974079021b8
7
- data.tar.gz: 598b21f4b8a954a622fd04fca27a214efd4cb0b21acb369104af012639e94b077fcd3188bd0c1ff709f44c4a24764bed6ff5685bf28e2d7e1891ac6e1bec6ac5
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.0"` to your Gemfile and run
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 also adds a new tags page (accessible in the sidebar) and a new
73
- "category" layout for dedicated category pages.
72
+ * Hydeout adds a new tags page (accessible in the sidebar). Just create a
73
+ new page with the tags layout:
74
74
 
75
- * Category pages are automatically added to the sidebar. All other pages
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
- * A simple redirect-to-Google search is available. If you want to use
80
- Google Custom Search or Algolia or something with more involved,
81
- override the `search.html`.
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:
@@ -12,7 +12,6 @@
12
12
  {% endcomment %}
13
13
  {% assign category_page = false %}
14
14
  {% for node in site.pages %}
15
- {{ node.category }}
16
15
  {% if node.category == category or node.title == category %}
17
16
  {% assign category_page = node %}
18
17
  {% endif %}
@@ -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
- <a href="{{ site.baseurl }}/tags#{{ tag | slugify }}">
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>&nbsp;<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
- <a class="icon{% if page.url == '/tags' %} active{% endif %}"
17
- title="Tags" aria-label="Tags"
18
- href="{{ site.baseurl }}/tags">
19
- {% include svg/tags.svg %}
20
- </a>
21
- <a class="icon{% if page.url == '/search' %} active{% endif %}"
22
- title="Search" aria-label="Tags"
23
- href="{{ site.baseurl }}/search">
24
- {% include svg/search.svg %}
25
- </a>
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">Search</label></h1>
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 %}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% include tags-list.html %}
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.2
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
data/tags.html DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- layout: page
3
- title: Tags
4
- ---
5
-
6
- {% include tags-list.html %}