Skip to content

Commit

Permalink
Update links.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Jul 29, 2024
1 parent b72b97b commit 06f38bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheatsheets/jekyll/templating/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The downside to this approach that it uses a literal string - is does not valida

```markdown
- [Link text]({{ '/' | relative_url }})
- [Link text]({{ 'asserts/foo.js' | relative_url }})
- [Link text]({{ 'assets/foo.js' | relative_url }})
```

If you reference a page object, then it is safer to expect the URL to be valid - use of config settings might affect this though such as permalink or collections.
Expand Down

0 comments on commit 06f38bb

Please sign in to comment.