Bläddra i källkod

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.
George Cushen 5 år sedan
förälder
incheckning
9ef1663760
3 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      .editorconfig
  2. 1 1
      layouts/_default/_markup/render-link.html
  3. 1 1
      netlify.toml

+ 1 - 1
.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

+ 1 - 1
layouts/_default/_markup/render-link.html

@@ -1,2 +1,2 @@
 {{/* A Hugo Markdown render hook to parse links, opening external links in new tabs. */}}
-<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>
+<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="noopener"{{ end }}>{{ .Text | safeHTML }}</a>

+ 1 - 1
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]