bunto 2.0.0.pre → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +80 -0
  3. data/README.markdown +15 -19
  4. data/bin/bunto +1 -1
  5. data/lib/bunto.rb +7 -5
  6. data/lib/bunto/cleaner.rb +3 -2
  7. data/lib/bunto/collection.rb +3 -3
  8. data/lib/bunto/commands/clean.rb +10 -12
  9. data/lib/bunto/commands/doctor.rb +1 -1
  10. data/lib/bunto/commands/new.rb +29 -0
  11. data/lib/bunto/commands/serve.rb +17 -15
  12. data/lib/bunto/configuration.rb +4 -3
  13. data/lib/bunto/converter.rb +6 -2
  14. data/lib/bunto/converters/markdown.rb +1 -1
  15. data/lib/bunto/converters/markdown/kramdown_parser.rb +1 -0
  16. data/lib/bunto/convertible.rb +5 -5
  17. data/lib/bunto/deprecator.rb +1 -1
  18. data/lib/bunto/document.rb +11 -4
  19. data/lib/bunto/drops/document_drop.rb +7 -0
  20. data/lib/bunto/entry_filter.rb +6 -2
  21. data/lib/bunto/errors.rb +4 -0
  22. data/lib/bunto/external.rb +1 -1
  23. data/lib/bunto/filters.rb +49 -8
  24. data/lib/bunto/frontmatter_defaults.rb +2 -2
  25. data/lib/bunto/hooks.rb +1 -0
  26. data/lib/bunto/layout.rb +16 -1
  27. data/lib/bunto/mime.types +1 -1
  28. data/lib/bunto/page.rb +1 -0
  29. data/lib/bunto/plugin.rb +1 -1
  30. data/lib/bunto/plugin_manager.rb +4 -4
  31. data/lib/bunto/publisher.rb +4 -4
  32. data/lib/bunto/readers/data_reader.rb +3 -2
  33. data/lib/bunto/readers/layout_reader.rb +19 -3
  34. data/lib/bunto/readers/post_reader.rb +5 -1
  35. data/lib/bunto/regenerator.rb +5 -3
  36. data/lib/bunto/renderer.rb +3 -2
  37. data/lib/bunto/site.rb +47 -17
  38. data/lib/bunto/static_file.rb +5 -1
  39. data/lib/bunto/tags/include.rb +33 -31
  40. data/lib/bunto/tags/link.rb +26 -0
  41. data/lib/bunto/tags/post_url.rb +18 -8
  42. data/lib/bunto/theme.rb +56 -0
  43. data/lib/bunto/utils.rb +3 -2
  44. data/lib/bunto/version.rb +1 -1
  45. data/lib/site_template/_config.yml +8 -2
  46. data/lib/site_template/_includes/footer.html +3 -3
  47. data/lib/site_template/_includes/head.html +2 -2
  48. data/lib/site_template/_includes/header.html +3 -3
  49. data/lib/site_template/_layouts/default.html +2 -2
  50. data/lib/site_template/_layouts/page.html +1 -1
  51. data/lib/site_template/_layouts/post.html +1 -1
  52. data/lib/site_template/_posts/0000-00-00-welcome-to-bunto.markdown.erb +1 -1
  53. data/lib/site_template/_sass/_base.scss +11 -17
  54. data/lib/site_template/about.md +5 -1
  55. data/lib/site_template/index.html +1 -1
  56. metadata +32 -29
@@ -1,3 +1,3 @@
1
1
  module Bunto
2
- VERSION = '2.0.0.pre'
2
+ VERSION = '3.0.0'
3
3
  end
@@ -1,11 +1,17 @@
1
1
  # Welcome to Bunto!
2
2
  #
3
3
  # This config file is meant for settings that affect your whole blog, values
4
- # which you are expected to set up once and rarely need to edit after that.
4
+ # which you are expected to set up once and rarely edit after that. If you find
5
+ # yourself editing these this file very often, consider using Bunto's data files
6
+ # feature for the data you need to update frequently.
5
7
  # For technical reasons, this file is *NOT* reloaded automatically when you use
6
8
  # 'bunto serve'. If you change this file, please restart the server process.
7
9
 
8
10
  # Site settings
11
+ # These are used to personalize your new site. If you look in the HTML files,
12
+ # you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
13
+ # You can create any custom variable you would like, and they will be accessible
14
+ # in the templates via {{ site.myvariable }}.
9
15
  title: Your awesome title
10
16
  email: your-email@domain.com
11
17
  description: > # this means to ignore newlines until "baseurl:"
@@ -13,7 +19,7 @@ description: > # this means to ignore newlines until "baseurl:"
13
19
  line in _config.yml. It will appear in your document head meta (for
14
20
  Google search results) and in your feed.xml site description.
15
21
  baseurl: "" # the subpath of your site, e.g. /blog
16
- url: "http://yourdomain.com" # the base hostname & protocol for your site
22
+ url: "http://example.com" # the base hostname & protocol for your site
17
23
  twitter_username: buntorb
