Skip to content

kilianpaquier/hugo-primer

Repository files navigation

hugo-primer

GitHub Release GitHub Issues GitHub License Go Version Go Report Card


Project initialization

To initialize a Hugo project, it's simple (this will generate a minimal boilerplate):

hugo new site <site name> --destination .

How to use ?

Hugo module (recommended)

To import hugo-primer theme, following properties must be added into hugo.(yaml|toml) configuration file:

theme: github.com/kilianpaquier/hugo-primer

module:
  imports:
    - path: github.com/kilianpaquier/hugo-primer

You then can initialize go.mod file and tidy with the following commands to download this theme as dependency (like you would do with Go):

hugo mod init github.com/<username>/<site name>
hugo mod tidy

Git submodule

If you intend to go with a Git submodule, two possibilities:

With SSH :

git submodules add [email protected]:kilianpaquier/hugo-primer.git themes/hugo-primer

With HTTPS :

git submodules add https://github.com/kilianpaquier/hugo-primer.git themes/hugo-primer

You then need to update hugo.(yaml|toml) configuration with following property:

theme: hugo-primer

Default configuration

For an expected experience with hugo-primer theme, default configuration should be merged with your own:

_merge: deep

Start website

You are now ready to start you Hugo website:

hugo server --disableFastRender --destination dist

Features

See https://hugo-primer.netlify.app/walkthrough.

About

Extensible Hugo theme based on Primer, the Design System for GitHub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •