From 3b8e81d0cb3726cda0622f6b65e1e7ec2ea0bc18 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Tue, 30 Nov 2021 21:57:53 -0500 Subject: [PATCH] Add Docs/ Comments feature docs --- configuration.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/configuration.md b/configuration.md index 0416f07..0c564de 100644 --- a/configuration.md +++ b/configuration.md @@ -52,3 +52,18 @@ To enable table of contents for a pages, set `enabletoc: true`. ## Custom partials The partial `head-custom.html` is applied after `head.html`, you can create your own copy at `layouts/partials/head-custom.html` to overwrite it. + +## Docs/ Comments + +Create a collapsible area at the bottom of the page to embed something like Etherpad, Hedgedoc, or a commenting plugin. `HUGO_ENV` must equal production to show, otherwise a message will show instead. + +Overwrite this partial `layouts/partials/docscomments-content.html` with what to include. + +This can be disabled on your entire site: + +```toml +[params] + disableDocsComments = true +``` + +For a specific page: `disableDocsComments = true`