ntk148v / hugo-cuisine-book

Cuisine Book - Made with Hugo
https://ntk148v.github.io/mammam/
MIT License
11 stars 4 forks source link
hugo hugo-blog hugo-theme

Hugo Cuisine Book

A simple Hugo theme

GitHub license GitHub stars Hugo Demo Site


Credits:

1. Requirements

2. Installation

2.1. Install as git module

git submodule add https://github.com/ntk148v/hugo-cuisine-book themes/cuisine-book
hugo server --minify --theme cuisine-book

2.2. Install as hugo module

You can also add this theme as a Hugo module instead of a git submodule.

hugo mod init github.com/repo/path
[module]
[[module.imports]]
path = 'github.com/ntk148v/hugo-cuisine-book'
hugo mod get -u
hugo server --minify

3. Configuration & Customization

3.1. Site configuration

# 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'

3.2. Customization

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
body {
  background-image: url("background.png");
}

4. Contributing