bulmatown 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +40 -1
- data/bridgetown.automation.rb +1 -0
- data/components/bulmatown/hero.scss +1 -0
- data/components/bulmatown/navbar.scss +4 -0
- data/example/package.json +2 -2
- data/example/src/_components/navbar.liquid +1 -1
- data/example/src/authors/author.html +23 -0
- data/example/yarn.lock +5 -5
- data/lib/bulmatown/version.rb +1 -1
- data/package.json +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff24e6b8dc01e065dffbb38f338fdd954c320c78f8375a111d9e0444e1954410
|
4
|
+
data.tar.gz: 618f4bfa44cc4fe46cbf29242afbfbcc78d8c0d26f2f9aef5054d89935e205c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5b5fb68cf6d4ace9dd357136817d9df798bc77b63e8db1c3bdb5f8d55c0c9fb7ca1d43143f9ef64a428409cf6b56570fe14968e1d012981139fa8d4ae5da5fc
|
7
|
+
data.tar.gz: 6eb5ab2b27eef236e83beebda9682045e8498dfe5a6ca19563b6d4572dc36fd3bdc92fbde85523edab403c4fb1ac0afc5578d2e43854b35fe893b3d34de7878d
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Bulmatown
|
2
2
|
## A Bulma CSS starter theme for Bridgetown.
|
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
|
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
6
|
**[LIVE DEMO](https://bulmatown.vercel.app)**
|
7
7
|
|
@@ -23,6 +23,12 @@ Or to add it to your existing Bridgetown site:
|
|
23
23
|
bundle exec bridgetown apply https://github.com/whitefusionhq/bulmatown
|
24
24
|
```
|
25
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
|
+
|
26
32
|
## Usage
|
27
33
|
|
28
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.
|
@@ -46,6 +52,39 @@ The available options are:
|
|
46
52
|
|
47
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/)
|
48
54
|
|
55
|
+
### Hero Banners and Images
|
56
|
+
|
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.
|
58
|
+
|
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
|
+
```
|
68
|
+
|
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
|
+
```
|
83
|
+
|
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
|
+
|
49
88
|
## Overriding Layout Templates and Components
|
50
89
|
|
51
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:
|
data/bridgetown.automation.rb
CHANGED
@@ -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};
|
data/example/package.json
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
<a class="navbar-item" href="/posts">Articles</a>
|
10
10
|
<a class="navbar-item" href="/about">About</a>
|
11
11
|
<div class="navbar-item has-dropdown is-hoverable">
|
12
|
-
<a class="navbar-link" href="
|
12
|
+
<a class="navbar-link" href="#">
|
13
13
|
Topics
|
14
14
|
</a>
|
15
15
|
<div class="navbar-dropdown is-boxed">
|
@@ -0,0 +1,23 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: Articles by :prototype-data-label
|
4
|
+
prototype:
|
5
|
+
term: author
|
6
|
+
data: authors
|
7
|
+
data_label: name
|
8
|
+
---
|
9
|
+
|
10
|
+
{% assign author = page.author_data %}
|
11
|
+
<p class="mb-6 has-text-centered">
|
12
|
+
Connect with
|
13
|
+
{{ author.name }}
|
14
|
+
on the
|
15
|
+
<a href="{{ author.website }}" class="has-text-weight-bold">Web</a>
|
16
|
+
or
|
17
|
+
<a class="has-text-weight-bold" href="https://twitter.com/{{ author.twitter }}">Twitter</a>
|
18
|
+
</p>
|
19
|
+
|
20
|
+
{% assign posts = paginator.documents %}
|
21
|
+
{% render "bulmatown/collection", collection: posts, metadata: site.metadata %}
|
22
|
+
|
23
|
+
{% render "bulmatown/pagination", paginator: paginator %}
|
data/example/yarn.lock
CHANGED
@@ -1351,7 +1351,7 @@ braces@~3.0.2:
|
|
1351
1351
|
dependencies:
|
1352
1352
|
fill-range "^7.0.1"
|
1353
1353
|
|
1354
|
-
bridgetown-quick-search@^1.0.3:
|
1354
|
+
bridgetown-quick-search@1.0.3, bridgetown-quick-search@^1.0.3:
|
1355
1355
|
version "1.0.3"
|
1356
1356
|
resolved "https://registry.yarnpkg.com/bridgetown-quick-search/-/bridgetown-quick-search-1.0.3.tgz#4fc34dea418fc97ba25f7ccf1aea6cbc7c048d91"
|
1357
1357
|
integrity sha512-IAeldS+EB+AU/3MIr0jvQKBIPR852aRxlM38/cEcs4KDh3v9ML3CtgnCI+48V6UBDb3NFzlKEJ91SSxRz3lyiA==
|
@@ -1533,10 +1533,10 @@ bulma@^0.9:
|
|
1533
1533
|
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.0.tgz#948c5445a49e9d7546f0826cb3820d17178a814f"
|
1534
1534
|
integrity sha512-rV75CJkubNUroAt0qCRkjznZLoaXq/ctfMXsMvKSL84UetbSyx5REl96e8GoQ04G4Tkw0XF3STECffTOQrbzOQ==
|
1535
1535
|
|
1536
|
-
bulmatown@1.0.
|
1537
|
-
version "1.0.
|
1538
|
-
resolved "https://registry.yarnpkg.com/bulmatown/-/bulmatown-1.0.
|
1539
|
-
integrity sha512-
|
1536
|
+
bulmatown@1.0.4:
|
1537
|
+
version "1.0.4"
|
1538
|
+
resolved "https://registry.yarnpkg.com/bulmatown/-/bulmatown-1.0.4.tgz#3bdec47c9807ac724819636f32d147499ce68061"
|
1539
|
+
integrity sha512-bs401CtVnsobhELXd/mmc9lBBDaOJVm6eFYTvRB3donO3L7V6aRnu9QLJVi2zDQNVTxCIPW5Jj0KnWDtgRxqwA==
|
1540
1540
|
dependencies:
|
1541
1541
|
bridgetown-quick-search "^1.0.3"
|
1542
1542
|
bulma "^0.9"
|
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.5
|
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-06-
|
11
|
+
date: 2020-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown
|
@@ -165,6 +165,7 @@ files:
|
|
165
165
|
- example/src/_posts/2020-06-13-this-is-groovy.md
|
166
166
|
- example/src/_posts/2020-06-13-welcome-to-bridgetown.md
|
167
167
|
- example/src/about.md
|
168
|
+
- example/src/authors/author.html
|
168
169
|
- example/src/favicon.ico
|
169
170
|
- example/src/images/jared-white-avatar.jpg
|
170
171
|
- example/src/index.md
|
@@ -184,7 +185,7 @@ homepage: https://github.com/whitefusionhq/bulmatown
|
|
184
185
|
licenses:
|
185
186
|
- MIT
|
186
187
|
metadata:
|
187
|
-
yarn-add: bulmatown@1.0.
|
188
|
+
yarn-add: bulmatown@1.0.5
|
188
189
|
post_install_message:
|
189
190
|
rdoc_options: []
|
190
191
|
require_paths:
|