Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matsuyoshi30/harbor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatsuyoshi <sfbgwm30@gmail.com>2020-03-15 07:58:24 +0300
committermatsuyoshi <sfbgwm30@gmail.com>2020-03-15 07:58:24 +0300
commit4f4927500987c7755769f2cac7ef2a0a3b53be06 (patch)
tree3cf41900f036d8157f4869b8ddd07c4c058ebcc3 /README.md
parent215ca1faa95fae42bda0e0d0d1f1011ae780a05a (diff)
add toc
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6c5ad6b..07317ae 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,7 @@ Simple and minimal personal blog theme for [Hugo](https://gohugo.io/).
- Dark mode
- Syntax Highlight (see [Hugo doc](https://gohugo.io/content-management/syntax-highlighting/))
- Search entire blog posts
+- TOC
## Installation & Update
@@ -85,6 +86,10 @@ title: "Search"
{{<search>}}
```
+### TOC
+
+If you want to use TableOfContent, set true frontmatter `toc`.
+
## Frontmatter example
```
@@ -93,7 +98,14 @@ title = "Article title here"
date = 2020-02-15T20:00:00+09:00
tags = ["tags here"]
draft = false
+toc = false
+++
+
+# Title
+
+<!-- toc -->
+
+## Contents
```
## LICENSE