Revert slug change

This commit is contained in:
Endeavorance 2024-05-12 09:15:44 -04:00
parent ec5d7296dc
commit 71ed28b3f2
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "@endeavorance/hammerstone", "name": "@endeavorance/hammerstone",
"version": "0.1.2", "version": "0.1.3",
"description": "Load and manipulate Obsidian vault data", "description": "Load and manipulate Obsidian vault data",
"type": "module", "type": "module",
"exports": "./bin/hammerstone.js", "exports": "./bin/hammerstone.js",

View file

@ -61,7 +61,7 @@ export default class MarkdownDocument {
this.dirname = path.relative(vaultPath, fileDirname); this.dirname = path.relative(vaultPath, fileDirname);
this.taxonomy = this.dirname.split(path.sep); this.taxonomy = this.dirname.split(path.sep);
this.filename = path.basename(filePath, ".md"); this.filename = path.basename(filePath, ".md");
this.slug = slug(`${this.taxonomy.join("-")}-${this.filename}`); this.slug = slug(this.filename);
this._content = rawFileContent; this._content = rawFileContent;
this.contentHistory = [rawFileContent]; this.contentHistory = [rawFileContent];
this._frontmatter = frontmatter; this._frontmatter = frontmatter;