From 1fc2da4fe293f47ec47a7b5d33fa94fa3a06bb3b Mon Sep 17 00:00:00 2001
From: Blake Allen <blakesnake100@gmail.com>
Date: Tue, 26 Oct 2021 23:58:37 +0000
Subject: [PATCH] Merge branch 'hugo' of https://github.com/bur3ku/quartz into hugo
---
content/notes/ignore-notes.md | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/content/notes/ignore-notes.md b/content/notes/ignore-notes.md
index ddf48d4..e031421 100644
--- a/content/notes/ignore-notes.md
+++ b/content/notes/ignore-notes.md
@@ -10,11 +10,20 @@
ignoreFiles = [
"/content/templates/*",
"/content/private/*",
- "<your path here>"
+ "<your path here>"
]
```
`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