instead of hardcoding .dragonglass as ignored, we ignore the config file

This commit is contained in:
Amy G. Bowersox 2024-08-24 02:01:04 -06:00
parent e51d597961
commit bb5d5ae14e
2 changed files with 2 additions and 2 deletions

View File

@ -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", {})

View File

@ -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."""