Bootstrap Blog is a theme for Grav CMS built in Bootstrap v4.1 framework and provides a powerful base to develope your own theme using SCSS. Also we use latest FontAwesome 5.
- Lightweight and minimal for optimal performance
- Bootstrap 4.1 Stable
- SCSS based CSS source files to ease customization
- 3 Blog Item Layouts
- Twitter Timeline Sidebar Widget
- Fill of color your site with Bootstrap styles
- Fontawesome 5
- Default view template
default.md
- Error view template
error.md
- Blog view template
blog.md
- Blog and Portfolio item view template
item.md
- Modular view templates:
modular.md
- Features Modular view template
features.md
- Showcase Modular view template
showcase.md
- Blog Modular view template
blog.md
- Text Modular view template
text.md
- Features Modular view template
Installing the Bootstrap Blog theme can be done in one of two ways. GPM (Grav Package Manager) installation method enables you to quickly and easily install the theme with a simple terminal command, while the manual method enables you to do so via a zip file.
The simplest way to install this theme is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:
bin/gpm install bootstrap-blog
This will install the Bootstrap Blog theme into your /user/themes
directory within Grav. Its files can be found under /your/site/grav/user/themes/bootstrap-blog
.
To install this theme, just download the zip version of this repository and unzip it under /your/site/grav/user/themes
. Then, rename the folder to bootstrap-blog
. You can find these files either on GitHub or via GetGrav.org.
You should now have all the theme files under
/your/site/grav/user/themes/bootstrap-blog
Almost templates support a style parameter in headers. That means depending on the case some buttons, text colors and background change from Bootstrap Scheme Colors. Don't be afraid to fill of color your site!
Templates supporting style
:
item
features
showcase
blog
text
Bootstrap Blog is built with lastest FontAwesome Icons 5. This version has some important changes from previous version 4, now icons are divided in three groups: Solid, Brand and Regular (Light is only for Pro).
In this theme fas
or Font Awesome Solid is selected by default. If you need to use Regular or Brand icons you just have to add far
or fab
respectively at the end.
Feel free to use them anywhere following official usage.
Bootstrap Blog comes with a few default theme options that can be set site-wide. These options are:
enabled: true
cdn_enabled: false
back_to_top_button: true
favicon:
navbar:
image:
icon:
style: default
dropdown: true
sticky: false
sidebar:
enabled: true
align: left
twitter:
enabled: true
user: twitter
height: 600
theme: light
about:
enabled: true
title: About me
content: Some text about you...
page:
item:
show_prev_next: true
comments:
enabled: false
disqus_shortname:
footer:
style: dark
text: 'Some footer text'
legal:
You can copy the user/themes/bootstrap-blog/bootstrap-blog.yaml
file to user/config/themes/
folder and modify, or you can use the admin plugin.
NOTE: Do not modify the
user/themes/bootstrap-blog/bootstrap-blog.yaml
file directly or your changes will be lost with any updates
Showcase modular template is useful as page's heading. You can setup optionally a background image, or use instead Bootstrap Styles. This will try to set automatically first folder image as background or you can pick it via Admin Plugin. Additionally you can include some buttons at bottom.
Still under heavy development! Also you can setup your own image filters to override ours. You must use Grav Media Actions in Twig way, separating arguments by comma (if there is no arguments you must type null
).
style: light|dark|primary|info|success|warning|danger
text_align: center|left|right
image_actions:
brightness: -100
colorize: '-35,81,122'
negate: null
buttons:
-
text: Blog
url: /blog
icon: rss
-
text: Portfolio
url: /portfolio
icon: flask
Note style parameter just will work without background image
You can apply a Bootstrap Style to icons, or a custom color. Also text-align
param is supported as well as a style
parameter in modular template, changing background and font color.
style: light
text_align: center
features:
-
icon: rocket
title: Title
text: 'Text with HTML support'
style: primary # Optional style for icon
color: '#fefefe;' # rgba or hex custom color
This is the default modular template. It supports style
parameter to change background and font color following Bootstrap Theme Colors. Also you are able to use text_align
, and set image width by columns with image_size
taking values from 1 to 12 (default 6). Image will be retrieved automatically from first media founded in folder, or you can pick one on image_file
.
Blog Modular content should be setting up with Page Collections, or using show_more
route parameter as to get children. Also it's possible to choose between 3 layouts to display items; boxed, cards or masonry.
title: Blog Modular
layout: boxed|cards|masonry
show_more: /blog
content:
items:
'@page': '/blog'
order:
by: date
dir: desc
limit: 6
pagination: false
As in Blog Modular you're able to choose between 3 layouts. In addition, showcase is included to customize Blog header following the same structure mentioned above.
title: Blog
layout: boxed|cards|masonry
content:
items: '@self.children'
order:
by: date
dir: desc
limit: 6
pagination: true
Descendants of Blog are items. Get first folder image as header or you can pick it via image_file
as in Text Modular. In addition, style
parameter is supported and buttons
array to show some links at bottom.
Also you are able to disable sidebar and comments in each item, overriding theme settings.
title: Title
style: primary
taxonomy:
category:
- post
tag:
- tag
sidebar:
enabled: true
comments:
enabled: true
buttons:
-
text: 'Link'
url: 'http://example.com'
Sidebar can be disabled in any page and it's possible to set on left or right side. It hasn't hierarchical support, so you need to do it in every item. Support by default some widgets from Grav like Taxonomy List, Archives, Simplesearch or Syndicate. We included a Twitter Timeline and About you widget which can be setting up in Admin Panel theme options. Last one lets you set a page as widget content to render text in different languages.
Feel free to extend partials/sidebar.html.twig
to add your own widgets!
- Skills/animated bars modular template
- Carousel modular template
Go to top buttonMerge portfolio and blog item layouts