test(email): add structural guard for shared email partials
This commit is contained in:
@@ -60,6 +60,9 @@ them to users on various events (password reset, digest, ban, etc.).
|
||||
comments. Keep that structure — don't refactor into modern CSS.
|
||||
- Don't hardcode user-facing copy; add/replace `[[email:…]]` keys and define
|
||||
them in the language files.
|
||||
- Run `node scripts/check-emails.js` after converting templates. It enforces
|
||||
the shared-partial structure by requiring a header import, footer import,
|
||||
and `<!-- preheader -->` marker in each `email/*.html` file.
|
||||
- Rebuild (`./nodebb build`) and use the ACP test-email button to verify.
|
||||
|
||||
## References
|
||||
|
||||
Reference in New Issue
Block a user