18
24
  github_username: bunto
19
25
 
@@ -2,12 +2,12 @@
2
2
 
3
3
  <div class="wrapper">
4
4
 
5
- <h2 class="footer-heading">{{ site.title }}</h2>
5
+ <h2 class="footer-heading">{{ site.title | escape }}</h2>
6
6
 
7
7
  <div class="footer-col-wrapper">
8
8
  <div class="footer-col footer-col-1">
9
9
  <ul class="contact-list">
10
- <li>{{ site.title }}</li>
10
+ <li>{{ site.title | escape }}</li>
11
11
  <li><a href="mailto:{{ site.email }}">{{ site.email }}</a></li>
12
12
  </ul>
13
13
  </div>
@@ -29,7 +29,7 @@
29
29
  </div>
30
30
 
31
31
  <div class="footer-col footer-col-3">
32
- <p>{{ site.description }}</p>
32
+ <p>{{ site.description | escape }}</p>
33
33
  </div>
34
34
  </div>
35
35
 
@@ -4,9 +4,9 @@
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
5
 
6
6
  <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
- <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
7
+ <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description | escape }}{% endif %}">
8
8
 
9
9
  <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10
10
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11
- <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
11
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
12
12
  </head>
@@ -1,8 +1,8 @@
1
- <header class="site-header">
1
+ <header class="site-header" role="banner">
2
2
 
3
3
  <div class="wrapper">
4
4
 
5
- <a class="site-title" href="{{ site.baseurl }}/">{{ site.title }}</a>
5
+ <a class="site-title" href="{{ site.baseurl }}/">{{ site.title | escape }}</a>
6
6
 
7
7
  <nav class="site-nav">
8
8
  <a href="#" class="menu-icon">
@@ -16,7 +16,7 @@
16
16
  <div class="trigger">
17
17
  {% for my_page in site.pages %}
18
18
  {% if my_page.title %}
19
- <a class="page-link" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a>
19
+ <a class="page-link" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title | escape }}</a>
20
20
  {% endif %}
21
21
  {% endfor %}
22
22
  </div>
@@ -7,11 +7,11 @@
7
7
 
8
8
  {% include header.html %}
9
9
 
10
- <div class="page-content">
10
+ <main class="page-content" aria-label="Content">
11
11
  <div class="wrapper">
12
12
  {{ content }}
13
13
  </div>
14
- </div>
14
+ </main>
15
15
 
16
16
  {% include footer.html %}
17
17
 
@@ -4,7 +4,7 @@ layout: default
4
4
  <article class="post">
5
5
 
6
6
  <header class="post-header">
7
- <h1 class="post-title">{{ page.title }}</h1>
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
8
  </header>
9
9
 
10
10
  <div class="post-content">
@@ -4,7 +4,7 @@ layout: default
4
4
  <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
5
5
 
6
6
  <header class="post-header">
7
- <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
7
+ <h1 class="post-title" itemprop="name headline">{{ page.title | escape }}</h1>
8
8
  <p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
9
9
  </header>
10
10
 
@@ -20,6 +20,6 @@ print_hi('Suriyaa')
20
20
 
21
21
  Check out the [Bunto docs][bunto-docs] for more info on how to get the most out of Bunto. File all bugs/feature requests at [Bunto’s GitHub repo][bunto-gh]. If you have questions, you can ask them on [Bunto Talk][bunto-talk].
22
22
 
23
- [bunto-docs]: http://bunto.github.io/docs/
23
+ [bunto-docs]: http://bunto.github.io/docs/home
24
24
  [bunto-gh]: https://github.com/bunto/bunto
25
25
  [bunto-talk]: https://bunto.github.io/talk/
