This is an automated email from the ASF dual-hosted git repository. mssun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-website.git
commit fbb924c39ab0d89a129fd277df879a073f7607cb Author: Mingshen Sun <[email protected]> AuthorDate: Sat Jun 6 22:47:58 2020 -0700 Tweak SEO config --- site/.vuepress/config.js | 21 ++++++++++++++++++++- site/index.md | 2 ++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/site/.vuepress/config.js b/site/.vuepress/config.js index e1426d4..c4d309d 100644 --- a/site/.vuepress/config.js +++ b/site/.vuepress/config.js @@ -6,6 +6,8 @@ module.exports = { search: true, smoothScroll: true, lastUpdated: 'Last Updated', + twitter: '@ApacheTeaclave', + domain: 'https://teaclave.apache.org', nav: [ { text: 'About', link: '/' }, { text: 'Community', link: '/community/' }, @@ -78,7 +80,6 @@ module.exports = { }, plugins: [ '@vuepress/plugin-back-to-top', - 'seo', [ '@vuepress/blog', { @@ -101,5 +102,23 @@ module.exports = { notFoundPath: '/404.html', }, ], + [ + 'seo', + { + customMeta: (add, context) => { + + const { + $site, // Site configs provided by Vuepress + $page, // Page configs provided by Vuepress + + // All the computed options from above: + siteTitle, title, description, author, tags, + twitterCard, type, url, image, publishedAt, modifiedAt, + } = context; + + add('twitter:site', $site.themeConfig.twitter); + }, + } + ], ], } diff --git a/site/index.md b/site/index.md index cc77879..c696736 100644 --- a/site/index.md +++ b/site/index.md @@ -1,5 +1,7 @@ --- +title: Apache Teaclave (Incubating) home: true +description: Apache Teaclave (Incubating) is an open source universal secure computing platform, making computation on privacy-sensitive data safe and simple. heroText: Apache Teaclave (Incubating) tagline: an open source universal secure computing platform, making computation on privacy-sensitive data safe and simple actionText: Get Started → --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
