bunto 3.2.1 → 3.4.5
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 +4 -4
- data/.rubocop.yml +21 -4
- data/LICENSE +1 -1
- data/README.markdown +20 -25
- data/exe/bunto +1 -1
- data/lib/bunto.rb +10 -4
- data/lib/bunto/collection.rb +11 -4
- data/lib/bunto/commands/build.rb +17 -2
- data/lib/bunto/commands/doctor.rb +1 -1
- data/lib/bunto/commands/new.rb +35 -5
- data/lib/bunto/commands/new_theme.rb +4 -2
- data/lib/bunto/commands/serve.rb +45 -15
- data/lib/bunto/commands/serve/servlet.rb +1 -1
- data/lib/bunto/configuration.rb +9 -7
- data/lib/bunto/converters/markdown/kramdown_parser.rb +2 -2
- data/lib/bunto/converters/markdown/redcarpet_parser.rb +1 -1
- data/lib/bunto/convertible.rb +21 -82
- data/lib/bunto/desktop.ini +1 -1
- data/lib/bunto/document.rb +118 -81
- data/lib/bunto/drops/bunto_drop.rb +1 -1
- data/lib/bunto/drops/static_file_drop.rb +11 -0
- data/lib/bunto/drops/url_drop.rb +5 -0
- data/lib/bunto/entry_filter.rb +9 -10
- data/lib/bunto/excerpt.rb +2 -3
- data/lib/bunto/external.rb +1 -1
- data/lib/bunto/filters.rb +10 -32
- data/lib/bunto/filters/grouping_filters.rb +63 -0
- data/lib/bunto/filters/url_filters.rb +40 -0
- data/lib/bunto/frontmatter_defaults.rb +1 -1
- data/lib/bunto/hooks.rb +9 -9
- data/lib/bunto/log_adapter.rb +1 -1
- data/lib/bunto/page.rb +8 -4
- data/lib/bunto/plugin.rb +1 -1
- data/lib/bunto/reader.rb +2 -1
- data/lib/bunto/readers/data_reader.rb +9 -10
- data/lib/bunto/readers/post_reader.rb +1 -1
- data/lib/bunto/readers/theme_assets_reader.rb +47 -0
- data/lib/bunto/regenerator.rb +1 -1
- data/lib/bunto/related_posts.rb +3 -9
- data/lib/bunto/renderer.rb +26 -6
- data/lib/bunto/site.rb +12 -7
- data/lib/bunto/static_file.rb +20 -9
- data/lib/bunto/tags/highlight.rb +3 -3
- data/lib/bunto/tags/include.rb +9 -5
- data/lib/bunto/tags/link.rb +4 -2
- data/lib/bunto/tags/post_url.rb +4 -2
- data/lib/bunto/theme.rb +8 -4
- data/lib/bunto/theme_builder.rb +2 -2
- data/lib/bunto/url.rb +31 -8
- data/lib/bunto/utils.rb +16 -2
- data/lib/bunto/utils/ansi.rb +1 -1
- data/lib/bunto/utils/exec.rb +25 -0
- data/lib/bunto/utils/platforms.rb +52 -2
- data/lib/bunto/utils/win_tz.rb +73 -0
- data/lib/bunto/version.rb +1 -1
- data/lib/site_template/_config.yml +8 -3
- data/lib/site_template/_posts/0000-00-00-welcome-to-bunto.markdown.erb +4 -4
- data/lib/site_template/about.md +1 -1
- data/lib/site_template/index.md +6 -0
- data/lib/theme_template/LICENSE.txt.erb +1 -1
- data/lib/theme_template/README.md.erb +4 -4
- data/lib/theme_template/gitignore.erb +1 -0
- data/lib/theme_template/theme.gemspec.erb +3 -2
- metadata +55 -40
- data/lib/site_template/css/main.scss +0 -39
- data/lib/site_template/feed.xml +0 -30
- data/lib/site_template/index.html +0 -23
@@ -1,39 +0,0 @@
|
|
1
|
-
---
|
2
|
-
# Only the main Sass file needs front matter (the dashes are enough)
|
3
|
-
---
|
4
|
-
@charset "utf-8";
|
5
|
-
|
6
|
-
// Our variables
|
7
|
-
$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
8
|
-
$base-font-size: 16px;
|
9
|
-
$base-font-weight: 400;
|
10
|
-
$small-font-size: $base-font-size * 0.875;
|
11
|
-
$base-line-height: 1.5;
|
12
|
-
|
13
|
-
$spacing-unit: 30px;
|
14
|
-
|
15
|
-
$text-color: #111;
|
16
|
-
$background-color: #fdfdfd;
|
17
|
-
$brand-color: #2a7ae2;
|
18
|
-
|
19
|
-
$grey-color: #828282;
|
20
|
-
$grey-color-light: lighten($grey-color, 40%);
|
21
|
-
$grey-color-dark: darken($grey-color, 25%);
|
22
|
-
|
23
|
-
// Width of the content area
|
24
|
-
$content-width: 800px;
|
25
|
-
|
26
|
-
$on-palm: 600px;
|
27
|
-
$on-laptop: 800px;
|
28
|
-
|
29
|
-
// Minima also includes a mixin for defining media queries.
|
30
|
-
// Use media queries like this:
|
31
|
-
// @include media-query($on-palm) {
|
32
|
-
// .wrapper {
|
33
|
-
// padding-right: $spacing-unit / 2;
|
34
|
-
// padding-left: $spacing-unit / 2;
|
35
|
-
// }
|
36
|
-
// }
|
37
|
-
|
38
|
-
// Import partials from the `minima` theme.
|
39
|
-
@import "minima";
|
data/lib/site_template/feed.xml
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: null
|
3
|
-
---
|
4
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
5
|
-
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
6
|
-
<channel>
|
7
|
-
<title>{{ site.title | xml_escape }}</title>
|
8
|
-
<description>{{ site.description | xml_escape }}</description>
|
9
|
-
<link>{{ site.url }}{{ site.baseurl }}/</link>
|
10
|
-
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
|
11
|
-
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
|
12
|
-
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
|
13
|
-
<generator>Bunto v{{ bunto.version }}</generator>
|
14
|
-
{% for post in site.posts limit:10 %}
|
15
|
-
<item>
|
16
|
-
<title>{{ post.title | xml_escape }}</title>
|
17
|
-
<description>{{ post.content | xml_escape }}</description>
|
18
|
-
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
|
19
|
-
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
|
20
|
-
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
|
21
|
-
{% for tag in post.tags %}
|
22
|
-
<category>{{ tag | xml_escape }}</category>
|
23
|
-
{% endfor %}
|
24
|
-
{% for cat in post.categories %}
|
25
|
-
<category>{{ cat | xml_escape }}</category>
|
26
|
-
{% endfor %}
|
27
|
-
</item>
|
28
|
-
{% endfor %}
|
29
|
-
</channel>
|
30
|
-
</rss>
|
@@ -1,23 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
<div class="home">
|
6
|
-
|
7
|
-
<h1 class="page-heading">Posts</h1>
|
8
|
-
|
9
|
-
<ul class="post-list">
|
10
|
-
{% for post in site.posts %}
|
11
|
-
<li>
|
12
|
-
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
|
13
|
-
|
14
|
-
<h2>
|
15
|
-
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title | escape }}</a>
|
16
|
-
</h2>
|
17
|
-
</li>
|
18
|
-
{% endfor %}
|
19
|
-
</ul>
|
20
|
-
|
21
|
-
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
|
22
|
-
|
23
|
-
</div>
|