@@ -177,13 +177,10 @@ pre {
177
177
  /**
178
178
  * Clearfix
179
179
  */
180
- %clearfix {
181
-
182
- &:after {
183
- content: "";
184
- display: table;
185
- clear: both;
186
- }
180
+ %clearfix:after {
181
+ content: "";
182
+ display: table;
183
+ clear: both;
187
184
  }
188
185
 
189
186
 
@@ -191,16 +188,13 @@ pre {
191
188
  /**
192
189
  * Icons
193
190
  */
194
- .icon {
195
-
196
- > svg {
197
- display: inline-block;
198
- width: 16px;
199
- height: 16px;
200
- vertical-align: middle;
191
+ .icon > svg {
192
+ display: inline-block;
193
+ width: 16px;
194
+ height: 16px;
195
+ vertical-align: middle;
201
196
 
202
- path {
203
- fill: $grey-color;
204
- }
197
+ path {
198
+ fill: $grey-color;
205
199
  }
206
200
  }
@@ -4,7 +4,11 @@ title: About
4
4
  permalink: /about/
5
5
  ---
6
6
 
7
- This is the base Bunto theme. You can find out more info about customizing your Bunto theme, as well as basic Bunto usage documentation at [bunto.isc](http://bunto.github.io/)
7
+ This is the base Bunto theme. You can find out more info about customizing your Bunto theme, as well as basic Bunto usage documentation at [buntorb.com](https://bunto.github.io/)
8
+
9
+ You can find the source code for the Bunto new theme at:
10
+ {% include icon-github.html username="SuriyaaKudoIsc" %} /
11
+ [bunto-new](https://github.com/SuriyaaKudoIsc/bunto-new)
8
12
 
9
13
  You can find the source code for Bunto at
10
14
  {% include icon-github.html username="bunto" %} /
@@ -12,7 +12,7 @@ layout: default
12
12
  <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
13
13
 
14
14
  <h2>
15
- <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
15
+ <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title | escape }}</a>
16
16
  </h2>
17
17
  </li>
18
18
  {% endfor %}
metadata CHANGED
@@ -1,128 +1,128 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bunto
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suriyaa Kudo
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-04 00:00:00.000000000 Z
11
+ date: 2016-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: liquid
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: '3.0'
19
- name: liquid
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: kramdown
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - "~>"
31
32
  - !ruby/object:Gem::Version
32
33
  version: '1.3'
33
- name: kramdown
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: mercenary
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
45
  - - "~>"
45
46
  - !ruby/object:Gem::Version
46
47
  version: 0.3.3
47
- name: mercenary
48
- prerelease: false
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.3.3
55
55
  - !ruby/object:Gem::Dependency
56
+ name: safe_yaml
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - "~>"
59
60
  - !ruby/object:Gem::Version
60
61
  version: '1.0'
61
- name: safe_yaml
62
- prerelease: false
63
62
  type: :runtime
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: colorator
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - "~>"
73
74
  - !ruby/object:Gem::Version
74
- version: '0.1'
75
- name: colorator
76
- prerelease: false
75
+ version: '1.0'
77
76
  type: :runtime
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0.1'
82
+ version: '1.0'
83
83
  - !ruby/object:Gem::Dependency
84
+ name: rouge
84
85
  requirement: !ruby/object:Gem::Requirement
85
86
  requirements:
86
87
  - - "~>"
87
88
  - !ruby/object:Gem::Version
88
89
  version: '1.7'
89
- name: rouge
90
- prerelease: false
91
90
  type: :runtime
91
+ prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.7'
97
97
  - !ruby/object:Gem::Dependency
98
+ name: bunto-sass-converter
98
99
  requirement: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - "~>"
101
102
  - !ruby/object:Gem::Version
102
103
  version: '2.0'
103
- name: bunto-sass-converter
104
- prerelease: false
105
104
  type: :runtime
105
+ prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '2.0'
111
111
  - !ruby/object:Gem::Dependency
112
+ name: bunto-watch
112
113
  requirement: !ruby/object:Gem::Requirement
113
114
  requirements:
114
115
  - - "~>"
115
116
  - !ruby/object:Gem::Version
116
117
  version: '1.0'
117
- name: bunto-watch
118
- prerelease: false
119
118
  type: :runtime
119
+ prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '1.0'
125
- description: Bunto is a simple, static site generator.
125
+ description: Bunto is a simple, static site generator & web application framework.
126
126
  email: SuriyaaKudoIsc@users.noreply.github.com
127
127
  executables:
128
128
  - bunto
@@ -131,6 +131,7 @@ extra_rdoc_files:
131
131
  - README.markdown
132
132
  - LICENSE
133
133
  files:
134
+ - ".rubocop.yml"
134
135
  - LICENSE
135
136
  - README.markdown
136
137
  - bin/bunto
@@ -197,7 +198,9 @@ files:
197
198
  - lib/bunto/stevenson.rb
198
199
  - lib/bunto/tags/highlight.rb
199
200
  - lib/bunto/tags/include.rb
201
+ - lib/bunto/tags/link.rb
200
202
  - lib/bunto/tags/post_url.rb
203
+ - lib/bunto/theme.rb
201
204
  - lib/bunto/url.rb
202
205
  - lib/bunto/utils.rb
203
206
  - lib/bunto/utils/ansi.rb
@@ -227,7 +230,7 @@ homepage: https://github.com/bunto/bunto
227
230
  licenses:
228
231
  - MIT
229
232
  metadata: {}
230
- post_install_message:
233
+ post_install_message:
231
234
  rdoc_options:
232
235
  - "--charset=UTF-8"
233
236
  require_paths:
@@ -239,13 +242,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
242
  version: 2.0.0
240
243
  required_rubygems_version: !ruby/object:Gem::Requirement
241
244
  requirements:
242
- - - ">"
245
+ - - ">="
243
246
  - !ruby/object:Gem::Version
244
- version: 1.3.1
247
+ version: '0'
245
248
  requirements: []
246
- rubyforge_project:
247
- rubygems_version: 2.4.8
248
- signing_key:
249
+ rubyforge_project:
250
+ rubygems_version: 2.4.5.1
251
+ signing_key:
249
252
  specification_version: 2
250
- summary: A simple, static site generator.
253
+ summary: A simple, static site generator & web application framework.
251
254
  test_files: []