Links
Link to one of your posts
Section titled “Link to one of your posts”Ctrl+Shift+K links to another post without leaving the keyboard.
- Select the text you want to become the link, or leave nothing selected to use the post’s title.
- Press Ctrl+Shift+K, or right-click and choose Link….
- Type part of the post’s title and press Enter.
The picker writes the link in one of three formats, chosen at the bottom of the picker and remembered for next time:
| Format | Example | Works on |
|---|---|---|
| Page URL | [text](/blog/my-post/) |
Every Astro site. The default. |
| File path | [text](../blog/my-post.md) |
Sites with a plugin that turns .md links into URLs |
| Wikilink | [[my-post|text]] |
Sites with a wikilink plugin, such as Obsidian-style themes |
Link to anything else
Section titled “Link to anything else”- Ctrl+K wraps the selection in
[text]()and puts the caret where the URL goes. - Paste a URL while text is selected, and the text becomes a link to it.
- Copy heading link in the command palette copies a link to the heading the caret is in, with the anchor your site generates for it.
Renaming keeps links working
Section titled “Renaming keeps links working”When you rename or move a post, Zeku updates the links to it across your site:
- A page URL link follows the post to its new URL, so
/blog/old-name/becomes/blog/new-name/. If the post sets its URL with aslugfield, its URL doesn’t change, and neither do the links. - A file path link gets the new path.
- A wikilink gets the new name.
When the rename changes the post’s slug, Zeku also adds the old slug to the post’s redirects field, so a theme that reads it can send old links to the new page. Change the field name, or turn this off, in Settings > Usability > Redirect frontmatter key.
Broken links
Section titled “Broken links”The Links tab of the right panel lists the open post’s links, and flags any that point at a file that doesn’t exist. The SEO audit checks internal links too.