yab 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -11
- data/_includes/nav.html +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27233d6811f080083e69602d0586f1c50377308a
|
4
|
+
data.tar.gz: 2fe838b18b2c18930017e36ad4a6a5b5a0f46fa0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8eea1350321cf36b1e7b489329bd4cc88167b1ea84f3f040e9b0135dcb8ca79eb0b032a464c3d7af60a304f69d299892bfdd0f2917a3435e2c000a0686c88aa
|
7
|
+
data.tar.gz: 6ce1b81e497893f8647a3080ea058a72ea5d2b8098b5578957e81bbade708885935717d29824f7eb41471b9370347cf374cdef7a06d283efe0dc467a5d8cc5d3
|
data/README.md
CHANGED
@@ -5,6 +5,25 @@
|
|
5
5
|
Yab is Yet Another (Jekyll) Bootstrap theme. Its style is similar to Jekyll Bootstrap.
|
6
6
|
In fact, Jekyll Bootstrap isn't compatible with latest Jekyll, so I make this theme.
|
7
7
|
|
8
|
+
## Features
|
9
|
+
|
10
|
+
### Now (0.3.1)
|
11
|
+
|
12
|
+
* Categories page
|
13
|
+
* Archives page
|
14
|
+
* Tags page
|
15
|
+
* Subtitle (tagline)
|
16
|
+
* Friend links
|
17
|
+
* Google Analytics
|
18
|
+
* Disqus
|
19
|
+
|
20
|
+
### Comming soon
|
21
|
+
|
22
|
+
* **Quickly deploy to GitHub Pages repository (auto-copy)**
|
23
|
+
* More comments services
|
24
|
+
* Posts pagination
|
25
|
+
* Internationalization (i18n) support
|
26
|
+
|
8
27
|
## Installation
|
9
28
|
|
10
29
|
Add this line to your Jekyll site's Gemfile:
|
@@ -13,7 +32,7 @@ Add this line to your Jekyll site's Gemfile:
|
|
13
32
|
gem "yab"
|
14
33
|
```
|
15
34
|
|
16
|
-
And add
|
35
|
+
And add these lines to your Jekyll site's `_config.yml`:
|
17
36
|
|
18
37
|
```yaml
|
19
38
|
theme: yab
|
@@ -42,6 +61,19 @@ At last, create (or update if already exists) the CSS entrypoint at site source
|
|
42
61
|
|
43
62
|
## Usage
|
44
63
|
|
64
|
+
Some tips, make things easier:
|
65
|
+
* `site.url` doesn't end with `/`
|
66
|
+
* Single `/` for `site.baseurl` is NOT recommended, use `` (bland) instead.
|
67
|
+
|
68
|
+
### Enabling feed (via jekyll-feed)
|
69
|
+
|
70
|
+
To enable it, add the following lines to your Jekyll site: (even if you want use default path)
|
71
|
+
|
72
|
+
```yaml
|
73
|
+
feed:
|
74
|
+
path: feed.xml
|
75
|
+
```
|
76
|
+
|
45
77
|
### Enabling comments (via Disqus)
|
46
78
|
|
47
79
|
Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
|
@@ -49,8 +81,8 @@ Optionally, if you have a Disqus account, you can tell Jekyll to use it to show
|
|
49
81
|
To enable it, add the following lines to your Jekyll site:
|
50
82
|
|
51
83
|
```yaml
|
52
|
-
|
53
|
-
|
84
|
+
disqus:
|
85
|
+
shortname: my_disqus_shortname
|
54
86
|
```
|
55
87
|
|
56
88
|
You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
|
@@ -66,16 +98,10 @@ If you don't want to display comments for a particular post you can disable them
|
|
66
98
|
To enable Google Anaytics, add the following lines to your Jekyll site:
|
67
99
|
|
68
100
|
```yaml
|
69
|
-
|
101
|
+
google_analytics: UA-NNNNNNNN-N
|
70
102
|
```
|
71
103
|
|
72
|
-
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
73
|
-
|
74
|
-
## Coming features
|
75
|
-
|
76
|
-
* **Quickly deploy to GitHub Pages repository (auto-copy)**
|
77
|
-
* Posts pagination
|
78
|
-
* Internationalization (i18n) support
|
104
|
+
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
79
105
|
|
80
106
|
## Contributing
|
81
107
|
|
data/_includes/nav.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<nav class="navbar navbar-default">
|
2
2
|
<div class="container-fluid">
|
3
3
|
<div class="navbar-header">
|
4
|
-
<a class="navbar-brand" style="font-size:175%;" href="{{ site.baseurl | prepend:
|
4
|
+
<a class="navbar-brand" style="font-size:175%;" href="{{ site.baseurl | prepend: '/' }}">{{ site.title }}</a>
|
5
5
|
</div>
|
6
6
|
<ul class="nav navbar-nav navbar-right">
|
7
7
|
{% for node in site.pages %}
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Li
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|