minimum hugo version 0.101.0+extended
Configure "config.toml"
hugo serve -D
hugo --ignoreCache --minify
hugo new content/page_name.md
and then edit file located at "./content/page_name.md", setup frontmatter
hugo new content/posts/post_title.md
and then edit file located at "./content/posts/post_title.md", then setup frontmatter
---
title: "Post Title" (1)
date: 2022-08-18T19:23:39+07:00 (2)
draft: false (3)
seo_description: "lorem ipsum dolor sit amet" (4)
seo_keyword: (5)
- keyword1
- keyword2
thumbnail: "posts/example.jpg" (6)
youtube_url: "https://www.youtube.com/watch?v=D0UnqGm_miA" (7)
audio_url: "/assets/audios/file.mp3" (8)
tags: (9)
- tags1
- tags2
category: (10)
- Magazine
- Podcast
slug: "{{ lower .Name | urlize }}" (11)
---
- Set page or post title
- Set date page or post published
- Set draft, set to true then page or post will be hidden in production
- Set SEO META description
- Set SEO META keyword
- Set thumbnail, value must be set, place image in "./static/assets/images/"
- Set youtube URL
- Set audio URL (for Podcast category, other than Podcast set to "")
- Set post tags, must be set at least 1 tag
- Set post category, must be set at least 1 category
- Set URL slug