Skip to content

tankilo/hugo_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

683fac7 · Dec 29, 2018
Dec 29, 2017
Jan 13, 2018
Dec 29, 2018
Jan 11, 2018
Nov 30, 2018
Nov 2, 2018
Jan 12, 2018
Jan 13, 2018
Dec 29, 2017
Jan 12, 2018
Dec 28, 2017
Feb 12, 2018
Dec 30, 2017
Dec 15, 2018
Feb 13, 2018
Dec 15, 2018
Jan 13, 2018

Repository files navigation

hugo-YAMT-theme

Yet Another Material Theme for hugo. demo.

Feature

  1. Waterfall layout
  2. Responsive layout
  3. Material design
  4. Table of content
  5. Tiny and powerfull, no JQuery
  6. Chinese keyword search(using lunr and nodejieba)

How to use or dev

This theme is writted by typescript and sass and using gulp to control the build progress.

First, install hugo and make sure you have a node environment.
Next, clone this repo and replace my stuff (such as post,pages,link,etc...) with yours.
Then, install the node dependencies with yarn or npm:

  # install glob globally
  yarn global add gulp # or npm install gulp -g
  # install dependencies
  yarn install # or npm install

Finally, there are several gulp tasks we can run in the terminal:

  1. gulp serve: start a livereload dev server. equivalent to hugo serve.
  2. gulp build: generate static file to your publish dir. equivalent to hugo.
  3. gulp lunr: generate a lunr-index-json file (with Chinese support) to your publish directory.

After using guilp build,the static pages should be generated into docs folder, all the static resources should be minified and revisioned.

Finally, push the whole project to your github repo, and enable the github pages with the help of offical docs your site should be published soon.