Add a editorconfig file.

This commit is contained in:
Fredrik Jonsson 2023-04-25 09:15:17 +02:00
commit 9017bdebf5
2 changed files with 22 additions and 1 deletions

20
.editorconfig Normal file
View file

@ -0,0 +1,20 @@
# Editor configuration normalization
# @see http://editorconfig.org/
# This is the top-most .editorconfig file; do not search in parent directories.
root = true
# All files.
[*]
end_of_line = LF
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{md,mdown,markdown}]
indent_size = 4
trim_trailing_whitespace = false
insert_final_newline = false
x-soft-wrap-text = true

View file

@ -22,7 +22,8 @@ copy_files=("themes/zen/assets/sass/_colors.scss:assets/sass/_colors.scss"
"themes/zen/assets/sass/_custom.scss:assets/sass/_custom.scss"
"themes/zen/assets/sass/_zen.scss:assets/sass/_zen.scss"
"themes/zen/layouts/index.html:layouts/index.html"
"themes/zen/exampleSite/config.yaml:config.yaml")
"themes/zen/exampleSite/config.yaml:config.yaml"
"themes/zen/.editorconfig:.editorconfig")
for files in "${copy_files[@]}" ; do
if [[ ! -f "${files##*:}" ]]; then