Meimei Blog
December 12, 2023

HUGO So Easy (6) - 建立新的 HUGO 頁面

 •  1   • 49 
Table of contents

建立 HUGO 新頁面

再次回到 根目錄

建立一個叫 my-first-post 的頁面

hugo new posts/my-first-post.md

HUGO 會在 content/posts/ 目錄下建立一個叫 my-first-post.md 的檔案

開啟 my-first-post.md 這個檔案,把 draft = true 改成 draft = false,然後將下面的內容複製到檔案內 (這些是頁面的範例文字),然後存欓

## Introduction

This is **bold** text, and this is *emphasized* text.

Visit the [Hugo](<https://gohugo.io>) website!

這時候可以再啟動一次 HUGO 就會看到網站有東西嚕!

hugo server -D
Follow me

I work on everything coding and tweet developer memes