From 9ef1663760217eb6eeb90220d4418789852cf94b Mon Sep 17 00:00:00 2001 From: George Cushen Date: Sat, 8 Feb 2020 21:09:32 +0000 Subject: [PATCH] fix: db716b2349ed952a341818abe7c5ca1ac726a7db Fix Editorconfig auto-added EOF new line to render-link hook, causing whitespace to begin appearing after links - particularly noticeable when there is punctuation after a link. --- .editorconfig | 2 +- layouts/_default/_markup/render-link.html | 2 +- netlify.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 574c0a26..322ae485 100644 --- a/.editorconfig +++ b/.editorconfig @@ -16,5 +16,5 @@ max_line_length = 100 [*.md] trim_trailing_whitespace = false -[layouts/shortcodes/*.html] +[{layouts/shortcodes/*.html, layouts/_default/_markup/*.html}] insert_final_newline = false diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 74871eba..4ff0c2c6 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,2 +1,2 @@ {{/* A Hugo Markdown render hook to parse links, opening external links in new tabs. */}} -{{ .Text | safeHTML }} +{{ .Text | safeHTML }} \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index 577497af..16c777dd 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,7 +5,7 @@ [build.environment] HUGO_THEME = "repo" - HUGO_VERSION = "0.62.2" + HUGO_VERSION = "0.64.0" HUGO_ENABLEGITINFO = "true" [context.production.environment]