bulmatown 1.0.2 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -3
- data/README.md +95 -31
- data/bridgetown.automation.rb +81 -13
- data/bulmatown.gemspec +1 -1
- data/components/bulmatown/hero.scss +10 -0
- data/components/bulmatown/navbar.scss +4 -0
- data/layouts/bulmatown/{homepage.html → homepage.liquid} +0 -0
- data/layouts/bulmatown/{page.html → page.liquid} +0 -0
- data/layouts/bulmatown/{post.html → post.liquid} +0 -0
- data/lib/bulmatown.rb +0 -1
- data/lib/bulmatown/version.rb +1 -1
- data/package.json +1 -1
- metadata +6 -42
- data/content/bulmatown/example_page.md +0 -8
- data/content/bulmatown/train-on-rails.jpeg +0 -0
- data/example/.gitignore +0 -35
- data/example/Gemfile +0 -22
- data/example/bridgetown.config.yml +0 -26
- data/example/frontend/fonts/forkawesome-webfont.eot +0 -0
- data/example/frontend/fonts/forkawesome-webfont.svg +0 -2849
- data/example/frontend/fonts/forkawesome-webfont.ttf +0 -0
- data/example/frontend/fonts/forkawesome-webfont.woff +0 -0
- data/example/frontend/fonts/forkawesome-webfont.woff2 +0 -0
- data/example/frontend/javascript/index.js +0 -4
- data/example/frontend/styles/index.scss +0 -5
- data/example/package.json +0 -37
- data/example/plugins/builders/.keep +0 -0
- data/example/plugins/site_builder.rb +0 -4
- data/example/src/404.html +0 -9
- data/example/src/_components/footer.liquid +0 -53
- data/example/src/_components/head.liquid +0 -9
- data/example/src/_components/navbar.liquid +0 -51
- data/example/src/_data/authors.yml +0 -5
- data/example/src/_data/site_metadata.yml +0 -18
- data/example/src/_layouts/default.html +0 -15
- data/example/src/_layouts/home.html +0 -5
- data/example/src/_layouts/page.html +0 -5
- data/example/src/_layouts/post.html +0 -5
- data/example/src/_posts/2020-06-13-this-is-groovy.md +0 -29
- data/example/src/_posts/2020-06-13-welcome-to-bridgetown.md +0 -30
- data/example/src/about.md +0 -11
- data/example/src/favicon.ico +0 -0
- data/example/src/images/jared-white-avatar.jpg +0 -0
- data/example/src/index.md +0 -21
- data/example/src/posts.md +0 -11
- data/example/start.js +0 -17
- data/example/sync.js +0 -35
- data/example/webpack.config.js +0 -78
- data/example/yarn.lock +0 -6129
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fdd94560f3a3ad5345ec3051e9ebef9102668ed9f099f9067bde8620dc2373b
|
4
|
+
data.tar.gz: af96dd52379a062027637d177b5ab2c1f3fdeef3ed02a410171125ad32c25e1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1a9784c62e29052f7d7ec2694cd5ae48ead466a5fedbf312c9be6960bfbc1feebb45c4c854d3f54922c73574c42d052cb29eed22671367f20903376c09d8f5f
|
7
|
+
data.tar.gz: 38436adc38ea4da59894c7f666f87969fe0eb865f584c989d8f0e79acb1c32c23ed81370ef67b1b4bef89b1eed91041baf99e374e06bcb480e1704e2c5e85093
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# master
|
2
2
|
|
3
|
-
|
3
|
+
# 1.0.7 / 2020-10-19
|
4
4
|
|
5
|
-
|
5
|
+
* Change layout files to .liquid extension for better compatibility with Bridgetown 0.18 template engine configurations
|
6
6
|
|
7
|
-
|
7
|
+
# 1.0.6 / 2020-10-02
|
8
|
+
|
9
|
+
* Remove red border from error syntax #3
|
10
|
+
* Remove italics from syntax highlighting #2
|
11
|
+
|
12
|
+
# 1.0.5 / 2020-06-27
|
13
|
+
|
14
|
+
* Wide release
|
data/README.md
CHANGED
@@ -1,53 +1,117 @@
|
|
1
|
-
#
|
1
|
+
# Bulmatown
|
2
|
+
## A Bulma CSS starter theme for Bridgetown.
|
2
3
|
|
3
|
-
|
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.
|
4
5
|
|
5
|
-
|
6
|
+
**[LIVE DEMO](https://bulmatown.vercel.app)**
|
7
|
+
|
8
|
+
![Bulmatown Example](https://res.cloudinary.com/mariposta/image/upload/c_thumb,w_900/v1593195961/bulmatown/bulmatown-example.jpg)
|
6
9
|
|
7
10
|
## Installation
|
8
11
|
|
9
|
-
|
12
|
+
Bulmatown requires Bridgetown v0.15 or later
|
13
|
+
|
14
|
+
To install Bulmatown while creating a new Bridgetown site:
|
15
|
+
|
16
|
+
```sh
|
17
|
+
bridgetown new mysite -a https://github.com/whitefusionhq/bulmatown
|
18
|
+
```
|
19
|
+
|
20
|
+
Or to add it to your existing Bridgetown site:
|
10
21
|
|
11
|
-
```
|
12
|
-
|
22
|
+
```sh
|
23
|
+
bundle exec bridgetown apply https://github.com/whitefusionhq/bulmatown
|
13
24
|
```
|
14
25
|
|
26
|
+
A few other (optional) plugins you might be interested in installing:
|
27
|
+
|
28
|
+
* [SEO Tag](https://github.com/bridgetownrb/bridgetown-seo-tag)
|
29
|
+
* [Atom Feed](https://github.com/bridgetownrb/bridgetown-feed)
|
30
|
+
* Check out [Bridgetown community automations](https://github.com/bridgetownrb/automations) for some extra goodies like PurgeCSS, Swup page transitions, a test suite, and more!
|
31
|
+
|
15
32
|
## Usage
|
16
33
|
|
17
|
-
The
|
34
|
+
The installation process will prompt you to configure your site to use Bulmatown automatically. However, if you decline those changes, you can inspect the [example site](https://github.com/whitefusionhq/bulmatown/tree/master/example) in this repository.
|
18
35
|
|
19
|
-
|
36
|
+
Bulmatown comes with a few color variations out of the box. You can use the `theme_variation` Sass variable to switch the variation. For example:
|
20
37
|
|
21
|
-
|
38
|
+
```scss
|
39
|
+
// frontend/styles/index.scss
|
22
40
|
|
23
|
-
|
41
|
+
$theme_variation: rust;
|
24
42
|
|
25
|
-
|
43
|
+
@import "~bulmatown/frontend/styles"
|
44
|
+
```
|
26
45
|
|
27
|
-
|
28
|
-
* Or run `script/cibuild` to validate with Rubocop and test with rspec together.
|
46
|
+
The available options are:
|
29
47
|
|
30
|
-
|
48
|
+
* `default`
|
49
|
+
* `rust`
|
50
|
+
* `fuchsia`
|
51
|
+
* `fineart`
|
31
52
|
|
32
|
-
|
33
|
-
2. Clone the fork using `git clone` to your local development machine.
|
34
|
-
3. Create your feature branch (`git checkout -b my-new-feature`)
|
35
|
-
4. Commit your changes (`git commit -am 'Add some feature'`)
|
36
|
-
5. Push to the branch (`git push origin my-new-feature`)
|
37
|
-
6. Create a new Pull Request
|
53
|
+
Speaking of Sass variables, you can put all your custom Bulma variables right before the `@import` statement and Bulma will pick up all the changes. You can even override any of the variables defined by Bulmatown out-of-the-box. [Read the Bulma documentation for more information.](https://bulma.io/documentation/)
|
38
54
|
|
39
|
-
|
55
|
+
### Hero Banners and Images
|
40
56
|
|
41
|
-
|
57
|
+
Bulmatown will automatically look for `image` front matter variables in your pages and documents and display those in the hero banners and in the card component for post previews. Check out the [bridgetown-cloudinary](https://github.com/bridgetownrb/bridgetown-cloudinary) plugin for an easy way to add advanced image asset handling to your site.
|
42
58
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
59
|
+
If you wish, you can alter which variable is loaded for the cards and social embeds vs. the hero banners using metadata:
|
60
|
+
|
61
|
+
```yaml
|
62
|
+
# src/_data/site_metadata.yml
|
63
|
+
bulmatown_theme:
|
64
|
+
image_sizes:
|
65
|
+
embed: image
|
66
|
+
hero: image_hero
|
67
|
+
```
|
48
68
|
|
49
|
-
|
50
|
-
|
69
|
+
In addition, for a fun way to add some sparkle to a hero banner with an image background, you can put `rainbow_hero: true` in your front matter to display a nice colorful gradient.
|
70
|
+
|
71
|
+
## Authors
|
72
|
+
|
73
|
+
To show author information at the top of a blog post, add `authors.yml` to your data folder. For example:
|
74
|
+
|
75
|
+
```yaml
|
76
|
+
# src/_data/authors.yml
|
77
|
+
jared:
|
78
|
+
name: Jared White
|
79
|
+
avatar: /images/jared-white-avatar.jpg
|
80
|
+
twitter: jaredcwhite
|
81
|
+
website: https://jaredwhite.com
|
82
|
+
```
|
51
83
|
|
52
|
-
|
53
|
-
|
84
|
+
Then simply add `author: jared` to your post's front matter.
|
85
|
+
|
86
|
+
This will link to an `/authors/<authorname>` URL. You can create a page at that URL manually, or you can auto-generate author archives using a Prototype Page. ([See this example file.](https://github.com/whitefusionhq/bulmatown/blob/master/example/src/authors/author.html))
|
87
|
+
|
88
|
+
## Overriding Layout Templates and Components
|
89
|
+
|
90
|
+
If you ever find yourself needing to override one or more of the layout templates or Liquid components provided by Bulmatown, you can use the `bridgetown plugins cd` command to drill down into the gem and copy files out to your own site. For example:
|
91
|
+
|
92
|
+
```sh
|
93
|
+
# copy the layouts folder:
|
94
|
+
|
95
|
+
bundle exec bridgetown plugins cd Bulmatown/layouts
|
96
|
+
|
97
|
+
cp -r bulmatown $BRIDGETOWN_SITE/src/_layouts
|
98
|
+
exit
|
99
|
+
|
100
|
+
# copy the components folder:
|
101
|
+
|
102
|
+
bundle exec bridgetown plugins cd Bulmatown/components
|
103
|
+
|
104
|
+
cp -r bulmatown $BRIDGETOWN_SITE/src/_components
|
105
|
+
exit
|
106
|
+
```
|
107
|
+
|
108
|
+
Then you can go to the `bulmatown` folder in your layouts or components folders and make the changes from there. Or instead of wholesale copying over `bulmatown` entirely, you can pick and choose which files you want to copy.
|
109
|
+
|
110
|
+
## Contributing
|
111
|
+
|
112
|
+
1. Fork it (https://github.com/whitefusionhq/bulmatown/fork)
|
113
|
+
2. Clone the fork using `git clone` to your local development machine.
|
114
|
+
3. Create your feature branch (`git checkout -b my-new-feature`)
|
115
|
+
4. Commit your changes (`git commit -am 'Add some feature'`)
|
116
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
117
|
+
6. Create a new Pull Request
|
data/bridgetown.automation.rb
CHANGED
@@ -1,8 +1,17 @@
|
|
1
|
+
# Thanks to https://github.com/ParamagicDev for a bunch of the smarts in this
|
2
|
+
# automation :)
|
3
|
+
|
1
4
|
add_bridgetown_plugin "bulmatown"
|
2
5
|
add_bridgetown_plugin "bridgetown-quick-search"
|
3
|
-
|
6
|
+
|
7
|
+
# 0.15 bug! :( can't use this:
|
8
|
+
#add_yarn_for_gem "bulmatown"
|
9
|
+
|
10
|
+
gem_version = (`bundle info bulmatown`).match(/\*.*\((.*?)\)/)[1]
|
11
|
+
run "yarn add bulmatown@#{gem_version}"
|
4
12
|
|
5
13
|
require 'fileutils'
|
14
|
+
require 'shellwords'
|
6
15
|
|
7
16
|
unless Dir.exist? "frontend/fonts"
|
8
17
|
FileUtils.mkdir_p "frontend/fonts"
|
@@ -12,18 +21,77 @@ run "cp node_modules/fork-awesome/fonts/* frontend/fonts"
|
|
12
21
|
|
13
22
|
javascript_import 'import Bulmatown from "bulmatown"'
|
14
23
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
+
# *** Set up remote repo pull
|
25
|
+
|
26
|
+
# Dynamically determined due to having to load from the tempdir
|
27
|
+
@current_dir = File.expand_path(__dir__)
|
28
|
+
|
29
|
+
# If its a remote file, the branch is appended to the end, so go up a level
|
30
|
+
ROOT_PATH = if __FILE__ =~ %r{\Ahttps?://}
|
31
|
+
File.expand_path('../', __dir__)
|
32
|
+
else
|
33
|
+
File.expand_path(__dir__)
|
34
|
+
end
|
35
|
+
|
36
|
+
DIR_NAME = File.basename(ROOT_PATH)
|
37
|
+
|
38
|
+
# DIR_NAME = 'bulmtatown'
|
39
|
+
GITHUB_PATH = "https://github.com/whitefusionhq/#{DIR_NAME}.git"
|
40
|
+
|
41
|
+
# Copied from: https://github.com/mattbrictson/rails-template
|
42
|
+
# Add this template directory to source_paths so that Thor actions like
|
43
|
+
# copy_file and template resolve against our source files. If this file was
|
44
|
+
# invoked remotely via HTTP, that means the files are not present locally.
|
45
|
+
# In that case, use `git clone` to download them to a local temporary dir.
|
46
|
+
def add_template_repository_to_source_path
|
47
|
+
if __FILE__ =~ %r{\Ahttps?://}
|
48
|
+
require 'tmpdir'
|
49
|
+
|
50
|
+
source_paths.unshift(tempdir = Dir.mktmpdir(DIR_NAME + '-'))
|
51
|
+
at_exit { FileUtils.remove_entry(tempdir) }
|
52
|
+
run("git clone --quiet #{GITHUB_PATH.shellescape} #{tempdir.shellescape}")
|
53
|
+
|
54
|
+
if (branch = __FILE__[%r{#{DIR_NAME}/(.+)/bridgetown.automation.rb}, 1])
|
55
|
+
Dir.chdir(tempdir) { system("git checkout #{branch}") }
|
56
|
+
@current_dir = File.expand_path(tempdir)
|
57
|
+
end
|
58
|
+
else
|
59
|
+
source_paths.unshift(DIR_NAME)
|
24
60
|
end
|
25
|
-
|
26
|
-
|
27
|
-
|
61
|
+
end
|
62
|
+
|
63
|
+
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
|
+
add_template_repository_to_source_path
|
28
65
|
|
66
|
+
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
|
+
|
73
|
+
gsub_file "src/_layouts/default.html", '{% render "footer", ', '{% render "footer", url: site.url, '
|
74
|
+
|
75
|
+
copy_file "example/src/index.md", "src/index.md"
|
76
|
+
copy_file "example/src/posts.md", "src/posts.md"
|
77
|
+
copy_file "example/src/404.html", "src/404.html"
|
78
|
+
|
79
|
+
copy_file "example/src/_components/navbar.liquid", "src/_components/navbar.liquid"
|
80
|
+
copy_file "example/src/_components/footer.liquid", "src/_components/footer.liquid"
|
81
|
+
|
82
|
+
inject_into_file "bridgetown.config.yml", "pagination:\n enabled: true\n", after: "permalink: pretty\n"
|
29
83
|
end
|
84
|
+
|
85
|
+
twitter = ask "Do you have a Twitter handle? If so, enter it here, otherwise type 'no'"
|
86
|
+
|
87
|
+
if twitter != "" && twitter != "no"
|
88
|
+
append_to_file "src/_data/site_metadata.yml" do
|
89
|
+
<<~YAML
|
90
|
+
|
91
|
+
twitter: #{twitter}
|
92
|
+
|
93
|
+
YAML
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
say_status :bulmatown, "Theme installation complete! Enjoy your fresh new design :)"
|
data/bulmatown.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.homepage = "https://github.com/whitefusionhq/bulmatown"
|
12
12
|
spec.license = "MIT"
|
13
13
|
|
14
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features|frontend)/!) }
|
14
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r!^(test|script|spec|features|frontend|example)/!) }
|
15
15
|
spec.test_files = spec.files.grep(%r!^spec/!)
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
spec.metadata = { "yarn-add" => "bulmatown@#{Bulmatown::VERSION}" }
|
@@ -6,6 +6,7 @@ $gradient-bottom-right: transparentize(lighten(saturate(adjust-hue($dark, 10deg)
|
|
6
6
|
.hero {
|
7
7
|
background-size: cover;
|
8
8
|
background-position: center center;
|
9
|
+
overflow: hidden;
|
9
10
|
--overlay-center: #{$center};
|
10
11
|
--overlay-top-left: #{$gradient-top-left};
|
11
12
|
--overlay-bottom-right: #{$gradient-bottom-right};
|
@@ -21,6 +22,15 @@ $gradient-bottom-right: transparentize(lighten(saturate(adjust-hue($dark, 10deg)
|
|
21
22
|
background-image: linear-gradient(141deg, var(--overlay-top-left) 0%, var(--overlay-center) 65%, var(--overlay-bottom-right) 100%);
|
22
23
|
}
|
23
24
|
|
25
|
+
.container.is-fluid {
|
26
|
+
@include mobile {
|
27
|
+
margin-left: 0;
|
28
|
+
margin-right: 0;
|
29
|
+
padding-left: 0;
|
30
|
+
padding-right: 0;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
24
34
|
.title {
|
25
35
|
text-shadow: 0px 2px 3px transparentize($black, 0.5);
|
26
36
|
}
|
File without changes
|
File without changes
|
File without changes
|
data/lib/bulmatown.rb
CHANGED
data/lib/bulmatown/version.rb
CHANGED
data/package.json
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.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared White
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|
@@ -139,45 +139,9 @@ files:
|
|
139
139
|
- components/bulmatown/navbar.liquid
|
140
140
|
- components/bulmatown/navbar.scss
|
141
141
|
- components/bulmatown/pagination.liquid
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
- example/Gemfile
|
146
|
-
- example/bridgetown.config.yml
|
147
|
-
- example/frontend/fonts/forkawesome-webfont.eot
|
148
|
-
- example/frontend/fonts/forkawesome-webfont.svg
|
149
|
-
- example/frontend/fonts/forkawesome-webfont.ttf
|
150
|
-
- example/frontend/fonts/forkawesome-webfont.woff
|
151
|
-
- example/frontend/fonts/forkawesome-webfont.woff2
|
152
|
-
- example/frontend/javascript/index.js
|
153
|
-
- example/frontend/styles/index.scss
|
154
|
-
- example/package.json
|
155
|
-
- example/plugins/builders/.keep
|
156
|
-
- example/plugins/site_builder.rb
|
157
|
-
- example/src/404.html
|
158
|
-
- example/src/_components/footer.liquid
|
159
|
-
- example/src/_components/head.liquid
|
160
|
-
- example/src/_components/navbar.liquid
|
161
|
-
- example/src/_data/authors.yml
|
162
|
-
- example/src/_data/site_metadata.yml
|
163
|
-
- example/src/_layouts/default.html
|
164
|
-
- example/src/_layouts/home.html
|
165
|
-
- example/src/_layouts/page.html
|
166
|
-
- example/src/_layouts/post.html
|
167
|
-
- example/src/_posts/2020-06-13-this-is-groovy.md
|
168
|
-
- example/src/_posts/2020-06-13-welcome-to-bridgetown.md
|
169
|
-
- example/src/about.md
|
170
|
-
- example/src/favicon.ico
|
171
|
-
- example/src/images/jared-white-avatar.jpg
|
172
|
-
- example/src/index.md
|
173
|
-
- example/src/posts.md
|
174
|
-
- example/start.js
|
175
|
-
- example/sync.js
|
176
|
-
- example/webpack.config.js
|
177
|
-
- example/yarn.lock
|
178
|
-
- layouts/bulmatown/homepage.html
|
179
|
-
- layouts/bulmatown/page.html
|
180
|
-
- layouts/bulmatown/post.html
|
142
|
+
- layouts/bulmatown/homepage.liquid
|
143
|
+
- layouts/bulmatown/page.liquid
|
144
|
+
- layouts/bulmatown/post.liquid
|
181
145
|
- lib/bulmatown.rb
|
182
146
|
- lib/bulmatown/version.rb
|
183
147
|
- package.json
|
@@ -186,7 +150,7 @@ homepage: https://github.com/whitefusionhq/bulmatown
|
|
186
150
|
licenses:
|
187
151
|
- MIT
|
188
152
|
metadata:
|
189
|
-
yarn-add: bulmatown@1.0.
|
153
|
+
yarn-add: bulmatown@1.0.7
|
190
154
|
post_install_message:
|
191
155
|
rdoc_options: []
|
192
156
|
require_paths:
|