소스 검색

staticref shortcode: Fix formatting by removing whitespace (Fix #295)

George Cushen 7 년 전
부모
커밋
f752b362f0
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 0
      .editorconfig
  2. 1 3
      layouts/shortcodes/staticref.html

+ 3 - 0
.editorconfig

@@ -15,3 +15,6 @@ max_line_length = 100
 
 [*.md]
 trim_trailing_whitespace = false
+
+[layouts/shortcodes/*.html]
+insert_final_newline = false

+ 1 - 3
layouts/shortcodes/staticref.html

@@ -1,3 +1 @@
-<a href="{{ .Get 0 | absURL }}"{{ if len .Params | eq 2 }} target="_blank"{{ end }}>
-  {{ .Inner }}
-</a>
+<a href="{{ .Get 0 | absURL }}"{{ if len .Params | eq 2 }} target="_blank"{{ end }}>{{ .Inner }}</a>