yab 0.3.1 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27233d6811f080083e69602d0586f1c50377308a
4
- data.tar.gz: 2fe838b18b2c18930017e36ad4a6a5b5a0f46fa0
3
+ metadata.gz: 13b5ebd77f5660faea9bbd064feeea69f5b91fe1
4
+ data.tar.gz: ace448056faf89cbc3bd4da6fdf8f7333eb35e0e
5
5
  SHA512:
6
- metadata.gz: f8eea1350321cf36b1e7b489329bd4cc88167b1ea84f3f040e9b0135dcb8ca79eb0b032a464c3d7af60a304f69d299892bfdd0f2917a3435e2c000a0686c88aa
7
- data.tar.gz: 6ce1b81e497893f8647a3080ea058a72ea5d2b8098b5578957e81bbade708885935717d29824f7eb41471b9370347cf374cdef7a06d283efe0dc467a5d8cc5d3
6
+ metadata.gz: f5f0c2c6ffddb2002db7589452c9e86c871ece1ba0bcf9bcdadbf7ad0807ea10e77166fe51d4cc3efacdfae8d3554e99209bf2292ee2a933bf67b6815392425a
7
+ data.tar.gz: b4142f20d48ba6c8f5342418c9641da7b63c46e4eac0d11790d9869c03fc599700b49cb7f7557459ca6c1e21d1fa917c4565e9ae1ad94519e07adceef197d971
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
@@ -1,113 +1,113 @@
1
- # Yab
2
-
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.
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
-
27
- ## Installation
28
-
29
- Add this line to your Jekyll site's Gemfile:
30
-
31
- ```ruby
32
- gem "yab"
33
- ```
34
-
35
- And add these lines to your Jekyll site's `_config.yml`:
36
-
37
- ```yaml
38
- theme: yab
39
-
40
- gems:
41
- - jekyll-sitemap
42
- - jekyll-bootstrap-sass
43
- - jekyll-feed
44
-
45
- bootstrap:
46
- assets: true
47
-
48
- feed:
49
- path: feed.xml
50
- ```
51
-
52
- And then execute:
53
-
54
- $ bundle
55
-
56
- At last, create (or update if already exists) the CSS entrypoint at site source .
57
- - Create a new file `main.scss` at `<your-site>/assets/`
58
- - Add the frontmatter dashes, and
59
- - Add `$icon-font-path: "{{ site.github.url }}/assets/fonts/bootstrap/"; @import "yab";`, to `<your-site>/assets/main.scss`
60
- - Then add your custom CSS.
61
-
62
- ## Usage
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
-
77
- ### Enabling comments (via Disqus)
78
-
79
- Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
80
-
81
- To enable it, add the following lines to your Jekyll site:
82
-
83
- ```yaml
84
- disqus:
85
- shortname: my_disqus_shortname
86
- ```
87
-
88
- You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
89
-
90
- Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
91
-
92
- If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
93
-
94
- --
95
-
96
- ### Enabling Google Analytics
97
-
98
- To enable Google Anaytics, add the following lines to your Jekyll site:
99
-
100
- ```yaml
101
- google_analytics: UA-NNNNNNNN-N
102
- ```
103
-
104
- Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
105
-
106
- ## Contributing
107
-
108
- Bug reports and pull requests are welcome on GitHub at https://github.com/techotaku/yab.
109
-
110
- ## License
111
-
112
- The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
113
-
1
+ # Yab
2
+
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.
7
+
8
+ ## Features
9
+
10
+ ### Now (0.3.2)
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
+
27
+ ## Installation
28
+
29
+ Add this line to your Jekyll site's Gemfile:
30
+
31
+ ```ruby
32
+ gem "yab"
33
+ ```
34
+
35
+ And add these lines to your Jekyll site's `_config.yml`:
36
+
37
+ ```yaml
38
+ theme: yab
39
+
40
+ gems:
41
+ - jekyll-sitemap
42
+ - jekyll-bootstrap-sass
43
+ - jekyll-feed
44
+
45
+ bootstrap:
46
+ assets: true
47
+
48
+ feed:
49
+ path: feed.xml
50
+ ```
51
+
52
+ And then execute:
53
+
54
+ $ bundle
55
+
56
+ At last, create (or update if already exists) the CSS entrypoint at site source .
57
+ - Create a new file `main.scss` at `<your-site>/assets/`
58
+ - Add the frontmatter dashes, and
59
+ - Add `$icon-font-path: "{{ site.github.url }}/assets/fonts/bootstrap/"; @import "yab";`, to `<your-site>/assets/main.scss`
60
+ - Then add your custom CSS.
61
+
62
+ ## Usage
63
+
64
+ Some tips, make things easier:
65
+ * `site.url` doesn't end with `/`
66
+ * Single `/` for `site.baseurl` is NOT recommended, use `` (blank) 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
+
77
+ ### Enabling comments (via Disqus)
78
+
79
+ Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
80
+
81
+ To enable it, add the following lines to your Jekyll site:
82
+
83
+ ```yaml
84
+ disqus:
85
+ shortname: my_disqus_shortname
86
+ ```
87
+
88
+ You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
89
+
90
+ Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
91
+
92
+ If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
93
+
94
+ --
95
+
96
+ ### Enabling Google Analytics
97
+
98
+ To enable Google Anaytics, add the following lines to your Jekyll site:
99
+
100
+ ```yaml
101
+ google_analytics: UA-NNNNNNNN-N
102
+ ```
103
+
104
+ Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
105
+
106
+ ## Contributing
107
+
108
+ Bug reports and pull requests are welcome on GitHub at https://github.com/techotaku/yab.
109
+
110
+ ## License
111
+
112
+ The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
113
+
@@ -1,18 +1,18 @@
1
- {% if page.comments != false and jekyll.environment == "production" %}
2
- {% assign disqus_url = page.url | prepend: site.baseurl | prepend: site.url %}
3
-
4
- <div id="disqus_thread"></div>
5
- <script>
6
- var disqus_config = function () {
7
- this.page.url = '{{ disqus_url }}';
8
- this.page.identifier = '{{ disqus_url }}';
9
- };
10
- (function() {
11
- var d = document, s = d.createElement('script');
12
- s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
13
- s.setAttribute('data-timestamp', +new Date());
14
- (d.head || d.body).appendChild(s);
15
- })();
16
- </script>
17
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
1
+ {% if page.comments != false and jekyll.environment == "production" %}
2
+ {% assign disqus_url = page.url | prepend: site.baseurl | prepend: site.url %}
3
+
4
+ <div id="disqus_thread"></div>
5
+ <script>
6
+ var disqus_config = function () {
7
+ this.page.url = '{{ disqus_url }}';
8
+ this.page.identifier = '{{ disqus_url }}';
9
+ };
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
13
+ s.setAttribute('data-timestamp', +new Date());
14
+ (d.head || d.body).appendChild(s);
15
+ })();
16
+ </script>
17
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
18
18
  {% endif %}
