yab 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/_includes/sidebar.html +13 -4
- data/_includes/utilities/atom.xml +22 -0
- data/_includes/utilities/rss.xml +21 -0
- data/_includes/utilities/sitemap.txt +4 -0
- data/_sass/yab.scss +17 -8
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c18a5926b7d1cf3f07fc8971244e29d9346a9573
|
4
|
+
data.tar.gz: 74ae9e98447db76176b8bf7962296571a39d49b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f780c2fb95d10b648faaa3156bca4f056ce8b32a253093c2ebdcaf35db9cd8e3e1fa6515d5dccf2182ffe99a5134d10d69401ceffcecaea9451fd32bf8807a
|
7
|
+
data.tar.gz: dff31cd3fe7c88da7108f22dfdf047a427da3a55ae9bffe924d194d78b998daa779d8912a1322acafb846a7e89bee869fb1fa1c4696a60684ad8df52d5eeeb1f
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# Yab
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/yab.svg)](https://rubygems.org/gems/yab)
|
4
|
+
|
5
|
+
Yab is Yet Another (Jekyll) Bootstrap theme. Its style is similar to Jekyll Bootstrap.
|
6
|
+
In fact, Jekyll Bootstrap isn't compatible with latest Jekyll, so I make this theme.
|
5
7
|
|
6
8
|
## Installation
|
7
9
|
|
@@ -10,7 +12,7 @@ Add this line to your Jekyll site's Gemfile:
|
|
10
12
|
```ruby
|
11
13
|
gem "yab"
|
12
14
|
gem "jekyll-bootstrap-sass", "~> 0.1.0"
|
13
|
-
gem "bootstrap-sass", "~> 3.3
|
15
|
+
gem "bootstrap-sass", "~> 3.3"
|
14
16
|
```
|
15
17
|
|
16
18
|
And add this line to your Jekyll site's `_config.yml`:
|
@@ -66,6 +68,11 @@ To enable Google Anaytics, add the following lines to your Jekyll site:
|
|
66
68
|
|
67
69
|
Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
|
68
70
|
|
71
|
+
## Coming features
|
72
|
+
|
73
|
+
* Posts pagination
|
74
|
+
* **Internationalization (i18n) support**
|
75
|
+
|
69
76
|
## Contributing
|
70
77
|
|
71
78
|
Bug reports and pull requests are welcome on GitHub at https://github.com/techotaku/yab.
|
data/_includes/sidebar.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{% if page.date %}
|
2
2
|
<br />
|
3
3
|
<h4 class="tag_box title">
|
4
|
-
<i class="glyphicon glyphicon glyphicon-calendar"></i><span><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%
|
4
|
+
<i class="glyphicon glyphicon glyphicon-calendar"></i><span><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%B %e, %Y" }}</time></span>
|
5
5
|
</h4>
|
6
6
|
{% endif %}
|
7
7
|
{% if page.author %}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
{% unless categories_list == empty %}
|
14
14
|
<br />
|
15
15
|
<h4 class="tag_box title"><i class="glyphicon glyphicon-folder-open"></i><span>Categories</span></h4>
|
16
|
-
<ul class="tag_box
|
16
|
+
<ul class="tag_box sitebar_outer inline">
|
17
17
|
{% if categories_list.first[0] == nil %}
|
18
18
|
{% for category in categories_list %}
|
19
19
|
<li><a href="/{{ site.baseurl }}categories.html#{{ category }}-ref">{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span> </a></li>
|
@@ -29,7 +29,7 @@
|
|
29
29
|
{% unless tags_list == empty %}
|
30
30
|
<br />
|
31
31
|
<h4 class="tag_box title"><i class="glyphicon glyphicon-tags"></i><span>Tags</span></h4>
|
32
|
-
<ul class="tag_box
|
32
|
+
<ul class="tag_box sitebar_outer inline">
|
33
33
|
{% if tags_list.first[0] == nil %}
|
34
34
|
{% for tag in tags_list %}
|
35
35
|
<li><a href="/{{ site.baseurl }}tags.html#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
|
@@ -42,4 +42,13 @@
|
|
42
42
|
|
43
43
|
</ul>
|
44
44
|
{% endunless %}
|
45
|
-
{% assign tags_list = nil %}
|
45
|
+
{% assign tags_list = nil %}
|
46
|
+
{% unless site.friend_links == empty %}
|
47
|
+
<br />
|
48
|
+
<h4 class="tag_box title"><i class="glyphicon glyphicon-th-list"></i><span>Friend Links</span></h4>
|
49
|
+
<ul class="friend_links sitebar_outer">
|
50
|
+
{% for item in site.friend_links %}
|
51
|
+
<li><a href="{{ item.href }}" target="_blank" title="{{ item.title }}">{{ item.name }}</a></li>
|
52
|
+
{% endfor %}
|
53
|
+
</ul>
|
54
|
+
{% endunless %}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<feed xmlns="http://www.w3.org/2005/Atom">
|
3
|
+
|
4
|
+
<title>{{ site.title | xml_escape }}</title>
|
5
|
+
<link href="{{ site.baseurl | prepend: site.url }}/atom.xml" rel="self" />
|
6
|
+
<link href="{{ site.baseurl | prepend: site.url }}" />
|
7
|
+
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
8
|
+
<id>{{ site.baseurl | prepend: site.url }}</id>
|
9
|
+
<author>
|
10
|
+
<name>{{ site.author | xml_escape }}</name>
|
11
|
+
<email>{{ site.email }}</email>
|
12
|
+
</author>
|
13
|
+
{% for post in site.posts limit:20 %}
|
14
|
+
<entry>
|
15
|
+
<title>{{ post.title | xml_escape }}</title>
|
16
|
+
<link href="{{ post.url | prepend: site.baseurl | prepend: site.url }}"/>
|
17
|
+
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
18
|
+
<id>{{ post.id | prepend: site.baseurl | prepend: site.url }}</id>
|
19
|
+
<content type="html">{{ post.content | xml_escape }}</content>
|
20
|
+
</entry>
|
21
|
+
{% endfor %}
|
22
|
+
</feed>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" ?>
|
2
|
+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
3
|
+
<channel>
|
4
|
+
<title>{{ site.title | xml_escape }}</title>
|
5
|
+
<description>{{ site.title | xml_escape }} - {{ site.author | xml_escape }}</description>
|
6
|
+
<link>{{ site.baseurl | prepend: site.url }}</link>
|
7
|
+
<atom:link href="{{ site.baseurl | prepend: site.url }}/rss.xml" rel="self" type="application/rss+xml" />
|
8
|
+
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
9
|
+
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
|
10
|
+
<ttl>60</ttl>
|
11
|
+
{% for post in site.posts limit:20 %}
|
12
|
+
<item>
|
13
|
+
<title>{{ post.title | xml_escape }}</title>
|
14
|
+
<description>{{ post.content | xml_escape }}</description>
|
15
|
+
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
|
16
|
+
<guid>{{ post.id | prepend: site.baseurl | prepend: site.url }}</guid>
|
17
|
+
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
18
|
+
</item>
|
19
|
+
{% endfor %}
|
20
|
+
</channel>
|
21
|
+
</rss>
|
data/_sass/yab.scss
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
@import "_bootstrap";
|
2
2
|
|
3
3
|
body {
|
4
|
-
font-family: Arial,"Microsoft YaHei",SimSun,sans-serif;
|
5
|
-
|
4
|
+
font-family: Arial,"Microsoft YaHei",SimSun,sans-serif; }
|
5
|
+
|
6
|
+
img {
|
7
|
+
max-width: 100%; }
|
6
8
|
|
7
9
|
.content {
|
8
|
-
padding-left: 16px;
|
9
|
-
|
10
|
+
padding-left: 16px; }
|
11
|
+
|
12
|
+
.sitebar_outer {
|
13
|
+
padding-left: 24px; }
|
10
14
|
|
11
15
|
.tag_box.title span {
|
12
16
|
padding-left: 8px; }
|
@@ -15,9 +19,6 @@ body {
|
|
15
19
|
list-style: none;
|
16
20
|
margin: 0;
|
17
21
|
overflow: hidden; }
|
18
|
-
|
19
|
-
.tag_box.tag_outer {
|
20
|
-
padding-left: 24px; }
|
21
22
|
|
22
23
|
.tag_box li {
|
23
24
|
line-height: 28px; }
|
@@ -47,4 +48,12 @@ body {
|
|
47
48
|
.tag_box a.active {
|
48
49
|
background: #57A957;
|
49
50
|
border: 1px solid #4c964d;
|
50
|
-
color: #FFF; }
|
51
|
+
color: #FFF; }
|
52
|
+
|
53
|
+
.friend_links {
|
54
|
+
list-style: none;
|
55
|
+
margin: 0;
|
56
|
+
overflow: hidden; }
|
57
|
+
|
58
|
+
.friend_links a {
|
59
|
+
text-decoration: none; }
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.3'
|
20
|
-
type: :
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.1.0
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.3
|
48
|
-
type: :
|
47
|
+
version: '3.3'
|
48
|
+
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.3
|
54
|
+
version: '3.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,6 +84,9 @@ files:
|
|
84
84
|
- _includes/pages/categories.html
|
85
85
|
- _includes/pages/tags.html
|
86
86
|
- _includes/sidebar.html
|
87
|
+
- _includes/utilities/atom.xml
|
88
|
+
- _includes/utilities/rss.xml
|
89
|
+
- _includes/utilities/sitemap.txt
|
87
90
|
- _layouts/default.html
|
88
91
|
- _layouts/page.html
|
89
92
|
- _layouts/post.html
|