diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-05-30 20:50:08 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-05-30 23:22:51 +0200 |
commit | aa7c486e76ec119fa6a73cdeb01789a9ba67aa19 (patch) | |
tree | d2db7149fb5d44817f11d839c2306b0eeb644326 /layouts/_default/_markup/render-link.html | |
parent | 1608ade3f4fd949d1b6db687d992945f7d6df5c0 (diff) |
Add anchors to headings
Diffstat (limited to 'layouts/_default/_markup/render-link.html')
-rw-r--r-- | layouts/_default/_markup/render-link.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 4995a32..464fa1a 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -6,7 +6,7 @@ {{- define "portable-link" -}} {{- $destination := .Destination }} - {{- $isRemote := or (in .Destination "://") (strings.HasPrefix .Destination "//") }} + {{- $isRemote := or (in .Destination ":") (strings.HasPrefix .Destination "//") }} {{- if not $isRemote }} {{- $url := urls.Parse .Destination }} {{- $path := strings.TrimSuffix "/_index.md" $url.Path }} |