From 24776624047bea380c51dbb503cdf335d37b83b0 Mon Sep 17 00:00:00 2001 From: Blake Allen <blake.edward.allen@gmail.com> Date: Tue, 26 Oct 2021 19:46:03 +0000 Subject: [PATCH] Merge branch 'hugo' into hugo --- 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