Skip to content

Commit

Permalink
Some exception that might not work
Browse files Browse the repository at this point in the history
Well, I've spent the best part of the morning trying to find out why [this](https://github.com/orgs/community/discussions/108272) happened; I [got to raise this issue](benbalter/jekyll-relative-links#93) but at any rate it's easier to fix the documentation than fixing the issue. The issue should be right around this line https://github.com/benbalter/jekyll-relative-links/blob/9f05f8524cd974fc151d0d960ae3ad2e4935d3c6/lib/jekyll-relative-links/generator.rb#L52, and I might try to fix it some time in the future, but meanwhile I (or someone else) gets around to do it, gets fixed, and deployed downstream to GitHub pages (which is where I use), this little fix can help lost souls like myself save a bit of time, right? Lots of love to you and all the world in this Valentine day!
  • Loading branch information
JJ authored Feb 14, 2024
1 parent 303915e commit c418b3b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/reusables/repositories/relative-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,13 @@ A relative link is a link that is relative to the current file. For example, if

{% data variables.product.product_name %} will automatically transform your relative link or image path based on whatever branch you're currently on, so that the link or path always works. The path of the link will be relative to the current file. Links starting with `/` will be relative to the repository root. You can use all relative link operands, such as `./` and `../`.

Please not that using links in this way:

```markdown
[this
is a perfectly good relative link](link/relative)
```

might now work. Please keep the text link in a single page.

Relative links are easier for users who clone your repository. Absolute links may not work in clones of your repository - we recommend using relative links to refer to other files within your repository.

0 comments on commit c418b3b

Please sign in to comment.