Hugo notes
Table of Contents
TL;DR: Đây là cách tạo ra summary mà vẫn xuất hiện ở đầu bài viết
Hugo notes#
Test logical path#
Truy cập trang /test để render trang này
LEARN-MORE:https://gohugo.io/methods/page/path/
Ví dụ về logical path như sau, ta có thể dùng nó để ánh xạ các bài viết vào Menus:
| File path | Front matter slug | Logical path |
|---|---|---|
content/_index.md | / | |
content/posts/_index.md | /posts | |
content/posts/post-1.md | foo | /posts/post-1 |
content/posts/post-2.html | bar | /posts/post-2 |
index.md & _index.md#
index.mdsẽ là 1 Article: Sẽ có- Author, icon, word counts,…
_index.mdsẽ là 1 trang index:- Phần trên là nội dung của
_index.md - Phần dưới là các article của từng năm
- Phần trên là nội dung của
FrontMatter#
- https://blowfish.page/docs/front-matter/
- Cái ở đầu mỗi bài post, giúp custom riêng cho bài post đó
Render HTML#
You can render some HTML content directly.
Script also working :v#
👉 Read EN version here
Shortcode#
- Good Hugo shortcodes:
Custom shortcode#
- Phải tắt server chạy lại mới có tác dụng
There are no articles to list here yet.