Code Monkey home page Code Monkey logo

seven's Introduction

Hugo theme Seven

A clean and beautiful Hugo theme, which built using Tailwind CSS.


English | 中文

Seven screenshot

Examples

Example Website

Example Code Repository

Prerequisites

Before using this Hugo theme, ensure that you meet the following requirements:

  1. Install Go. Refer to the documentation on Hugo Modules Prerequisite.
  2. Ensure that your Hugo version is v0.112.0 or later. Refer to the documentation for configure-cache-busters.

Quick Start

  1. Clone the example code.

    git clone https://github.com/mrhelloboy/hugo-theme-seven-demo.git
  2. Execute the commands:

    cd hugo-theme-seven-demo
    
    hugo mod npm pack
    
    npm install
    
    hugo server

Starting from Scratch

  1. Install Go and Hugo.

  2. Create a new site.

    hugo new site [sitename]
    cd [sitename]
    # Remove the themes directory in the site
    rm -rf themes
  3. Initialize Hugo module.

    hugo mod init github.com/[username]/[sitename]
  4. Import the theme module.

    In the hugo.toml file, configure the theme:

    [module]
    [[module.imports]]
      path = 'github.com/mrhelloboy/seven'

    As the theme requires additional configuration parameters, to avoid errors, it's recommended to first use the example's hugo.toml and then customize as needed.

    Note: If using the example hugo.toml, comment out customSocial = "extra_social.html" to prevent an error during startup.

    For more information about Hugo modules and their usage, please refer to Hugo Modules.

  5. Install dependencies and start the server.

    hugo mod npm pack
    
    npm install
    
    hugo server

Updating Theme Module

hugo mod clean
hugo mod get
hugo mod tidy

Updating package.json

First delete package-lock.json and package.json.

hugo mod npm pack
npm install

Deployment

Refer to the Hugo Deployment Documentation for details.

Deploying to Netlify Example:

  1. Copy the example's netlify.toml to your own site and push the changes to GitHub.

  2. Register and log in to Netlify.

  3. Import your GitHub project; Netlify will automatically build based on the netlify.toml file.

Maintainers

@mrhelloboy

License

MIT © mrhelloboy.

seven's People

Contributors

mrhelloboy 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.