A simple theme for Hugo based on a custom VIM statusline I created.
Clone this repo into your themes
folder.
If you're using git:
$ git submodule add https://github.com/kirontoo/hugo-theme-statusline.git themes/statusline
Otherwise, you can download the .zip
file and extract it into your themes
folder.
Remember to add the theme to your config file
$ echo theme = \"statusline\" >> config.toml
Important: Take a look inside the exampleSite
folder of this theme.
You'll find a file called config.toml
.
This is an example config of parameters you can set.
To use it, copy the config.toml
in the root folder of your Hugo site.
$ cp ./themes/statusline/exampleSite/config.toml ./config.toml
The themes/statusline/archetypes/default.md
file shows all of the available front-matter params.
If you want to customize it, copy this file in the archetypes
folder at the root of your project and make your changes.
$ cp ./themes/statusline/archetypes/default.md ./archetypes/default.md
This theme provides various shortcodes for your markdown. See all of the available shortcodes here.
$ cd ./themes/statusline/
$ git pull
You can use the exampleSite
folder as a content source to make changes to this theme.
Just run the development server with:
$ hugo server --source=exampleSite --themesDir=../.. --disableFastRender
or use the Makefile
The instagram API endpoint has been deprecated since October 24th, 2020. If you want to use the instagram shortcode, you must register your Hugo site as an app to get a Facebook API key. See the issue here.
Hugo supports yaml
, toml
, and json
config files.
Your profile image can be placed in static/images
.
Only pinned projects will be shown. Make sure you have pinned
set as true
in the front-matter.
If you use the archetypes for projects, pinned
is set to true
on default.
The about page will only show one content file. Make sure you create an _index.md
in content/about
.
Released under the MIT License.