From c1c061fbea8f6cdc6aec4992d21d2df73dc6ba4e Mon Sep 17 00:00:00 2001 From: Jacky Zhao <j.zhao2k19@gmail.com> Date: Mon, 25 Oct 2021 06:17:20 +0000 Subject: [PATCH] bump docs --- content/notes/ignore-notes.md | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/content/notes/ignore-notes.md b/content/notes/ignore-notes.md index 49bf5f3..e031421 100644 --- a/content/notes/ignore-notes.md +++ b/content/notes/ignore-notes.md @@ -15,6 +15,15 @@ ``` `ignoreFiles` supports the use of Regular Expressions (RegEx) so you can ignore patterns as well (e.g. ignoring all `.png`s by doing `\\.png$`). +To ignore a specific file, you can also add the tag `draft: true` to the frontmatter of a note. + +```markdown +--- +title: Some Private Note +draft: true +--- +... +``` More details in [Hugo's documentation](https://gohugo.io/getting-started/configuration/#ignore-content-and-data-files-when-rendering). -- Gitblit v1.10.0