diff --git a/website/config.toml b/website/config.toml index 88ab2744..9b82512d 100644 --- a/website/config.toml +++ b/website/config.toml @@ -37,7 +37,7 @@ disablePathToLower = true [menu] [[menu.before]] - name = "被人嘲笑的梦想" + name = "Blog" url = "https://halfrost.com" weight = 10 [[menu.before]] diff --git a/website/content/menu/index.md b/website/content/menu/index.md index 810bcfd1..9240299d 100644 --- a/website/content/menu/index.md +++ b/website/content/menu/index.md @@ -2,6 +2,8 @@ headless: true --- +
+ - [**Example Site**]({{< relref "/docs/example" >}}) - [Table of Contents]({{< relref "/docs/example/table-of-contents" >}}) - [With ToC]({{< relref "/docs/example/table-of-contents/with-toc" >}}) diff --git a/website/themes/book/layouts/partials/docs/footer.html b/website/themes/book/layouts/partials/docs/footer.html index e171077d..f93bde8d 100644 --- a/website/themes/book/layouts/partials/docs/footer.html +++ b/website/themes/book/layouts/partials/docs/footer.html @@ -21,4 +21,5 @@ {{ end }} +{{ partial "docs/gitalk.html" . }} diff --git a/website/themes/book/layouts/partials/docs/gitalk.html b/website/themes/book/layouts/partials/docs/gitalk.html new file mode 100644 index 00000000..deba2045 --- /dev/null +++ b/website/themes/book/layouts/partials/docs/gitalk.html @@ -0,0 +1,23 @@ +{{ if .Site.Params.enableGitalk }} +
+ + + +{{ end }} diff --git a/website/themes/book/layouts/partials/docs/header.html b/website/themes/book/layouts/partials/docs/header.html index 089859cc..7f825759 100644 --- a/website/themes/book/layouts/partials/docs/header.html +++ b/website/themes/book/layouts/partials/docs/header.html @@ -10,4 +10,7 @@ Table of Contents {{ end }} + + +