Kết hợp Hugo
https://github.com/onweru/browse
1)Khởi đầu từ theme browse
2)cd D: hugo new site BrowseHigh1 cd BrowseHigh1 git clone https://github.com/onweru/browse.git Chép themes đã git vào folder themes,rồi khai báo tên theme trong hugo.toml Chép toàn bộ file và folder trong examplesite vào thư mục gốc. Xong chép các folder còn lại trong folder themes ra ngoài thư mục gốc
3)Tạo trang chủ đầu tiên(homepage), từ folder content tạo file _index.md, nội dung như sau:
---
title: "Home"
author: "VD"
sidebar: true
widgets:
- "search"
- "recent"
- "taglist"
- "categories"
---
<main aria-role="main">
<header class="homepage-header">
<h1>{{ .Title }}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{ . }}</span>
{{ end }}
</header>
<div class="homepage-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{ .Content }}
</div>
<div>
{{ range first 100 .Site.RegularPages }}
{{ .Render "summary" }}
{{ end }}
</div>
</main>
{{ end }}
4)Folder quan trong nhất , gom mọi cấu hình là folder config/default gồm các file hugo.toml, markup.toml và params.toml. Còn ở thư mục gốc file hugo.toml cũng quan trọng không kém! (Muốn set dark mode cho theme đừng quên vào para.toml đổi defaultlightingmode thành "dark" (defaultLightingMode = "dark")