All Projects → sudorook → capsule

sudorook / capsule

Licence: GPL-2.0 license
A Hugo theme based on the CSS-only Bulma framework.

Programming Languages

HTML
75241 projects
Sass
350 projects

Projects that are alternatives of or similar to capsule

bulma
Bulma is a simple and a responsive Hugo theme that offers a traditional blog mixed with a landing page designed to bootstrap your frontend!.
Stars: ✭ 41 (+105%)
Mutual labels:  hugo-theme, hugo, bulma-css
Hugo Blog Jeffprod
A free blog theme for HUGO (https://gohugo.io/), with tags, archives, last posts...
Stars: ✭ 47 (+135%)
Mutual labels:  hugo-theme, hugo, bulma
hugo-theme-massively
Massively theme for Hugo static site generator
Stars: ✭ 113 (+465%)
Mutual labels:  hugo-theme, hugo
persian-hugo
Persian is a box design personal blog theme based on Bootstrap and powered by Hugo. It is very responsive and perfectly fits on any sized screen device.
Stars: ✭ 32 (+60%)
Mutual labels:  hugo-theme, hugo
osprey-delight
Osprey Delight is the free-minded artist's choice for a clutter-free and blazingly fast single-page portfolio.
Stars: ✭ 43 (+115%)
Mutual labels:  hugo-theme, hugo
slate
a single-page speed-dial theme for Hugo
Stars: ✭ 140 (+600%)
Mutual labels:  hugo-theme, hugo
hugo-tania
A simple theme for bloggers.
Stars: ✭ 159 (+695%)
Mutual labels:  hugo-theme, hugo
hugo-minimalist-theme
Port of Raphael Riegger's Minimalistic Ghost theme to Hugo.
Stars: ✭ 25 (+25%)
Mutual labels:  hugo-theme, hugo
hugo-alageek-theme
A Cocoa Enhanced based theme. It's rewritten with Bootstrap 5.
Stars: ✭ 57 (+185%)
Mutual labels:  hugo-theme, hugo
hugo-tailwind-journal
A minimalist journal template for Hugo.
Stars: ✭ 40 (+100%)
Mutual labels:  hugo-theme, hugo
vue-portfolio
💼 Portfolio built with Vue and Bulma
Stars: ✭ 13 (-35%)
Mutual labels:  bulma, bulma-css
timer-hugo
Timer is a personal portfolio theme powered by Hugo. It also can be use as a landing page theme.
Stars: ✭ 123 (+515%)
Mutual labels:  hugo-theme, hugo
basics
Hugo theme. Now available from official hugo theme site!
Stars: ✭ 49 (+145%)
Mutual labels:  hugo-theme, hugo
hugo-now
a Hugo port of Jekyll Now
Stars: ✭ 16 (-20%)
Mutual labels:  hugo-theme, hugo
hyde-hyde
A cool theme inspired by spf13's Hyde theme
Stars: ✭ 234 (+1070%)
Mutual labels:  hugo-theme, hugo
alpha-church
Hugo theme for churches based on a html5up theme
Stars: ✭ 56 (+180%)
Mutual labels:  hugo-theme, hugo
tomanistor.com
Personal portfolio website and blog created with Hugo
Stars: ✭ 14 (-30%)
Mutual labels:  hugo-theme, hugo
navigator-hugo
Navigator Business theme powered by Hugo. It also could be used for a personal portfolio.
Stars: ✭ 133 (+565%)
Mutual labels:  hugo-theme, hugo
hugo-chart
a Chart.js component for Hugo. 📈
Stars: ✭ 71 (+255%)
Mutual labels:  hugo-theme, hugo
newsroom
A simple, minimalistic Hugo theme. View Demo here
Stars: ✭ 200 (+900%)
Mutual labels:  hugo-theme, hugo

Capsule

A CSS-only Hugo theme using the Bulma CSS framework and Font-Awesome icons.

Capsule Corp.

Install

From the base of your website, run:

git submodule add https://github.com/sudorook/capsule themes/capsule

You can then either build Hugo on the command line and pass the -t capsule flag, or you can add theme = "capsule" to your config.toml file.

Note: Any additional documentation will be added to the Capsule Demo site, not here.

Notes:

1. Syntax highlighting (via pygments)

For code blocks, pick the highlighter style in config.toml by setting:

pygmentsstyle = "<style>"

For dark highlighter themes, you should rebuild capsule CSS with build/extra/syntax.sass. Uncomment it from the capsule.sass file and run gulp.

Without that file, the background color will default to Bulma's light background-color, and light colored elements meant to be displayed against dark backgrounds from dark themes will be hard to read.

2. Unused classes in Bulma

Capsule is set to only compile the classes it needs. To enable more Bulma classes, uncomment the relevant sass files in build/bulma/bulma.sass.

3. Enable automatic generation of nav menus

In your config.toml files, set:

SectionPagesMenu = "main"

With this set, capsule with automatically generate a navigation menu in the navbar based on all the sections (the directories inside the content/ directory) present in your site.

4. Add git metadata to your pages

If you host your site on a public git vc server, you can set capsule to build a "Last edited on ..." note to each page that uses git metadata to display the date of the last commit and add a link to its blob on your public repo.

In your config.toml file, set:

enableGitInfo = true

[params]
  repo = "https://github.com/<user>/<repo>

The repo variable should point to the url of your repo for your website. The above example uses GitHub, but GitLab and any other site that follows the format of <siteurl>/<user>/<repo>/commit/<hash> will work, too.

5. Add custom javascript or CSS to a page

In the toml header, add:

css = """
<style>
 ...
</style>
"""

js = """
<script>
 ...
</script>
"""

Any CSS or JS specified here will add to the site <head> when Hugo renders the page.

6. Enable table of contents

To generate a table of contents for a specific page, add to the toml header:

toc = true

The table of contents will contain all the header items defined in the markdown. The nesting levels for each match the header weight (h1, h2, etc.).

Build

To (re)build the CSS, you need to have npm and gulp installed. Clone the capsule repository and once in it run:

npm install

and then

gulp

You can enable/disable sass components in /build/sass/capsule.sass. To use customized versions of capsule, you can maintain a fork repo and set the theme submodule to your fork, or you can simply make a symlink in the themes/ folder of your site to your local repo.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].