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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bde2c36a6b0aa5db52f126be19ebaf319a2763b01e2c346d97c6863923c4118c
4
- data.tar.gz: 7379168a870496af8bcfd16f4964d9425aa1bb920051fb3f654f5451f3267616
3
+ metadata.gz: ff24e6b8dc01e065dffbb38f338fdd954c320c78f8375a111d9e0444e1954410
4
+ data.tar.gz: 618f4bfa44cc4fe46cbf29242afbfbcc78d8c0d26f2f9aef5054d89935e205c1
5
5
  SHA512:
6
- metadata.gz: 1e2002b3a0715b06aea00916b18237daadb7f1c71cf14e6030a11b01fa03a48109a89162574042af480f7fe30314016ea2d3405e9a204a6cf1aec3fffdb18c57
7
- data.tar.gz: 55a5a8466323dee2c1d9607cc3836c5bfb37c317700b850112e8c8aa0f14e8f62cac3d31e6b39ec3bf1a50438e1df0d04bb16fd2064ee0f41a88501bf80e1dd5
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 customizations possibilities as if you configured Bulma manually.
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:
@@ -87,6 +87,7 @@ twitter = ask "Do you have a Twitter handle? If so, enter it here, otherwise typ
87
87
  if twitter != "" && twitter != "no"
88
88
  append_to_file "src/_data/site_metadata.yml" do
89
89
  <<~YAML
90
+
90
91
  twitter: #{twitter}
91
92
 
92
93
  YAML
@@ -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};
@@ -18,6 +18,10 @@
18
18
  }
19
19
  }
20
20
 
21
+ .navbar-brand {
22
+ font-weight: bold;
23
+ }
24
+
21
25
  .search-item input {
22
26
  font-size: 1em;
23
27
  height: 1.5em;
@@ -12,8 +12,8 @@
12
12
  "start": "node start.js"
13
13
  },
14
14
  "dependencies": {
15
- "bridgetown-quick-search": "^1.0.3",
16
- "bulmatown": "1.0.3"
15
+ "bridgetown-quick-search": "1.0.3",
16
+ "bulmatown": "1.0.4"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@babel/core": "^7.9.0",
@@ -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="/topics">
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 %}
@@ -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.3:
1537
- version "1.0.3"
1538
- resolved "https://registry.yarnpkg.com/bulmatown/-/bulmatown-1.0.3.tgz#e5e0c8ebde08d138867775cb13501b43d85f6150"
1539
- integrity sha512-J8Hr6l1WKSuPilict5bMGna8g4Q/j0fGGJbCfKlUx43iS3zFVW9fln+IZdti/v/dC4QKd5bXgbrS1lVb576axg==
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"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bulmatown
4
- VERSION = "1.0.4"
4
+ VERSION = "1.0.5"
5
5
  end
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bulmatown",
3
3
  "description": "A Bulma CSS starter theme for Bridgetown",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "main": "frontend/javascript/index.js",
6
6
  "repository": {
7
7
  "type": "git",
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
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-26 00:00:00.000000000 Z
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.4
188
+ yarn-add: bulmatown@1.0.5
188
189
  post_install_message:
189
190
  rdoc_options: []
190
191
  require_paths: