Credits:
git submodule add https://github.com/ntk148v/hugo-cuisine-book themes/cuisine-book
hugo server --minify --theme cuisine-book
You can also add this theme as a Hugo module instead of a git submodule.
hugo mod init github.com/repo/path
config.toml
:[module]
[[module.imports]]
path = 'github.com/ntk148v/hugo-cuisine-book'
hugo mod get -u
hugo server --minify
config.toml
file.# Your base url
baseURL = "http://localhost/my-title"
# Your page title
title = "my-title"
theme = "cuisine-book"
# (Optional) Set this to true to enable Author.
enableGitInfo = true
[params]
author = "Your Name"
description = "Describe about you"
# (Optional) Your logo in the header navbar which has to be stored in static folder.
# If the logo is /static/logo.png then the path would be 'logo.png'
logo = "logo.png"
# (Optional) Enable comments template on pages
# By default partials/comments.html includes Disqus template
# See https://gohugo.io/content-management/comments/#configure-disqus
# Can be overwritten by same param in page frontmatter
comment = true
# Set source repository location.
repo = 'https://github.com/ntk148v/mammam'
# Enable 'Edit' links.
# Disabled by default. Uncomment to enable. Requires 'repo' param.
# Path must point to the site directory.
editpath = 'edit/master'
# Enable 'Add' links.
# Disabled by default. Uncomment to enable. Requires 'repo' param.
# Path must point to the site directory.
newpath = 'new/master'
File | Description |
---|---|
static/favicon.png |
Override default favicon |
assets/_custom.scss |
Customize or override scss styles |
assets/_fonts.scss |
Replace default font with custom fonts (e.g. local files or remote like google fonts) |
layouts/partials/comments.html |
Override comments.html template |
static/
, named it as background.png
.assets/_custom.scss
body {
background-image: url("background.png");
}
git checkout -b my-new-feature
).git commit -am 'Add some feature'
).git push origin my-new-feature
).