From 82ba843e42198d2ef2829eb6e668377bc9ebe4be Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 15 Nov 2021 23:54:18 +0000
Subject: [PATCH] search styling
---
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