@@ -1,8 +1,8 @@
1
- <hr>
2
- <footer>
3
- <p>&copy; {{ site.time | date: '%Y' }} {{ site.author }},
4
- with help from <a href="https://jekyllrb.com" target="_blank" title="Jekyll • Simple, blog-aware, static sites - Transform your plain text into static websites and blogs.">Jekyll</a>
5
- and <a href="http://getbootstrap.com" target="_blank" title="Bootstrap • The world's most popular mobile-first and responsive front-end framework." >Bootstrap</a>,
6
- using <a href="https://github.com/techotaku/yab" target="_blank" title="Yet Another (Jekyll) Bootstrap theme." >Yab</a> theme by Ian Li.
7
- </p>
1
+ <hr>
2
+ <footer>
3
+ <p>&copy; {{ site.time | date: '%Y' }} {{ site.author }},
4
+ with help from <a href="https://jekyllrb.com" target="_blank" title="Jekyll • Simple, blog-aware, static sites - Transform your plain text into static websites and blogs.">Jekyll</a>
5
+ and <a href="http://getbootstrap.com" target="_blank" title="Bootstrap • The world's most popular mobile-first and responsive front-end framework." >Bootstrap</a>,
6
+ using <a href="https://github.com/techotaku/yab" target="_blank" title="Yet Another (Jekyll) Bootstrap theme." >Yab</a> theme by Ian Li.
7
+ </p>
8
8
  </footer>
@@ -1,8 +1,8 @@
1
- <script>
2
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
- ga('create', '{{ site.google_analytics }}', 'auto');
7
- ga('send', 'pageview');
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
+ ga('create', '{{ site.google_analytics }}', 'auto');
7
+ ga('send', 'pageview');
8
8
  </script>
