diff options
author | Dillon <dillonzq@outlook.com> | 2020-03-02 12:03:35 +0300 |
---|---|---|
committer | Dillon <dillonzq@outlook.com> | 2020-03-02 12:03:35 +0300 |
commit | 285efc01bbd6ff84f025b1acc5060233185e2f01 (patch) | |
tree | 123a3a4441a190accb784c8a383953c5b43c93e0 /README.md | |
parent | f83b1c14c88b36de419e0eeb3b7e335434bb2032 (diff) |
feat(environment): use hugo.Environment to judge the production environment
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -158,14 +158,6 @@ Customize `browserconfig.xml` and `site.webmanifest` to set theme-color and back ## Tips -### Set `production` environment when generating site - -Because some features are only in production mode, so you need to add a `production` environment variables when generating your site. - -```bash - HUGO_ENV=production hugo --gc --minify -``` - ### How to toggle dark-light mode * You can click the circle icon to toggle dark-light mode. In the desktop version the circle icon is to the right and in the mobile version is positioned to the left, close to the site title. |