From 98d8bcc8a5efabca8643399a3b8a326c20ead45e Mon Sep 17 00:00:00 2001 From: Liyang Zhang Date: Tue, 29 Oct 2019 23:02:44 +0800 Subject: [PATCH] Add subscribe email widget (#548) --- languages/en.yml | 3 +++ languages/zh-TW.yml | 3 +++ layout/widget/subscribe_email.ejs | 30 +++++++++++++++++++++++++ layout/widget/subscribe_email.locals.js | 3 +++ 4 files changed, 39 insertions(+) create mode 100644 layout/widget/subscribe_email.ejs create mode 100644 layout/widget/subscribe_email.locals.js diff --git a/languages/en.yml b/languages/en.yml index 2e064eb..a938a03 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -19,6 +19,9 @@ widget: links: 'Links' tag_cloud: 'Tag Cloud' catalogue: 'Catalogue' + email: + title: 'Subscribe Email' + button: 'Subscribe' article: more: 'Read More' comments: 'Comments' diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index bacc55e..a705b73 100644 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -19,6 +19,9 @@ widget: links: '連結' tag_cloud: '標籤雲' catalogue: '文章目錄' + email: + title: '訂閱 Email' + button: '訂閱' article: more: '繼續閱讀' comments: '評論' diff --git a/layout/widget/subscribe_email.ejs b/layout/widget/subscribe_email.ejs new file mode 100644 index 0000000..ca85489 --- /dev/null +++ b/layout/widget/subscribe_email.ejs @@ -0,0 +1,30 @@ +
+
+ +
+
diff --git a/layout/widget/subscribe_email.locals.js b/layout/widget/subscribe_email.locals.js new file mode 100644 index 0000000..fe59b94 --- /dev/null +++ b/layout/widget/subscribe_email.locals.js @@ -0,0 +1,3 @@ +module.exports = (ctx, locals) => { + return locals; +}