Skip to content

Commit

Permalink
Update document for customize theme
Browse files Browse the repository at this point in the history
  • Loading branch information
huyb1991 committed Mar 17, 2019
1 parent 1485452 commit e397127
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $ rm -rf hugo-lamp/.git
- [Add image to article](/docs/guide.md#add-image-to-article-content)
- [Content config for SEO](/docs/guide.md#content-config-for-seo)
- [Add icon](/docs/guide.md#add-icon)
- [Customize Theme](/docs/guide.md#customize-theme)

#### Site Configuration
- [Site Info](/docs/guide.md#site-info)
Expand Down
8 changes: 8 additions & 0 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ Replace `SVG symbol id` by yourself (above is `icon-rss`)

Example for icon on (layouts/partials/social.html)[https://github.com/huyb1991/hugo-lamp/blob/master/layouts/partials/social.html]

#### Customize Theme

Use [yarn](https://yarnpkg.com/en/) to install and run script instead of `npm`, some people got problem when using `npm` (but not with `yarn`)

1. Install packages by `yarn install`
2. Run watch script to hot reload your change `yarn watch`


## Site Configuration

Take a look at [exampleSite - config.toml](https://github.com/huyb1991/hugo-lamp/blob/master/exampleSite/config.toml), and replace config value by your own:
Expand Down

0 comments on commit e397127

Please sign in to comment.