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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c725af138914db5394dfa2025f64b5662e61158
4
- data.tar.gz: 31e5390490407bc413c77954ae9b3c4b494f7002
3
+ metadata.gz: 9e00778ae56588914eb1cb3de747ca1d6ae785b1
4
+ data.tar.gz: 333625bb2825d4c334650ebeb28779f23779c790
5
5
  SHA512:
6
- metadata.gz: 6f671512b613f4e5ccfbb0a0aadb174fd06b63344fee4ed230380c40e8b7d7019c52a4c7305e4f4c463761cf6afde7aa5e5e570b2706ea9aeab55eceff1120af
7
- data.tar.gz: 53fe63cf4ebfa1967c0d6629270a08ba9f590a3cc5c4c30737a4c4b04d63c92035a8f11dc74e790f83fc8d0cd07c2ece1eec08480d76a0cc629afde11ce385f3
6
+ metadata.gz: 356270ecdbecc0972744a7f48bbfc2fe71a25b5b14d23064adbc64dbf7b634113404e8155121b729e32b90b52569c770e9f2a9317fbebcaebbfbae19127d20c6
7
+ data.tar.gz: ff93a602eba6f45e67aaf250ed45d139f03de8374d83cf64cea8ec8463a0b6667e8e777f0339473f82e5a7b1bf578890b65836ecb928f47766fb62118eb94668
@@ -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 | relative_url }}" class="navigation-item">
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.0
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-01-24 00:00:00.000000000 Z
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: