Git Product home page Git Product logo

bulmatown's Introduction

Bulmatown

A Bulma CSS starter theme for Bridgetown.

Bulma is a clean, modern CSS framework for rapid prototyping of content-focused websites. Use this theme to start using Bulma in your new Bridgetown site quickly, while preserving all of the advanced customization possibilities as if you configured Bulma manually.

LIVE DEMO

Bulmatown Example

Installation

Bulmatown requires Bridgetown v1.0 or later (for >= 1.2), or v0.15 or later (~1.1)

To install Bulmatown while creating a new Bridgetown site:

bridgetown new mysite --use-sass -a https://github.com/whitefusionhq/bulmatown

Or to add it to your existing Bridgetown site:

bundle exec bridgetown apply https://github.com/whitefusionhq/bulmatown

A few other (optional) plugins you might be interested in installing:

Usage

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 in this repository.

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:

// frontend/styles/index.scss

$theme_variation: rust;

@import "~bulmatown/frontend/styles"

The available options are:

  • default
  • rust
  • fuchsia
  • fineart

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.

Hero Banners and Images

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 plugin for an easy way to add advanced image asset handling to your site.

If you wish, you can alter which variable is loaded for the cards and social embeds vs. the hero banners using metadata:

# src/_data/site_metadata.yml
bulmatown_theme:
  image_sizes:
    embed: image
    hero: image_hero

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.

Authors

To show author information at the top of a blog post, add authors.yml to your data folder. For example:

# src/_data/authors.yml
jared:
  name: Jared White
  avatar: /images/jared-white-avatar.jpg
  twitter: jaredcwhite
  website: https://jaredwhite.com

Then simply add author: jared to your post's front matter.

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.)

Overriding Layout Templates and Components

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:

# copy the layouts folder:

bundle exec bridgetown plugins cd Bulmatown/layouts

cp -r bulmatown $BRIDGETOWN_SITE/src/_layouts
exit

# copy the components folder:

bundle exec bridgetown plugins cd Bulmatown/components

cp -r bulmatown $BRIDGETOWN_SITE/src/_components
exit

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.

Contributing

  1. Fork it (https://github.com/whitefusionhq/bulmatown/fork)
  2. Clone the fork using git clone to your local development machine.
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

bulmatown's People

Contributors

arca0 avatar dependabot[bot] avatar jaredcwhite avatar ravensnowbird avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bulmatown's Issues

Demo site

The link to the demo site at Vercel is broken. That is all.

Problem occurred while running automation - bridgetown.automation.rb:16:in `apply'

add_yarn    bulmatown
➤ YN0000: ┌ Resolution step
➤ YN0002: │ cpsite@workspace:. doesn't provide webpack (p68ac9), requested by sass-loader
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 3s 644ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ lit-element@npm:3.2.2 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ lit-html@npm:2.4.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ lit@npm:2.4.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ lunr@npm:2.3.9 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ regenerator-runtime@npm:0.13.10 can't be found in the cache and will be fetched from the remote 
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 3s 899ms
         run    cp node_modules/fork-awesome/fonts/* frontend/fonts from "."
cp: node_modules/fork-awesome/fonts/*: No such file or directory
Problem occurred while running automation: 
https://raw.githubusercontent.com/whitefusionhq/bulmatown/master/bridgetown.automation.rb:16:in `apply' 

Here's the problem I ran into

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.