@@ -1,13 +1,13 @@
1
- <head>
2
- <meta charset="utf-8">
3
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
5
-
6
- <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
- <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8
-
9
- <link rel="stylesheet" href="{{ "/assets/main.css" | prepend: site.baseurl }}">
10
- <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11
- {% if site.feed.path != null %}<link rel="alternate" type="application/atom+xml" title="{{ site.title | escape }}" href="{{ site.feed.path | prepend: '/' | prepend: site.baseurl | prepend: site.url }}">{% endif %}
12
- {% if jekyll.environment == 'production' and site.google_analytics %}{% include google-analytics.html %}{% endif %}
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8
+
9
+ <link rel="stylesheet" href="{{ "/assets/main.css" | prepend: site.baseurl }}">
10
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11
+ {% if site.feed.path != null %}<link rel="alternate" type="application/atom+xml" title="{{ site.title | escape }}" href="{{ site.feed.path | prepend: '/' | prepend: site.baseurl | prepend: site.url }}">{% endif %}
12
+ {% if jekyll.environment == 'production' and site.google_analytics %}{% include google-analytics.html %}{% endif %}
13
13
  </head>
@@ -1,18 +1,18 @@
1
- <nav class="navbar navbar-default">
2
- <div class="container-fluid">
3
- <div class="navbar-header">
4
- <a class="navbar-brand" style="font-size:175%;" href="{{ site.baseurl | prepend: '/' }}">{{ site.title }}</a>
5
- </div>
6
- <ul class="nav navbar-nav navbar-right">
7
- {% for node in site.pages %}
8
- {% if node.title != null and "navigation" == node.group %}
9
- {% if page.url == node.url %}
10
- <li class="active"><a href="{{node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
11
- {% else %}
12
- <li><a href="{{node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
13
- {% endif %}
14
- {% endif %}
15
- {% endfor %}
16
- </ul>
17
- </div>
1
+ <nav class="navbar navbar-default">
2
+ <div class="container-fluid">
3
+ <div class="navbar-header">
4
+ <a class="navbar-brand" style="font-size:175%;" href="{{ site.baseurl | prepend: '/' }}">{{ site.title }}</a>
5
+ </div>
6
+ <ul class="nav navbar-nav navbar-right">
7
+ {% for node in site.pages %}
8
+ {% if node.title != null and "navigation" == node.group %}
9
+ {% if page.url == node.url %}
10
+ <li class="active"><a href="{{node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
11
+ {% else %}
12
+ <li><a href="{{node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
13
+ {% endif %}
14
+ {% endif %}
15
+ {% endfor %}
16
+ </ul>
17
+ </div>
18
18
  </nav>
@@ -1,31 +1,31 @@
1
- {% for post in site.posts %}
2
- {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
3
- {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
4
- {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
5
- {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
6
-
7
- {% if forloop.first %}
8
- <h2>{{this_year}}</h2>
9
- <h3>{{this_month}}</h3>
10
- <ul>
11
- {% endif %}
12
-
13
- <li><span>{{ post.date | date: "%B %e, %Y" }}</span> &raquo; <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
14
-
15
- {% if forloop.last %}
16
- </ul>
17
- {% else %}
18
- {% if this_year != next_year %}
19
- </ul>
20
- <h2>{{next_year}}</h2>
21
- <h3>{{next_month}}</h3>
22
- <ul>
23
- {% else %}
24
- {% if this_month != next_month %}
25
- </ul>
26
- <h3>{{next_month}}</h3>
27
- <ul>
28
- {% endif %}
29
- {% endif %}
30
- {% endif %}
1
+ {% for post in site.posts %}
2
+ {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
3
+ {% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
4
+ {% capture next_year %}{{ post.previous.date | date: "%Y" }}{% endcapture %}
5
+ {% capture next_month %}{{ post.previous.date | date: "%B" }}{% endcapture %}
6
+
7
+ {% if forloop.first %}
8
+ <h2>{{this_year}}</h2>
9
+ <h3>{{this_month}}</h3>
10
+ <ul>
11
+ {% endif %}
12
+
13
+ <li><span>{{ post.date | date: "%B %e, %Y" }}</span> &raquo; <a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></li>
14
+
15
+ {% if forloop.last %}
16
+ </ul>
17
+ {% else %}
18
+ {% if this_year != next_year %}
19
+ </ul>
20
+ <h2>{{next_year}}</h2>
21
+ <h3>{{next_month}}</h3>
22
+ <ul>
23
+ {% else %}
24
+ {% if this_month != next_month %}
25
+ </ul>
26
+ <h3>{{next_month}}</h3>
27
+ <ul>
28
+ {% endif %}
29
+ {% endif %}
30
+ {% endif %}
31
31
  {% endfor %}
@@ -1,16 +1,16 @@
1
- <ul class="tag_box inline" style="padding-left: 0px;">
2
- {% for category in site.categories %}
3
- <li><a href="#{{ category[0] }}-ref">{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span> </a></li>
4
- {% endfor %}
5
- </ul>
6
-
7
- {% for category in site.categories %}
8
- <h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
9
- <ul>
10
- {% for node in category[1] %}
11
- {% if node.title != null %}
12
- <li><a href="{{ node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
13
- {% endif %}
14
- {% endfor %}
15
- </ul>
1
+ <ul class="tag_box inline" style="padding-left: 0px;">
2
+ {% for category in site.categories %}
3
+ <li><a href="#{{ category[0] }}-ref">{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span> </a></li>
4
+ {% endfor %}
5
+ </ul>
6
+
7
+ {% for category in site.categories %}
8
+ <h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
9
+ <ul>
10
+ {% for node in category[1] %}
11
+ {% if node.title != null %}
12
+ <li><a href="{{ node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
13
+ {% endif %}
14
+ {% endfor %}
15
+ </ul>
16
16
  {% endfor %}
@@ -1,16 +1,16 @@
1
- <ul class="tag_box inline" style="padding-left: 0px;">
2
- {% for tag in site.tags %}
3
- <li><a href="#{{ tag[0] }}-ref">{{ tag[0] | join: "/" }} <span>{{ tag[1].size }}</span> </a></li>
4
- {% endfor %}
5
- </ul>
6
-
7
- {% for tag in site.tags %}
8
- <h2 id="{{ tag[0] }}-ref">{{ tag[0] | join: "/" }}</h2>
9
- <ul>
10
- {% for node in tag[1] %}
11
- {% if node.title != null %}
12
- <li><a href="{{ node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
13
- {% endif %}
14
- {% endfor %}
15
- </ul>
1
+ <ul class="tag_box inline" style="padding-left: 0px;">
2
+ {% for tag in site.tags %}
3
+ <li><a href="#{{ tag[0] }}-ref">{{ tag[0] | join: "/" }} <span>{{ tag[1].size }}</span> </a></li>
4
+ {% endfor %}
5
+ </ul>
6
+
7
+ {% for tag in site.tags %}
8
+ <h2 id="{{ tag[0] }}-ref">{{ tag[0] | join: "/" }}</h2>
9
+ <ul>
10
+ {% for node in tag[1] %}
11
+ {% if node.title != null %}
12
+ <li><a href="{{ node.url | prepend: site.baseurl }}">{{node.title}}</a></li>
13
+ {% endif %}
14
+ {% endfor %}
15
+ </ul>
16
16
  {% endfor %}
@@ -1,54 +1,54 @@
1
- {% if page.date %}
2
- <br />
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: "%B %e, %Y" }}</time></span>
5
- </h4>
6
- {% endif %}
7
- {% if page.author %}
8
- <br />
9
- <h4 class="tag_box title">
10
- <i class="glyphicon glyphicon-folder-open"></i><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
11
- </h4>
12
- {% endif %}
13
- {% unless categories_list == empty %}
14
- <br />
15
- <h4 class="tag_box title"><i class="glyphicon glyphicon-folder-open"></i><span>Categories</span></h4>
16
- <ul class="tag_box sitebar_outer inline">
17
- {% if categories_list.first[0] == nil %}
18
- {% for category in categories_list %}
19
- <li><a href="/{{ site.baseurl }}categories.html#{{ category }}-ref">{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span> </a></li>
20
- {% endfor %}
21
- {% else %}
22
- {% for category in categories_list %}
23
- <li><a href="/{{ site.baseurl }}categories.html#{{ category[0] }}-ref">{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span> </a></li>
24
- {% endfor %}
25
- {% endif %}
26
- </ul>
27
- {% endunless %}
28
- {% assign categories_list = nil %}
29
- {% unless tags_list == empty %}
30
- <br />
31
- <h4 class="tag_box title"><i class="glyphicon glyphicon-tags"></i><span>Tags</span></h4>
32
- <ul class="tag_box sitebar_outer inline">
33
- {% if tags_list.first[0] == nil %}
34
- {% for tag in tags_list %}
35
- <li><a href="/{{ site.baseurl }}tags.html#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
36
- {% endfor %}
37
- {% else %}
38
- {% for tag in tags_list %}
39
- <li><a href="/{{ site.baseurl }}tags.html#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
40
- {% endfor %}
41
- {% endif %}
42
-
43
- </ul>
44
- {% endunless %}
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>
1
+ {% if page.date %}
2
+ <br />
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: "%B %e, %Y" }}</time></span>
5
+ </h4>
6
+ {% endif %}
7
+ {% if page.author %}
8
+ <br />
9
+ <h4 class="tag_box title">
10
+ <i class="glyphicon glyphicon-folder-open"></i><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
11
+ </h4>
12
+ {% endif %}
13
+ {% unless categories_list == empty %}
14
+ <br />
15
+ <h4 class="tag_box title"><i class="glyphicon glyphicon-folder-open"></i><span>Categories</span></h4>
16
+ <ul class="tag_box sitebar_outer inline">
17
+ {% if categories_list.first[0] == nil %}
18
+ {% for category in categories_list %}
19
+ <li><a href="/{{ site.baseurl }}categories.html#{{ category }}-ref">{{ category | join: "/" }} <span>{{ site.categories[category].size }}</span> </a></li>
20
+ {% endfor %}
21
+ {% else %}
22
+ {% for category in categories_list %}
23
+ <li><a href="/{{ site.baseurl }}categories.html#{{ category[0] }}-ref">{{ category[0] | join: "/" }} <span>{{ category[1].size }}</span> </a></li>
24
+ {% endfor %}
25
+ {% endif %}
26
+ </ul>
27
+ {% endunless %}
28
+ {% assign categories_list = nil %}
29
+ {% unless tags_list == empty %}
30
+ <br />
31
+ <h4 class="tag_box title"><i class="glyphicon glyphicon-tags"></i><span>Tags</span></h4>
32
+ <ul class="tag_box sitebar_outer inline">
33
+ {% if tags_list.first[0] == nil %}
34
+ {% for tag in tags_list %}
35
+ <li><a href="/{{ site.baseurl }}tags.html#{{ tag }}-ref">{{ tag }} <span>{{ site.tags[tag].size }}</span></a></li>
36
+ {% endfor %}
37
+ {% else %}
38
+ {% for tag in tags_list %}
39
+ <li><a href="/{{ site.baseurl }}tags.html#{{ tag[0] }}-ref">{{ tag[0] }} <span>{{ tag[1].size }}</span></a></li>
40
+ {% endfor %}
41
+ {% endif %}
42
+
43
+ </ul>
44
+ {% endunless %}
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
54
  {% endunless %}
@@ -1,21 +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>
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>
@@ -1,13 +1,13 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
- {% include head.html %}
4
- <body>
5
- <div class="container">
6
- {% include nav.html %}
7
- <div class="content">
8
- {{ content }}
9
- </div>
10
- {% include footer.html %}
11
- </div>
12
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+ {% include head.html %}
4
+ <body>
5
+ <div class="container">
6
+ {% include nav.html %}
7
+ <div class="content">
8
+ {{ content }}
9
+ </div>
10
+ {% include footer.html %}
11
+ </div>
12
+ </body>
13
13
  </html>
@@ -1,19 +1,19 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <article>
6
- <div class="page-header">
7
- <h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% endif %}</h1>
8
- </div>
9
- <div class="row">
10
- <div class="col-md-9">
11
- {{ content }}
12
- </div>
13
- <div class="col-md-3">
14
- {% assign categories_list = site.categories %}
15
- {% assign tags_list = site.tags %}
16
- {% include sidebar.html %}
17
- </div>
18
- </div>
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article>
6
+ <div class="page-header">
7
+ <h1>{{ page.title }} {% if page.tagline %} <small>{{ page.tagline }}</small>{% endif %}</h1>
8
+ </div>
9
+ <div class="row">
10
+ <div class="col-md-9">
11
+ {{ content }}
12
+ </div>
13
+ <div class="col-md-3">
14
+ {% assign categories_list = site.categories %}
15
+ {% assign tags_list = site.tags %}
16
+ {% include sidebar.html %}
17
+ </div>
18
+ </div>
19
19
  </article>
@@ -1,56 +1,56 @@
1
- ---
2
- layout: default
3
- ---
4
-
5
- <article itemscope itemtype="http://schema.org/BlogPosting">
6
- <header class="post-header">
7
- <h1 class="post-title" itemprop="name headline">{{ page.title | escape }} {% if page.tagline %} <br /><small>{{ page.tagline | escape }}</small>{% endif %}</h1>
8
- </header>
9
-
10
-
11
- <div class="row">
12
- <div class="col-md-9">
13
- <div class="post-content" itemprop="articleBody">
14
- {{ content }}
15
- </div>
16
-
17
- <nav aria-label="">
18
- <ul class="pagination">
19
- {% if page.previous %}
20
- <li>
21
- <a href="{{ page.previous.url | prepend: site.baseurl }}" aria-label="" title="{{ page.previous.title | escape }}">
22
- <span aria-hidden="true">&larr; 上一篇</span>
23
- </a>
24
- </li>
25
- {% else %}
26
- <li class="disabled">
27
- <span aria-hidden="true">&larr; 上一篇</span>
28
- </li>
29
- {% endif %}
30
- {% if page.next %}
31
- <li>
32
- <a href="{{ page.next.url | prepend: site.baseurl }}" aria-label="" title="{{ page.next.title | escape }}">
33
- <span aria-hidden="true">下一篇 &rarr;</span>
34
- </a>
35
- </li>
36
- {% else %}
37
- <li class="disabled">
38
- <span aria-hidden="true">下一篇 &rarr;</span>
39
- </li>
40
- {% endif %}
41
- </ul>
42
- </nav>
43
-
44
- <hr>
45
-
46
- {% if site.disqus.shortname %}
47
- {% include disqus_comments.html %}
48
- {% endif %}
49
- </div>
50
- <div class="col-md-3">
51
- {% assign categories_list = page.categories %}
52
- {% assign tags_list = page.tags %}
53
- {% include sidebar.html %}
54
- </div>
55
- </div>
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article itemscope itemtype="http://schema.org/BlogPosting">
6
+ <header class="post-header">
7
+ <h1 class="post-title" itemprop="name headline">{{ page.title | escape }} {% if page.tagline %} <br /><small>{{ page.tagline | escape }}</small>{% endif %}</h1>
8
+ </header>
9
+
10
+
11
+ <div class="row">
12
+ <div class="col-md-9">
13
+ <div class="post-content" itemprop="articleBody">
14
+ {{ content }}
15
+ </div>
16
+
17
+ <nav aria-label="">
18
+ <ul class="pagination">
19
+ {% if page.previous %}
20
+ <li>
21
+ <a href="{{ page.previous.url | prepend: site.baseurl }}" aria-label="" title="{{ page.previous.title | escape }}">
22
+ <span aria-hidden="true">&larr; 上一篇</span>
23
+ </a>
24
+ </li>
25
+ {% else %}
26
+ <li class="disabled">
27
+ <span aria-hidden="true">&larr; 上一篇</span>
28
+ </li>
29
+ {% endif %}
30
+ {% if page.next %}
31
+ <li>
32
+ <a href="{{ page.next.url | prepend: site.baseurl }}" aria-label="" title="{{ page.next.title | escape }}">
33
+ <span aria-hidden="true">下一篇 &rarr;</span>
34
+ </a>
35
+ </li>
36
+ {% else %}
37
+ <li class="disabled">
38
+ <span aria-hidden="true">下一篇 &rarr;</span>
39
+ </li>
40
+ {% endif %}
41
+ </ul>
42
+ </nav>
43
+
44
+ <hr>
45
+
46
+ {% if site.disqus.shortname %}
47
+ {% include disqus_comments.html %}
48
+ {% endif %}
49
+ </div>
50
+ <div class="col-md-3">
51
+ {% assign categories_list = page.categories %}
52
+ {% assign tags_list = page.tags %}
53
+ {% include sidebar.html %}
54
+ </div>
55
+ </div>
56
56
  </article>
@@ -1,56 +1,56 @@
1
- /*!
2
- * Bootstrap v3.3.7 (http://getbootstrap.com)
3
- * Copyright 2011-2016 Twitter, Inc.
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- */
6
-
7
- // Core variables and mixins
8
- @import "bootstrap/variables";
9
- @import "bootstrap/mixins";
10
-
11
- // Reset and dependencies
12
- @import "bootstrap/normalize";
13
- //@import "bootstrap/print";
14
- @import "bootstrap/glyphicons";
15
-
16
- // Core CSS
17
- @import "bootstrap/scaffolding";
18
- @import "bootstrap/type";
19
- @import "bootstrap/code";
20
- @import "bootstrap/grid";
21
- //@import "bootstrap/tables";
22
- @import "bootstrap/forms";
23
- //@import "bootstrap/buttons";
24
-
25
- // Components
26
- //@import "bootstrap/component-animations";
27
- //@import "bootstrap/dropdowns";
28
- //@import "bootstrap/button-groups";
29
- //@import "bootstrap/input-groups";
30
- @import "bootstrap/navs";
31
- @import "bootstrap/navbar";
32
- //@import "bootstrap/breadcrumbs";
33
- @import "bootstrap/pagination";
34
- //@import "bootstrap/pager";
35
- //@import "bootstrap/labels";
36
- //@import "bootstrap/badges";
37
- //@import "bootstrap/jumbotron";
38
- //@import "bootstrap/thumbnails";
39
- //@import "bootstrap/alerts";
40
- //@import "bootstrap/progress-bars";
41
- //@import "bootstrap/media";
42
- //@import "bootstrap/list-group";
43
- //@import "bootstrap/panels";
44
- //@import "bootstrap/responsive-embed";
45
- //@import "bootstrap/wells";
46
- //@import "bootstrap/close";
47
-
48
- // Components w/ JavaScript
49
- // @import "bootstrap/modals";
50
- // @import "bootstrap/tooltip";
51
- // @import "bootstrap/popovers";
52
- // @import "bootstrap/carousel";
53
-
54
- // Utility classes
55
- // @import "bootstrap/utilities";
1
+ /*!
2
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
3
+ * Copyright 2011-2016 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
6
+
7
+ // Core variables and mixins
8
+ @import "bootstrap/variables";
9
+ @import "bootstrap/mixins";
10
+
11
+ // Reset and dependencies
12
+ @import "bootstrap/normalize";
13
+ //@import "bootstrap/print";
14
+ @import "bootstrap/glyphicons";
15
+
16
+ // Core CSS
17
+ @import "bootstrap/scaffolding";
18
+ @import "bootstrap/type";
19
+ @import "bootstrap/code";
20
+ @import "bootstrap/grid";
21
+ @import "bootstrap/tables";
22
+ @import "bootstrap/forms";
23
+ //@import "bootstrap/buttons";
24
+
25
+ // Components
26
+ //@import "bootstrap/component-animations";
27
+ //@import "bootstrap/dropdowns";
28
+ //@import "bootstrap/button-groups";
29
+ //@import "bootstrap/input-groups";
30
+ @import "bootstrap/navs";
31
+ @import "bootstrap/navbar";
32
+ //@import "bootstrap/breadcrumbs";
33
+ @import "bootstrap/pagination";
34
+ //@import "bootstrap/pager";
35
+ //@import "bootstrap/labels";
36
+ //@import "bootstrap/badges";
37
+ //@import "bootstrap/jumbotron";
38
+ //@import "bootstrap/thumbnails";
39
+ //@import "bootstrap/alerts";
40
+ //@import "bootstrap/progress-bars";
41
+ //@import "bootstrap/media";
42
+ //@import "bootstrap/list-group";
43
+ //@import "bootstrap/panels";
44
+ //@import "bootstrap/responsive-embed";
45
+ //@import "bootstrap/wells";
46
+ //@import "bootstrap/close";
47
+
48
+ // Components w/ JavaScript
49
+ // @import "bootstrap/modals";
50
+ // @import "bootstrap/tooltip";
51
+ // @import "bootstrap/popovers";
52
+ // @import "bootstrap/carousel";
53
+
54
+ // Utility classes
55
+ // @import "bootstrap/utilities";
56
56
  // @import "bootstrap/responsive-utilities";
@@ -1,59 +1,59 @@
1
- @import "_bootstrap";
2
-
3
- body {
4
- font-family: Arial,"Microsoft YaHei",SimSun,sans-serif; }
5
-
6
- img {
7
- max-width: 100%; }
8
-
9
- .content {
10
- padding-left: 16px; }
11
-
12
- .sitebar_outer {
13
- padding-left: 24px; }
14
-
15
- .tag_box.title span {
16
- padding-left: 8px; }
17
-
18
- .tag_box {
19
- list-style: none;
20
- margin: 0;
21
- overflow: hidden; }
22
-
23
- .tag_box li {
24
- line-height: 28px; }
25
-
26
- .tag_box li i {
27
- opacity: 0.9; }
28
-
29
- .tag_box.inline li {
30
- float: left; }
31
-
32
- .tag_box a {
33
- padding: 3px 6px;
34
- margin: 2px;
35
- background: #eee;
36
- color: #555;
37
- border-radius: 3px;
38
- text-decoration: none;
39
- border: 1px dashed #cccccc; }
40
-
41
- .tag_box a span {
42
- vertical-align: super;
43
- font-size: 0.8em; }
44
-
45
- .tag_box a:hover {
46
- background-color: #e5e5e5; }
47
-
48
- .tag_box a.active {
49
- background: #57A957;
50
- border: 1px solid #4c964d;
51
- color: #FFF; }
52
-
53
- .friend_links {
54
- list-style: none;
55
- margin: 0;
56
- overflow: hidden; }
57
-
58
- .friend_links a {
1
+ @import "_bootstrap";
2
+
3
+ body {
4
+ font-family: Arial,"Microsoft YaHei",SimSun,sans-serif; }
5
+
6
+ img {
7
+ max-width: 100%; }
8
+
9
+ .content {
10
+ padding-left: 16px; }
11
+
12
+ .sitebar_outer {
13
+ padding-left: 24px; }
14
+
15
+ .tag_box.title span {
16
+ padding-left: 8px; }
17
+
18
+ .tag_box {
19
+ list-style: none;
20
+ margin: 0;
21
+ overflow: hidden; }
22
+
23
+ .tag_box li {
24
+ line-height: 28px; }
25
+
26
+ .tag_box li i {
27
+ opacity: 0.9; }
28
+
29
+ .tag_box.inline li {
30
+ float: left; }
31
+
32
+ .tag_box a {
33
+ padding: 3px 6px;
34
+ margin: 2px;
35
+ background: #eee;
36
+ color: #555;
37
+ border-radius: 3px;
38
+ text-decoration: none;
39
+ border: 1px dashed #cccccc; }
40
+
41
+ .tag_box a span {
42
+ vertical-align: super;
43
+ font-size: 0.8em; }
44
+
45
+ .tag_box a:hover {
46
+ background-color: #e5e5e5; }
47
+
48
+ .tag_box a.active {
49
+ background: #57A957;
50
+ border: 1px solid #4c964d;
51
+ color: #FFF; }
52
+
53
+ .friend_links {
54
+ list-style: none;
55
+ margin: 0;
56
+ overflow: hidden; }
57
+
58
+ .friend_links a {
59
59
  text-decoration: none; }
data/exe/yab CHANGED
@@ -1,22 +1,22 @@
1
- #!/usr/bin/env ruby
2
-
3
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
4
-
5
- require "version"
6
- require "mercenary"
7
-
8
- Mercenary.program(:Yab) do |p|
9
- p.version Yab::VERSION
10
- p.description "Yab is Yet Another (Jekyll) Bootstrap theme."
11
- p.syntax "yab <command>"
12
-
13
- p.command(:deploy) do |c|
14
- c.syntax "deploy"
15
- c.description "[Coming soon] Copy necessary files to Github Pages repository."
16
-
17
- c.action do |_, _|
18
- puts "Coming soon."
19
- end
20
- end
21
-
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
4
+
5
+ require "version"
6
+ require "mercenary"
7
+
8
+ Mercenary.program(:Yab) do |p|
9
+ p.version Yab::VERSION
10
+ p.description "Yab is Yet Another (Jekyll) Bootstrap theme."
11
+ p.syntax "yab <command>"
12
+
13
+ p.command(:deploy) do |c|
14
+ c.syntax "deploy"
15
+ c.description "[Coming soon] Copy necessary files to Github Pages repository."
16
+
17
+ c.action do |_, _|
18
+ puts "Coming soon."
19
+ end
20
+ end
21
+
22
22
  end
@@ -1,3 +1,3 @@
1
- module Yab
2
- VERSION = "0.3.1"
1
+ module Yab
2
+ VERSION = "0.3.2"
3
3
  end
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.1
4
+ version: 0.3.2
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-09 00:00:00.000000000 Z
11
+ date: 2017-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.6.7
158
+ rubygems_version: 2.6.12
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Yet Another (Jekyll) Bootstrap theme.