alpha-one 0.2.1 → 0.2.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/_includes/header.html +16 -13
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6b065819f532a35543780cc0fbd702395ae8e8a
4
- data.tar.gz: 4b7c1f8fa5d640114cb75521eff28552d7ba3b50
3
+ metadata.gz: d4ee66b9a359b2d88ef961a8bd27b565bceeb43d
4
+ data.tar.gz: 0b44dd6af17d6b798cc1a11a98d5f9a907cdf945
5
5
  SHA512:
6
- metadata.gz: 867ce6d49ecc8bafa0cada6a7bc85d85edeec402c18c31e5602df1044e68a218db1adc66bc8e21bfb05c6585eea58bdddd710a91051a2fbed7596242c1ce8ab0
7
- data.tar.gz: 2222afb806d47b9729a5418d7c71e7c8696952520ff70c84158dd0613ebc4cc43acc620d251ffd080450b8736ed5f8597447cafc8205c9a5850fbedda0d70b69
6
+ metadata.gz: 7bec059547cb48560340442d05f1d7179216a1df43528afe78c3bd3e642b67256b1ee3c7be04ec17204757d3da5be68be367e7a6f6e38ce873b2860b60d831d6
7
+ data.tar.gz: 07eeae38be2913ff5160302601cd128f5cac0764408cde6d9896716568df3bfb14732b7066a0e408c3ef158d07f09cb475a8bedf525aa677c102c59b241da7cd
data/README.md CHANGED
@@ -25,7 +25,7 @@ Add this line to your Jekyll site's Gemfile:
25
25
  gem "alpha-one"
26
26
  ```
27
27
 
28
- And add this line to your Jekyll site:
28
+ And add this line to your Jekyll site (_config.yml):
29
29
 
30
30
  ```yaml
31
31
  theme: alpha-one
@@ -42,13 +42,16 @@ Or install it yourself as:
42
42
 
43
43
  ## Configuration
44
44
 
45
- The following variable can be set in _config.yml
46
- - title: text shown in the navbar and the footer.
47
- - motto: a maxim shown in the footer, under the title.
48
- - footer (optinal): some text shown at the bottom of the footer
45
+ The following variable can/must be set in _config.yml
46
+ - title: text shown in the navbar and the footer
47
+ - motto: a maxim shown in the footer, under the title
48
+ - footer (optional): some text shown at the bottom of the footer
49
+ - header_link_1_label, header_link_1_href (both optional): used to add links in the header bar
49
50
  - twitter_username
50
51
  - github_username
51
52
  - linkedin_username
53
+ - baseurl (optional): path to the root of your website; useful if it is hosted on a subpath
54
+
52
55
 
53
56
  ## A note on table
54
57
 
@@ -17,13 +17,15 @@
17
17
  <link rel="stylesheet" href='https://fonts.googleapis.com/css?family=Slabo+27px|Titillium+Web|Work+Sans:200,400'>
18
18
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
19
19
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
20
- <link rel="stylesheet" href="{{ "alpha-one.css" | prepend: site.baseurl }}">
20
+ <link rel="stylesheet" href="{{ "alpha-one.css" | relative_url }}">
21
21
 
22
22
  <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
23
23
  <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
24
24
 
25
- <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
26
- <!-- <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}"> -->
25
+ <link rel="canonical" href="{{ page.url | absolute_url }}">
26
+ {% comment %}
27
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | absolute_url }}">
28
+ {% endcomment %}
27
29
  </head>
28
30
 
29
31
  <body>
@@ -36,19 +38,20 @@
36
38
  <span class="icon-bar"></span>
37
39
  <span class="icon-bar"></span>
38
40
  </button>
39
- <a class="navbar-brand" href="{{ site.baseurl }}" >{{ site.title }}</a>
41
+ <a class="navbar-brand" href="{{ site.baseurl }}/" >{{ site.title }}</a>
40
42
  </div>
41
43
  <div class="collapse navbar-collapse" id="navbar-collapse-1">
42
44
  <ul class="nav navbar-nav navbar-right">
43
- <li>
44
- <a href="{{ "posts.html" | prepend: site.baseurl }}" >Posts</a>
45
- </li>
46
- <li>
47
- <a href="">Projects</a>
48
- </li>
49
- <li>
50
- <a href="">About Me</a>
51
- </li>
45
+ {% if site.header_link_1_label.size > 0 %}
46
+ <li>
47
+ <a href="{{ site.header_link_1_href | relative_url }}"> {{ site.header_link_1_label }} </a>
48
+ </li>
49
+ {% endif %}
50
+ {% if site.header_link_2_label.size > 0 %}
51
+ <li>
52
+ <a href="{{ site.header_link_2_href | relative_url }}"> {{ site.header_link_2_label }} </a>
53
+ </li>
54
+ {% endif %}
52
55
  {% comment %}
53
56
  {% if site.linkedin_username.size > 0 %}
54
57
  <li>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alpha-one
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre ROUDIER