clean-jekyll-theme 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/default.html +1 -1
- data/_plugins/header_link.rb +19 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e00778ae56588914eb1cb3de747ca1d6ae785b1
|
4
|
+
data.tar.gz: 333625bb2825d4c334650ebeb28779f23779c790
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 356270ecdbecc0972744a7f48bbfc2fe71a25b5b14d23064adbc64dbf7b634113404e8155121b729e32b90b52569c770e9f2a9317fbebcaebbfbae19127d20c6
|
7
|
+
data.tar.gz: ff93a602eba6f45e67aaf250ed45d139f03de8374d83cf64cea8ec8463a0b6667e8e777f0339473f82e5a7b1bf578890b65836ecb928f47766fb62118eb94668
|
data/_layouts/default.html
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
<ul class="list-reset right-align">
|
35
35
|
{% for entry in site.data.navigation %}
|
36
36
|
<li class="inline-block mr1">
|
37
|
-
<a href="{{ entry.url |
|
37
|
+
<a href="{{ entry.url | header_link }}" class="navigation-item">
|
38
38
|
{{ entry.title }}
|
39
39
|
</a>
|
40
40
|
</li>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'uri'
|
2
|
+
|
3
|
+
require 'liquid'
|
4
|
+
|
5
|
+
module Jekyll
|
6
|
+
module HeaderLink
|
7
|
+
def header_link(input)
|
8
|
+
return if input.nil?
|
9
|
+
|
10
|
+
if input =~ /\A#{URI::regexp(['http', 'https'])}\z/
|
11
|
+
input
|
12
|
+
else
|
13
|
+
relative_url(input)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
Liquid::Template.register_filter(Jekyll::HeaderLink)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clean-jekyll-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Siddhant Goel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- _layouts/home.html
|
39
39
|
- _layouts/page.html
|
40
40
|
- _layouts/post.html
|
41
|
+
- _plugins/header_link.rb
|
41
42
|
- assets/css/main.css
|
42
43
|
homepage: https://github.com/siddhantgoel/clean-jekyll-theme
|
43
44
|
licenses:
|