diff --git a/markdown/incoming/adding-external-link-markers-in-hugo-and-bear.md b/markdown/incoming/adding-external-link-markers-in-hugo-and-bear.md new file mode 100644 index 0000000..9a6c60a --- /dev/null +++ b/markdown/incoming/adding-external-link-markers-in-hugo-and-bear.md @@ -0,0 +1,37 @@ +--- +title: "Adding External Link Markers in Hugo and Bear" +published: "2024-06-30T13:35:31.396110Z" +updated: "2024-06-30T13:35:31.396110Z" +--- + +I tend to drop a lot of links in my posts. Some point to other posts/pages within the same site, but many point to external sites. As a *reader*, I like to know where a link is going to take me, but as a *writer*, I'm not always great about indicating that context within the text. + +I mentioned in my [inaugural "This Week" post](/this-week-2024-06-29/) that I recently discovered how to use [Hugo's link render-hook templates](https://gohugo.io/render-hooks/links/) to automatically apply a little `↗` marker to external links posted on [runtimeterror](https://runtimeterror.dev). All that took was creating `layouts/_default/_markup/render-link.html` with the following content to overwrite the default rendering: + +