diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..97ce10b51 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,91 @@ +{ + "name": "Oddleventy", + "image": "node:16", + "containerEnv": { + "SHELL": "/bin/bash" + }, + "forwardPorts": [8080], + + "customizations": { + "vscode": { + "extensions": [ + "csstools.postcss", + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "formulahendry.auto-rename-tag", + "naumovs.color-highlight", + "stkb.rewrap", + "stylelint.vscode-stylelint", + "syler.sass-indented", + "tyriar.sort-lines", + "xabikos.javascriptsnippets" + ], + "settings": { + "terminal.integrated.profiles.linux": { + "bash": { + "path": "/bin/bash" + } + }, + "terminal.integrated.defaultProfile.linux": "bash", + "editor.bracketPairColorization.enabled": true, + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + }, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "editor.tabSize": 2, + "eslint.validate": ["javascript", "typescript"], + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "files.trimTrailingWhitespace": true, + "javascript.suggestionActions.enabled": false, + "remote.extensionKind": { + "ms-azuretools.vscode-docker": "workspace" + }, + "typescript.preferences.quoteStyle": "single", + "typescript.tsdk": "node_modules/typescript/lib", + "[javascript]": { + "editor.rulers": [80] + }, + "[markdown]": { + "editor.rulers": [80] + }, + "[typescript]": { + "editor.rulers": [80] + }, + "[html]": { + "editor.formatOnSave": false + }, + "[scss]": { + "editor.rulers": [80], + "editor.codeActionsOnSave": { + "source.fixAll.stylelint": true + } + }, + "files.exclude": { + "**/.git": true, + "**/.DS_Store": true, + ".coverage": true, + "coverage": true, + "htmlcov": true, + ".tags": true, + ".cache": true, + "collected-assets": true, + "staticfiles": true, + "**/*.egg-info": true + }, + "search.exclude": { + "**/node_modules": true, + "**/*.css.map": true, + "**/*.js.map": true, + "yarn.lock": true, + "yarn-debug.log": true, + "yarn-error.log": true, + "static/built": true, + "static/docs": true, + ".yarn": true + } + } + } + } +} diff --git a/content/_includes/contact.macros.njk b/content/_includes/contact.macros.njk index 022543e85..32dc2a361 100644 --- a/content/_includes/contact.macros.njk +++ b/content/_includes/contact.macros.njk @@ -38,6 +38,7 @@ params: data-form="{{ name or 'contact' }}" method="POST" action="{{ next }}" + netlify-honeypot="subject" data-netlify="true" {{ utility.show_attrs(attrs) }}>
@@ -61,6 +62,11 @@ params: required=true ) }} + +