Skip to content

Commit e8ea6b3

Browse files
authored
Merge pull request #135 from Peefy/add-subscribe-form
feat: add subscribe form at index page
2 parents 2c715db + 299d919 commit e8ea6b3

File tree

8 files changed

+519
-134
lines changed

8 files changed

+519
-134
lines changed

docusaurus.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,17 @@ const config = {
310310
anonymizeIP: true,
311311
},
312312
],
313+
async function myPlugin(context, options) {
314+
return {
315+
name: "docusaurus-tailwindcss",
316+
configurePostCss(postcssOptions) {
317+
// Appends TailwindCSS and AutoPrefixer.
318+
postcssOptions.plugins.push(require("tailwindcss"));
319+
postcssOptions.plugins.push(require("autoprefixer"));
320+
return postcssOptions;
321+
},
322+
};
323+
},
313324
],
314325
};
315326

i18n/en/code.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,5 +514,11 @@
514514
},
515515
"Define your environmental rules to ensure consistency and stability": {
516516
"message": "Define your environmental rules to ensure consistency and stability"
517+
},
518+
"Subscribe to Newsletter": {
519+
"message": "Subscribe to Newsletter"
520+
},
521+
"Subscribe": {
522+
"message": "Subscribe"
517523
}
518524
}

i18n/zh-CN/code.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,5 +343,11 @@
343343
},
344344
"Define your environmental rules to ensure consistency and stability": {
345345
"message": "定义环境规则以确保配置的一致性和稳定性"
346+
},
347+
"Subscribe to Newsletter": {
348+
"message": "邮件订阅"
349+
},
350+
"Subscribe": {
351+
"message": "确认"
346352
}
347353
}

0 commit comments

Comments
 (0)