[READ-ONLY] Mirror of https://github.com/FoxxMD/blog. blog.foxxmd.dev
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: code block links self vs. blank

FoxxMD (Apr 16, 2025, 7:12 PM UTC) 07d12d13 ed1c9e1c

+5 -1
+5 -1
_includes/refactor-content.html
··· 199 199 {% endif %} 200 200 201 201 {% if _label_link != '' %} 202 + {% assign _target = '_self' %} 203 + {% if _label_link contains 'http' %} 204 + {% assign _target = '_blank' %} 205 + {% endif %} 202 206 {% capture _label %} 203 - <a target="_blank" href="{{ _label_link | strip }}" data-label-text="{{ _label_text | strip }}"><i class="{{ _label_icon }}"></i></a> 207 + <a target="{{ _target }}" href="{{ _label_link | strip }}" data-label-text="{{ _label_text | strip }}"><i class="{{ _label_icon }}"></i></a> 204 208 {% endcapture %} 205 209 {% else %} 206 210 {% capture _label %}