bulmatown 1.0.7 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bridgetown.automation.rb +18 -7
- data/lib/bulmatown/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6b1bbf9cb02f2f439fe0cd0352ef94e1ce33f4cdd1b4ccff9263c3d73d8cd1e
|
4
|
+
data.tar.gz: 39e10115b969ef3f966c59f41598c2c4237fd502734d4565835a111dc066cddc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad3829f03b11160c3d56d0ae38dd0de9fc88ca724c00453aad703225546a657795c68da6e9952646face44efe53bba97613c9358e93ab2f6052393d68829a396
|
7
|
+
data.tar.gz: ae053fe18c203ba28408dd7b15da402791a99cb049af10689cafdf4fb91500e2f24cc7b177eb6d461b73b3794dffe164d558568281bf93833da2b228af142306
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# master
|
2
2
|
|
3
|
+
# 1.1.0 / 2021-02-01
|
4
|
+
|
5
|
+
* Fix installation now that Liquid components use `.liquid` extension [#4](https://github.com/whitefusionhq/bulmatown/pull/4) ([arca0](https://github.com/arca0))
|
6
|
+
|
3
7
|
# 1.0.7 / 2020-10-19
|
4
8
|
|
5
9
|
* Change layout files to .liquid extension for better compatibility with Bridgetown 0.18 template engine configurations
|
data/bridgetown.automation.rb
CHANGED
@@ -60,17 +60,28 @@ def add_template_repository_to_source_path
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
+
def copy_if_exists(file)
|
64
|
+
target = File.exist?("src/_layouts/#{file}.html") ? "src/_layouts/#{file}.html" : "src/_layouts/#{file}.liquid"
|
65
|
+
copy_file "example/src/_layouts/#{file}.liquid", target
|
66
|
+
end
|
67
|
+
|
68
|
+
def substitute_in_default_if_exists
|
69
|
+
if File.exists?("src/_layouts/default.liquid")
|
70
|
+
gsub_file "src/_layouts/default.liquid", '{% render "footer", ', '{% render "footer", url: site.url, '
|
71
|
+
elsif File.exists?("src/_layouts/default.html")
|
72
|
+
gsub_file "src/_layouts/default.html", '{% render "footer", ', '{% render "footer", url: site.url, '
|
73
|
+
else
|
74
|
+
say_status :bulmatown, "Could not find the default template. You will have to add the url parameter to the render command manually"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
63
78
|
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
79
|
add_template_repository_to_source_path
|
65
80
|
|
66
81
|
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
82
|
|
73
|
-
|
83
|
+
["home", "page", "post"].each { |f| copy_if_exists(f) }
|
84
|
+
substitute_in_default_if_exists
|
74
85
|
|
75
86
|
copy_file "example/src/index.md", "src/index.md"
|
76
87
|
copy_file "example/src/posts.md", "src/posts.md"
|
@@ -94,4 +105,4 @@ if twitter != "" && twitter != "no"
|
|
94
105
|
end
|
95
106
|
end
|
96
107
|
|
97
|
-
say_status :bulmatown, "Theme installation complete! Enjoy your fresh new design :)"
|
108
|
+
say_status :bulmatown, "Theme installation complete! Enjoy your fresh new design :)"
|
data/lib/bulmatown/version.rb
CHANGED
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.0
|
4
|
+
version: 1.1.0
|
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: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|
@@ -150,7 +150,7 @@ homepage: https://github.com/whitefusionhq/bulmatown
|
|
150
150
|
licenses:
|
151
151
|
- MIT
|
152
152
|
metadata:
|
153
|
-
yarn-add: bulmatown@1.0
|
153
|
+
yarn-add: bulmatown@1.1.0
|
154
154
|
post_install_message:
|
155
155
|
rdoc_options: []
|
156
156
|
require_paths:
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
|
-
rubygems_version: 3.
|
169
|
+
rubygems_version: 3.1.4
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: A Bulma CSS starter theme for Bridgetown
|