Under [[Daily Note|General Templates]] you can find information
The new note template contains the created at, modified at, and permalink metadata that is ubiquitous across every note in the vault.
In Obsidian, you can automatically add a permalink to each new note by utilizing the Templater plugin. This approach ensures that every note includes a permalink based on its current title. Here’s how to set it up:
# Permalink Setup
**1. Install and Configure the Templater Plugin:**
• Open Obsidian’s **Settings**.
• Navigate to **Community Plugins** and click on **Browse**.
• Search for **Templater**, install it, and then enable the plugin.
• After enabling, go to **Templater’s settings** to configure the folder where your templates will be stored.
**2. Create a Template with a Permalink Field:**
• In your designated templates folder, create a new note (e.g., NewNoteTemplate).
• Add the following content to this template:
```
---
permalink: <% tp.file.title.replace(/\s+/g, '-') %>
---
# <% tp.file.title %>
```
**Explanation:**
• <% tp.file.title %>: Inserts the current note’s title.
• .replace(/\s+/g, '-'): Replaces any spaces in the title with hyphens, creating a URL-friendly permalink.
**3. Apply the Template to New Notes:**
• When creating a new note, use the Templater plugin to apply the NewNoteTemplate. This action will insert the frontmatter with the permalink field set to the note’s title (with spaces replaced by hyphens), along with the note’s title as a heading.
**Considerations:**
• **Dynamic Updates:** The permalink is set at the time of the note’s creation. If you rename the note later, the permalink in the frontmatter won’t automatically update. To maintain consistency, you’ll need to manually update the permalink field if the note’s title changes.
• **Alternative Plugins:** While Templater is a powerful tool for this purpose, you might also explore other community plugins like **Note Auto Creator**. This plugin can automatically create new notes when links are created to them and can apply templates to these new notes. [GitHub - SimonTC/obsidian-note-autocreation](https://github.com/SimonTC/obsidian-note-autocreation)
By implementing this setup, every new note you create in Obsidian will automatically include a permalink field in its frontmatter, reflecting the note’s title formatted as a URL-friendly string.