Code Monkey home page Code Monkey logo

hugo-theme-mini's Introduction

Hugo Theme Mini

English | 简体中文

A fast, minimalist and responsive hugo theme.

./images/screenshot.png

Features:

  • Fast
  • Minimalist
  • Responsive
  • Archive
  • Tags

Installation

As a Hugo Module (recommended)

⚠️ If you installed a Hugo binary, you may not have Go installed on your machine. To check if Go is installed:

$ go version

Go modules were considered production ready in v1.14. Download Go.

  1. From your project's root directory, initiate the hugo module system if you haven't already:

    $ hugo mod init github.com/<your_user>/<your_project>
  2. Add the theme's repo to your config.yaml:

    theme: 
       - github.com/nodejh/hugo-theme-mini

As Git Submodule

  1. Inside the folder of your Hugo site run:

    $ git submodule add https://github.com/nodejh/hugo-theme-mini.git themes/mini
  2. Add the theme's directory to your config.yaml:

    theme: mini

For more information read the official setup guide of Hugo.

Getting started

After installing the theme successfully it requires a just a few more steps to get your site running.

The config file

Take a look inside the exampleSite folder of this theme. You'll find a file called config.yaml. To use it, copy the config.yaml in the root folder of your Hugo site. Feel free to change the strings in this theme.

⚠️ You may need to delete the line: themesDir: ../../

Add Comments

To enable comments, add following to your config file:

  • Disqus shortname: disqusShortname: your-disqus-shortname

  • Enable Comment:

    params:
      enableComments: true

Google Analytics

To enable google analytics, add following to your config file:

  • Google Analytics ID: googleAnalytics: your-google-analytics-id

  • Enable Google Analytics:

    params:
      enableGoogleAnalytics: true

Logo and favicon

You can replace the log in the top of each page and favicon with your own images. To do that put your own logo and favicon into the images directory of your website static directory, then named them avatar.png and favicon.ico. For example:

- content
- static
└── images
    ├── avatar.png
    └── favicon.ico

Nearly finished

In order to see your site in action, run Hugo's built-in local server.

$ hugo server

Now enter http://localhost:1313 in the address bar of your browser.

License

MIT

hugo-theme-mini's People

Contributors

andykingking avatar bdhu avatar chalkpe avatar eddturtle avatar josephearl avatar kevinjiao avatar mfridman avatar nindalf avatar nodejh avatar sornars avatar subnomo avatar suhjohn avatar thornycrackers avatar wwsean08 avatar yihui avatar yoric avatar zzh8829 avatar

Watchers

 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.