Mere is a minimal and simple blog theme, and nothing more, for use with Jekyll and GitHub Pages. It has been built with the Bulma frontend framework.
It has a homepage which displays the latest 6 posts and a paginated blog page used to list out all blog posts.
Add this line to your Jekyll site's Gemfile
:
gem "mere-blog-theme"
And add this line to your Jekyll site's _config.yml
:
theme: mere-blog-theme
And then execute:
$ bundle
Or install it yourself as:
$ gem install mere-blog-theme
Create a blog
directory with an index.html
file inside it. Set the front matter of the blog/index.html
page with the layout of blog.
layout: blog
title: Blog
Set the paginator up in the _config.yml
file with the posts per page and the path to the blog.
paginate: 5
paginate_path: "/blog/page:num"
Posts should be created in the _posts directory as per standard Jekyll usage. The frontmatter should contain the layout of post, the image to use in the header and the homepage / blog page, the title of the post and the author of the post. You can also set a subtitle for the post if you want to.
layout: post
title: First Post
image: /img/home.jpg
author: C.S. Rhymes
Wide images will work best, with a minimum width of 1400px.
Finally, configure the homepage by creating an index.html
page and configure the frontmatter with the layout of homepage, the title, subtitle (optional) and the image. You can set the hero_height to is-large if you want to make the homepage header a bit larger.
layout: homepage
title: Mere Blog Theme
subtitle: This is the demo site for the Mere Blog Theme
image: /img/home.jpg
hero_height: is-large
To enable Google Analytics add google_analytics: UA-xxxxxxxx
to your _config.yml
replacing the UA-xxxxxxxx with your Google Analytics property.
Bug reports and pull requests are welcome on GitHub at https://github.com/chrisrhymes/mere-blog-theme. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
To set up your environment to develop this theme, run bundle install
.
Your theme is setup just like a normal Jekyll site! To test your theme, run bundle exec jekyll serve
and open your browser at http://localhost:4000
. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
When your theme is released, only the files in _layouts
, _includes
, _sass
and assets
tracked with Git will be bundled.
To add a custom directory to your theme-gem, please edit the regexp in mere-blog-theme.gemspec
accordingly.
The theme is available as open source under the terms of the MIT License.