Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

A simple and responsive Hugo theme for personal blogging.

License

Notifications You must be signed in to change notification settings

alkmst-xyz/hugo-theme-mistral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mistral

A minimal blogging theme for Hugo using Tailwind CSS.

⚠️ WIP ⚠️

I am creating this theme as an exercise to learn modern concepts in HTML and CSS. This theme is very much a POC.

Installation

Install Tailwind CSS, PostCSS, etc.

npm init --yes
npm install --save-dev autoprefixer postcss postcss-cli tailwindcss
  • postcss - a tool for transforming CSS with JavaScript
  • postcss-cli - CLI tool to execute Postcss commands in the terminal
  • postcss-import - to resolve the path of an @import rule (not currently used)
  • autoprefixer - helps to add vendor prefixes to CSS
  • tailwindcss - CSS library containing utility class

Add the theme to the themes directory:

git submodule add https://github.com/josephsv96/hugo-theme-mistral themes/mistral

To update the theme:

git submodule foreach git pull

Set the theme option to Mistral in the config.toml file of your Hugo site.

theme = "mistral"

Add the following lines to your config.toml to set site parameters. See Content Management - Menus.

[menu]
  [[menu.main]]
    identifier = "posts"
    name = "Posts"
    url = "/posts"
    weight = 1

  [[menu.main]]
    identifier = "about"
    name = "About"
    url = "/about"
    weight = 2

  [[menu.footer]]
    name = "Github"
    url = "https://github.com/example"
    weight = 1

  [[menu.footer]]
    name = "Imprint"
    url = "/imprint"
    weight = 2

Start hugo server in production mode:

NODE_ENV=production hugo server -D

References

  1. Hugo, Tailwind & Netlify = <3
  2. How to add TailwindCSS to your Hugo site

About

A simple and responsive Hugo theme for personal blogging.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published