add table of contents

This commit is contained in:
Huy Tran 2018-09-30 09:32:57 +10:00
parent 1b974ce9d3
commit b517159c0e
13 changed files with 161 additions and 23 deletions

View file

@ -1,3 +1,10 @@
{{ partial "header/styles-highlight.html" . }}
<link rel="stylesheet" href="{{ "css/hyde-hyde.css" | relURL }}">
<link rel="stylesheet" href="{{ "css/print.css" | relURL }}" media="print">
{{ with .Site.Params.toc }}
{{ if eq . "hugo" }}
<link rel="stylesheet" href="{{ "css/hugo-toc.css" | relURL }}">
{{ else if eq . "tocbot"}}
<link rel="stylesheet" href="{{ "css/tocbot.css" | relURL }}">
{{ end }}
{{ end }}