About Contents
Add Some Content hugo new post/**.md
The newly created content file will start with something like this:
---
title: "**"
date: 2019-03-26T08:47:11+01:00
draft: true
---
Drafts do not get deployed; once you finish a post, update the header of the post to say draft: false. More info here.
---
title: "Hugo Guide"
date: 2021-05-01T08:47:11+01:00
categories: ["Manual"]
tags: ["Hugo", "GitHub"]
draft: false
---
Add pictures
/post/xxx.jpg
is actually baseURL/post/xxx.jpg
Put the picture as below
.
└── static
    └── post
        └── xxx.jpg
Customize the Theme
Start the Hugo server
▶ hugo server -D
                   | EN
+------------------+----+
  Pages            | 10
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  3
  Processed images |  0
  Aliases          |  1
  Sitemaps         |  1
  Cleaned          |  0
Total in 11 ms
Watching for changes in /Users/bep/quickstart/{content,data,layouts,static,themes}
Watching for config changes in /Users/bep/quickstart/config.toml
Environment: "development"
Serving pages from memory
Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Navigate to your new site at http://localhost:1313/.
Site Configuration
Open up config.toml in a text editor:
baseURL = "http://K7288.github.io"
languageCode = "en-us"
title = "K7288"
theme = "stack"
For further theme customization, see Customize a Theme.
Build static pages
hugo -D
Output will be in ./public/ directory by default (-d/--destination flag to change it, or set publishdir in the config file).
See Also