Skip to content

Mere is a minimal and simple blog theme, and nothing more, for use with Jekyll and GitHub Pages.

License

Notifications You must be signed in to change notification settings

Theatemis/mere-blog-theme

Repository files navigation

mere-blog-theme

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.

Installation

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

Usage

Blog Setup

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

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.

Homepage

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

Google Analytics

To enable Google Analytics add google_analytics: UA-xxxxxxxx to your _config.yml replacing the UA-xxxxxxxx with your Google Analytics property.

Contributing

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.

Development

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.

License

The theme is available as open source under the terms of the MIT License.

About

Mere is a minimal and simple blog theme, and nothing more, for use with Jekyll and GitHub Pages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 64.8%
  • SCSS 24.0%
  • Ruby 7.0%
  • JavaScript 4.2%