instead of hardcoding .dragonglass as ignored, we ignore the config file
This commit is contained in:
parent
e51d597961
commit
bb5d5ae14e
|
@ -109,6 +109,7 @@ class Context:
|
|||
if config_path.exists() and config_path.is_file():
|
||||
with open(config_path, "rb") as f:
|
||||
self.config = tomllib.load(f)
|
||||
self._ignore_patterns.append(config_filename)
|
||||
|
||||
# Load several base variables.
|
||||
templates_section = self.config.get("templates", {})
|
||||
|
|
|
@ -14,8 +14,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
"""The paths that are always to be ignored."""
|
||||
STATIC_IGNORE = [
|
||||
'.obsidian',
|
||||
'.dragonglass'
|
||||
'.obsidian'
|
||||
]
|
||||
|
||||
"""The path matching Markdown files."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user