1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-14 16:27:04 +01:00
A blogging-centric Bootstrap v4 theme for the Hugo static site generator.
Go to file
Alan Orth d214834089
Allow configuration of recent posts on sidebar
By default it shows the latest five posts, but you can set this
property in your config to override it:

  [params.sidebar]
    num_recent_posts = 7

Still no way to disable it, as I don't understand golang's HTML
templating stuff yet. The Hugo docs are a bit confusing, but it
seems like conditionals are a bit tricky because both false and
0 return a boolean false... hmm.

See: https://gohugo.io/templates/go-templates/
2016-09-07 23:54:55 +03:00
archetypes First commit with initial theme 2016-08-28 16:22:32 +03:00
layouts Allow configuration of recent posts on sidebar 2016-09-07 23:54:55 +03:00
source/scss source/scss/main.scss: Add styling for images in blog posts 2016-09-07 14:02:18 +03:00
static/css Regenerate style 2016-09-07 14:03:34 +03:00
.gitignore Add initial .gitignore 2016-08-28 16:22:58 +03:00
LICENSE.txt First commit with initial theme 2016-08-28 16:22:32 +03:00
package.json package.json: Fix trailing comma 2016-09-07 14:01:39 +03:00
README.md README.md: Remove jQuery references 2016-08-29 17:18:37 +03:00
screenshot@2x.png Add screenshot to README.md 2016-08-28 19:31:31 +03:00
theme.toml theme.toml: Add real data 2016-08-28 20:52:52 +03:00

Hugo Bootstrap v4

A simple Hugo theme based on the Bootstrap v4 blog example. Still a work in progress.

Screenshot

Usage

Clone the repository to your site's themes directory.

Building (For Developers)

This theme uses the Bootstrap framework. A static version of this is already included, but if you want to bump the version, tweak the style, etc, you'll need to rebuild the assets. Make sure you have NodeJS v4 or v6 installed, and then run the following from inside the theme's directory:

$ npm install
$ npm run build

License

This repository contains the code of Bootstrap, which is licensed under the MIT license.

Otherwise, the contents are GPLv3.