diff options
author | tosi <tosi16@gmail.com> | 2021-03-29 17:26:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 17:26:30 +0300 |
commit | 603eab4337855d3b891b2e3ac4ed990599ec380c (patch) | |
tree | fd6789ae431e1400fb90af1557149890f72465a3 | |
parent | ff0218f6b66d50bfeead9a4c29f3313a5ec04b7d (diff) |
-rw-r--r-- | README.md | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -10,6 +10,7 @@ Inkblotty is a Hugo theme based on [Inkblot](https://github.com/mgsisk/inkblot). - Share Button (Facebook, Twitter, Hatena Bookmark) - Comment form (Disqus) - Related Posts + - Table of Contents by shortcode - Article list - Summarize and Readmore - Sidebar @@ -34,4 +35,26 @@ Inkblotty is a Hugo theme based on [Inkblot](https://github.com/mgsisk/inkblot). 2. Edit `config.toml` of your hugo site. ## Configuration +### Sample configuration file [exampleSite/config.toml](https://github.com/tosi29/inkblotty/blob/master/exampleSite/config.toml) is for reference. + +### Table of Contents +This theme has shortcode to create Table of Contents. +To insert Table of Contents, write the following code in markdown. +``` +{{< toc >}} +``` + +This is sample configuration of TOC in `config.toml` +``` +[markup] + [markup.tableOfContents] + startLevel = 1 + endLevel = 3 + ordered = false +``` +If you set `startLevel = 2`, `<h1>` tag is ignored. + + +### Favicon +Put `favicon.ico` file in `static` directory to set favicon. |