Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaldrummerj committed Aug 7, 2024
1 parent f6ef08b commit 3a96302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/posts/2022/022522-hugo-link-other-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For Hugo based websites, when a link goes to an external website, I prefer to ha

<!--more-->

To accomplish the goal of opening all external links in a new tab, you need to override the Hugo default behavior for rendering links by creating the file `layouts/_defaults/_markup/render-link.html`.
To accomplish the goal of opening all external links in a new tab, you need to override the Hugo default behavior for rendering links by creating the file `layouts/_default/_markup/render-link.html`.

In the render-link.html, we need to look at the prefix of the `.Destination` to see if it starts with http or https and if it does then add the `target="_blank"

Expand Down

0 comments on commit 3a96302

Please sign in to comment.