bulmatown 1.0.7 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.rubocop.yml +6 -3
- data/.ruby-version +1 -0
- data/CHANGELOG.md +12 -4
- data/README.md +3 -3
- data/bridgetown.automation.rb +19 -12
- data/bulmatown.gemspec +6 -6
- data/components/bulmatown/collection.liquid +12 -12
- data/components/bulmatown/pagination.liquid +0 -15
- data/lib/bulmatown/version.rb +1 -1
- data/package.json +3 -3
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af34172bf4ad147f834209046f8350693cc2b473e36fd6a81ca3de3eab5b8190
|
4
|
+
data.tar.gz: bf007639fa86bf004cd366d3ec80a3c278f4d92cd9a91b7e09e91b0aa40f81e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2deb907734d67a2db8dd4e096fa92842167f8aa6e97a1454e362928b19638e498aa6616532cdba36995460e896d584f43fb7daa20fa9b3ee984793f832159d99
|
7
|
+
data.tar.gz: e3699ee17cba09c07f4d200a8e0255d3be5af28c247fb9dc34392288d333548419236bec3f2ede134af8e4f4343d60794ee85a07c9b7b9573b2ed922003a5fe7
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -4,19 +4,22 @@ inherit_gem:
|
|
4
4
|
rubocop-bridgetown: .rubocop.yml
|
5
5
|
|
6
6
|
AllCops:
|
7
|
-
TargetRubyVersion: 2.
|
8
|
-
Include:
|
9
|
-
- lib/**/*.rb
|
7
|
+
TargetRubyVersion: 2.7
|
10
8
|
|
11
9
|
Exclude:
|
12
10
|
- .gitignore
|
13
11
|
- .rspec
|
14
12
|
- .rubocop.yml
|
15
13
|
|
14
|
+
- Rakefile
|
15
|
+
- bridgetown.automation.rb
|
16
|
+
- "*.gemspec"
|
16
17
|
- Gemfile.lock
|
17
18
|
- CHANGELOG.md
|
18
19
|
- LICENSE.txt
|
19
20
|
- README.md
|
20
21
|
|
22
|
+
- example/**/*
|
21
23
|
- script/**/*
|
22
24
|
- vendor/**/*
|
25
|
+
- spec/**/*
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.7.2
|
data/CHANGELOG.md
CHANGED
@@ -1,14 +1,22 @@
|
|
1
|
-
#
|
1
|
+
# Changelog
|
2
2
|
|
3
|
-
|
3
|
+
## 1.2.3 / 2022-05-21
|
4
|
+
|
5
|
+
* Use import path for Fork Awesome that's compatible with esbuild sass
|
6
|
+
|
7
|
+
## 1.1.0 / 2021-02-01
|
8
|
+
|
9
|
+
* Fix installation now that Liquid components use `.liquid` extension [#4](https://github.com/whitefusionhq/bulmatown/pull/4) ([arca0](https://github.com/arca0))
|
10
|
+
|
11
|
+
## 1.0.7 / 2020-10-19
|
4
12
|
|
5
13
|
* Change layout files to .liquid extension for better compatibility with Bridgetown 0.18 template engine configurations
|
6
14
|
|
7
|
-
|
15
|
+
## 1.0.6 / 2020-10-02
|
8
16
|
|
9
17
|
* Remove red border from error syntax #3
|
10
18
|
* Remove italics from syntax highlighting #2
|
11
19
|
|
12
|
-
|
20
|
+
## 1.0.5 / 2020-06-27
|
13
21
|
|
14
22
|
* Wide release
|
data/README.md
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
|
4
4
|
[Bulma](https://bulma.io) is a clean, modern CSS framework for rapid prototyping of content-focused websites. Use this theme to start using Bulma in your new [Bridgetown](https://www.bridgetownrb.com) site quickly, while preserving _all_ of the advanced customization possibilities as if you configured Bulma manually.
|
5
5
|
|
6
|
-
**[LIVE DEMO](https://bulmatown.
|
6
|
+
**[LIVE DEMO](https://bulmatown.onrender.com)**
|
7
7
|
|
8
8
|
![Bulmatown Example](https://res.cloudinary.com/mariposta/image/upload/c_thumb,w_900/v1593195961/bulmatown/bulmatown-example.jpg)
|
9
9
|
|
10
10
|
## Installation
|
11
11
|
|
12
|
-
Bulmatown requires Bridgetown v0.15 or later
|
12
|
+
Bulmatown requires Bridgetown v1.0 or later (for >= 1.2), or v0.15 or later (~1.1)
|
13
13
|
|
14
14
|
To install Bulmatown while creating a new Bridgetown site:
|
15
15
|
|
@@ -114,4 +114,4 @@ Then you can go to the `bulmatown` folder in your layouts or components folders
|
|
114
114
|
3. Create your feature branch (`git checkout -b my-new-feature`)
|
115
115
|
4. Commit your changes (`git commit -am 'Add some feature'`)
|
116
116
|
5. Push to the branch (`git push origin my-new-feature`)
|
117
|
-
6. Create a new Pull Request
|
117
|
+
6. Create a new Pull Request
|
data/bridgetown.automation.rb
CHANGED
@@ -4,11 +4,7 @@
|
|
4
4
|
add_bridgetown_plugin "bulmatown"
|
5
5
|
add_bridgetown_plugin "bridgetown-quick-search"
|
6
6
|
|
7
|
-
|
8
|
-
#add_yarn_for_gem "bulmatown"
|
9
|
-
|
10
|
-
gem_version = (`bundle info bulmatown`).match(/\*.*\((.*?)\)/)[1]
|
11
|
-
run "yarn add bulmatown@#{gem_version}"
|
7
|
+
add_yarn_for_gem "bulmatown"
|
12
8
|
|
13
9
|
require 'fileutils'
|
14
10
|
require 'shellwords'
|
@@ -60,17 +56,28 @@ def add_template_repository_to_source_path
|
|
60
56
|
end
|
61
57
|
end
|
62
58
|
|
59
|
+
def copy_if_exists(file)
|
60
|
+
target = File.exist?("src/_layouts/#{file}.html") ? "src/_layouts/#{file}.html" : "src/_layouts/#{file}.liquid"
|
61
|
+
copy_file "example/src/_layouts/#{file}.liquid", target
|
62
|
+
end
|
63
|
+
|
64
|
+
def substitute_in_default_if_exists
|
65
|
+
if File.exists?("src/_layouts/default.liquid")
|
66
|
+
gsub_file "src/_layouts/default.liquid", '{% render "footer", ', '{% render "footer", url: site.url, '
|
67
|
+
elsif File.exists?("src/_layouts/default.html")
|
68
|
+
gsub_file "src/_layouts/default.html", '{% render "footer", ', '{% render "footer", url: site.url, '
|
69
|
+
else
|
70
|
+
say_status :bulmatown, "Could not find the default template. You will have to add the url parameter to the render command manually"
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
63
74
|
if yes? "The Bulmatown installer can update styles, layouts, and page templates to use the new theme. You'll have the option to type 'a' to overwrite all existing files or 'd' to inspect each change. Would you like to proceed? (Y/N)"
|
64
75
|
add_template_repository_to_source_path
|
65
76
|
|
66
77
|
create_file "frontend/styles/index.scss", '@import "~bulmatown/frontend/styles"'
|
67
|
-
|
68
|
-
copy_file "example/src/_layouts/home.html", "src/_layouts/home.html"
|
69
|
-
copy_file "example/src/_layouts/page.html", "src/_layouts/page.html"
|
70
|
-
copy_file "example/src/_layouts/post.html", "src/_layouts/post.html"
|
71
|
-
|
72
78
|
|
73
|
-
|
79
|
+
["home", "page", "post"].each { |f| copy_if_exists(f) }
|
80
|
+
substitute_in_default_if_exists
|
74
81
|
|
75
82
|
copy_file "example/src/index.md", "src/index.md"
|
76
83
|
copy_file "example/src/posts.md", "src/posts.md"
|
@@ -94,4 +101,4 @@ if twitter != "" && twitter != "no"
|
|
94
101
|
end
|
95
102
|
end
|
96
103
|
|
97
|
-
say_status :bulmatown, "Theme installation complete! Enjoy your fresh new design :)"
|
104
|
+
say_status :bulmatown, "Theme installation complete! Enjoy your fresh new design :)"
|
data/bulmatown.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "bulmatown"
|
7
7
|
spec.version = Bulmatown::VERSION
|
8
8
|
spec.author = "Jared White"
|
9
|
-
spec.email = "jared@whitefusion.
|
9
|
+
spec.email = "jared@whitefusion.studio"
|
10
10
|
spec.summary = "A Bulma CSS starter theme for Bridgetown"
|
11
11
|
spec.homepage = "https://github.com/whitefusionhq/bulmatown"
|
12
12
|
spec.license = "MIT"
|
@@ -16,14 +16,14 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
spec.metadata = { "yarn-add" => "bulmatown@#{Bulmatown::VERSION}" }
|
18
18
|
|
19
|
-
spec.required_ruby_version = ">= 2.
|
19
|
+
spec.required_ruby_version = ">= 2.7.0"
|
20
20
|
|
21
|
-
spec.add_dependency "bridgetown", ">= 0.
|
22
|
-
spec.add_dependency "bridgetown-quick-search", "~> 1.
|
21
|
+
spec.add_dependency "bridgetown", ">= 1.0.0.alpha10", "< 2.0"
|
22
|
+
spec.add_dependency "bridgetown-quick-search", "~> 1.1"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "nokogiri", "~> 1.6"
|
26
|
-
spec.add_development_dependency "rake", "
|
26
|
+
spec.add_development_dependency "rake", ">= 13.0"
|
27
27
|
spec.add_development_dependency "rspec", "~> 3.0"
|
28
|
-
spec.add_development_dependency "rubocop-bridgetown", "~> 0.
|
28
|
+
spec.add_development_dependency "rubocop-bridgetown", "~> 0.3"
|
29
29
|
end
|
@@ -1,34 +1,34 @@
|
|
1
1
|
<div class="columns is-multiline">
|
2
|
-
{% for
|
2
|
+
{% for resource in collection %}
|
3
3
|
{%- assign imagesource = metadata.bulmatown_theme.image_sizes.embed | default: "image" %}
|
4
4
|
<div class="column is-full-mobile is-full-tablet is-half-desktop">
|
5
5
|
<div class="box document-entry">
|
6
|
-
{% if
|
6
|
+
{% if resource.image %}
|
7
7
|
<figure class="image is-5by3">
|
8
|
-
<a href="{{
|
9
|
-
<img src="{{
|
8
|
+
<a href="{{ resource.relative_url }}">
|
9
|
+
<img src="{{ resource[imagesource] }}" />
|
10
10
|
</a>
|
11
11
|
</figure>
|
12
12
|
{% endif %}
|
13
13
|
|
14
14
|
<div class="content">
|
15
15
|
<h3>
|
16
|
-
<a class="is-decorationless" href="{{
|
17
|
-
{{
|
16
|
+
<a class="is-decorationless" href="{{ resource.relative_url }}">
|
17
|
+
{{ resource.title | smartify }}
|
18
18
|
</a>
|
19
19
|
</h3>
|
20
20
|
|
21
|
-
{% if
|
22
|
-
{% assign excerpt =
|
23
|
-
{% elsif
|
24
|
-
{% assign excerpt =
|
21
|
+
{% if resource.subtitle and resource.subtitle != "" %}
|
22
|
+
{% assign excerpt = resource.subtitle | smartify | prepend: "<p>" | append: "</p>" %}
|
23
|
+
{% elsif resource.description and resource.description != "" %}
|
24
|
+
{% assign excerpt = resource.description | smartify | prepend: "<p>" | append: "</p>" %}
|
25
25
|
{% else %}
|
26
|
-
{% assign excerpt =
|
26
|
+
{% assign excerpt = resource.excerpt %}
|
27
27
|
{% endif %}
|
28
28
|
{{ excerpt }}
|
29
29
|
|
30
30
|
<p class="mt-5">
|
31
|
-
{% render "bulmatown/button", type: "primary", label: "Continue Reading", link:
|
31
|
+
{% render "bulmatown/button", type: "primary", label: "Continue Reading", link: resource.relative_url, icon: "file-text" %}
|
32
32
|
</p>
|
33
33
|
</div>
|
34
34
|
</div>
|
@@ -1,18 +1,3 @@
|
|
1
|
-
---
|
2
|
-
name: Pagination
|
3
|
-
description: Display previous page and/or next page buttons to navigate through paginated pages.
|
4
|
-
variables:
|
5
|
-
paginator:
|
6
|
-
- object
|
7
|
-
- The Bridgetown Paginator object ([see documentation here](https://www.bridgetownrb.com/docs/content/pagination/))
|
8
|
-
mocks:
|
9
|
-
paginator:
|
10
|
-
total_pages: 3
|
11
|
-
previous_page: true
|
12
|
-
previous_page_path: "#previous"
|
13
|
-
next_page: true
|
14
|
-
next_page_path: "#next"
|
15
|
-
---
|
16
1
|
{% if paginator.total_pages > 1 %}
|
17
2
|
<ul class="pagination mt-6">
|
18
3
|
{% if paginator.previous_page %}
|
data/lib/bulmatown/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "bulmatown",
|
3
3
|
"description": "A Bulma CSS starter theme for Bridgetown",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.2.3",
|
5
5
|
"main": "frontend/javascript/index.js",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
8
8
|
"url": "https://github.com/whitefusiohq/bulmatown.git"
|
9
9
|
},
|
10
|
-
"author": "Jared White <jared@whitefusion.
|
10
|
+
"author": "Jared White <jared@whitefusion.studio>",
|
11
11
|
"homepage": "https://www.bridgetownrb.com",
|
12
12
|
"license": "MIT",
|
13
13
|
"private": false,
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"frontend"
|
17
17
|
],
|
18
18
|
"dependencies": {
|
19
|
-
"bridgetown-quick-search": "^1.
|
19
|
+
"bridgetown-quick-search": "^1.1.3",
|
20
20
|
"bulma": "^0.9",
|
21
21
|
"fork-awesome": "^1.1.7"
|
22
22
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulmatown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared White
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.0.0.alpha10
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '2.0'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 1.0.0.alpha10
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '2.0'
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.1'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.1'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,16 +76,16 @@ dependencies:
|
|
76
76
|
name: rake
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '13.0'
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '13.0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rspec
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,16 +106,16 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '0.
|
109
|
+
version: '0.3'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
113
113
|
requirements:
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
|
-
version: '0.
|
116
|
+
version: '0.3'
|
117
117
|
description:
|
118
|
-
email: jared@whitefusion.
|
118
|
+
email: jared@whitefusion.studio
|
119
119
|
executables: []
|
120
120
|
extensions: []
|
121
121
|
extra_rdoc_files: []
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- ".gitignore"
|
124
124
|
- ".rspec"
|
125
125
|
- ".rubocop.yml"
|
126
|
+
- ".ruby-version"
|
126
127
|
- CHANGELOG.md
|
127
128
|
- Gemfile
|
128
129
|
- LICENSE.txt
|
@@ -150,7 +151,7 @@ homepage: https://github.com/whitefusionhq/bulmatown
|
|
150
151
|
licenses:
|
151
152
|
- MIT
|
152
153
|
metadata:
|
153
|
-
yarn-add: bulmatown@1.
|
154
|
+
yarn-add: bulmatown@1.2.3
|
154
155
|
post_install_message:
|
155
156
|
rdoc_options: []
|
156
157
|
require_paths:
|
@@ -159,14 +160,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
160
|
requirements:
|
160
161
|
- - ">="
|
161
162
|
- !ruby/object:Gem::Version
|
162
|
-
version: 2.
|
163
|
+
version: 2.7.0
|
163
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
165
|
requirements:
|
165
166
|
- - ">="
|
166
167
|
- !ruby/object:Gem::Version
|
167
168
|
version: '0'
|
168
169
|
requirements: []
|
169
|
-
rubygems_version: 3.
|
170
|
+
rubygems_version: 3.1.4
|
170
171
|
signing_key:
|
171
172
|
specification_version: 4
|
172
173
|
summary: A Bulma CSS starter theme for Bridgetown
|