From 1d96afbb2f933640155dcbf2a2406e6224d9910c Mon Sep 17 00:00:00 2001 From: nodejh Date: Fri, 24 Mar 2017 02:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/_default/single.html | 3 +++ static/css/style.css | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6dbb01a..5ada5af 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -27,6 +27,9 @@ +
+ {{ .TableOfContents }} +
{{ .Content }}
diff --git a/static/css/style.css b/static/css/style.css index 8de4f4f..239b004 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -867,6 +867,17 @@ code { } +/** + * Table of content + */ + #toc ul { + list-style-type: none; + } + + #toc ul ul { + list-style-type: disc; + } + /** * tags page */