Git Product home page Git Product logo

hugo-tailwind-nord-theme's Introduction

Hugo Tailwind Nord Theme

Prerequisites

Make sure to install postcss-cli and autoprefixer globally in your environment, as Hugo Pipe’s PostCSS requires it. This is mentioned in the Hugo Docs.

npm install -g postcss-cli
npm install -g autoprefixer

Make sure to use a minimum Hugo version of v0.80.0 and above.

Usage directly within a Hugo repo as a theme package

  • start a new Hugo site
hugo new site mysite
  • switch into the theme folder and clone this repo
cd mysite/themes
git clone https://github.com/lawzava/hugo-tailwind-nord-theme
  • switch into the newly created theme folder and install the node packages
cd hugo-tailwind-nord-theme
rm -rf .git
npm install
  • edit the config.toml file in mysite/ to reflect the hugo-tailwind-nord-theme
# in config.toml
theme = "hugo-tailwind-nord-theme" 
  • switch to the root of the new-site repo and start a server to view the index site
cd mysite
hugo server --disableFastRender

Your content should go into mysite/content, the development of the site layout is done within mysite/themes/hugo-tailwind-nord-theme/layout.

Reference

Documentation for Hugo's PostCSS setup.

Documentation for Tailwind CSS setup of calling PurgeCSS manually.

Color scheme for Nord Theme.

Theme was inspired by https://github.com/dirkolbrich/hugo-theme-tailwindcss-starter

hugo-tailwind-nord-theme's People

Contributors

lawzava avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.