add ability to populate slug field
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
# Note Tagging & SEO Automation
|
||||
|
||||
Automatically tag your Obsidian notes and add SEO metadata using a local LLM.
|
||||
Automatically tag your Obsidian notes, add slugs, and add SEO metadata using a local LLM.
|
||||
|
||||
The script requires 4 frontmatter fields named as such:
|
||||
The script requires 5 frontmatter fields named as such:
|
||||
- tags
|
||||
- seo-title
|
||||
- seo-description
|
||||
- seo-keywords
|
||||
- slug
|
||||
|
||||
**Note:** The script sends only the first 20,000 characters of the note to the LLM. This should be more than sufficient for most notes, however if you have extremely long notes then you can increase this amount by editing the following line in `tag-notes.py`:
|
||||
|
||||
```py
|
||||
llm_response = call_llm(None, body[:20000], taxonomy) # Limit content to first 20000 chars
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
@@ -41,6 +48,7 @@ The script will:
|
||||
- ✓ Add SEO title (clean, non-clickbaity)
|
||||
- ✓ Add SEO description (150-160 chars, factual)
|
||||
- ✓ Add SEO keywords (generous, 10-15 keywords)
|
||||
- ✓ Add slug based off of filename
|
||||
- ✓ **Only updates empty fields** - preserves existing values
|
||||
- ✓ Updates files directly (no confirmation needed)
|
||||
- ✓ **Only touches**: `tags`, `seo-title`, `seo-description`, `seo-keywords`
|
||||
|
||||
Reference in New Issue
Block a user