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
The following commit(s) were added to refs/heads/master by this push:
new 2030d53 Show all post in the index
2030d53 is described below
commit 2030d5375ea8725ae9f18d077994f1255db6bba2
Author: Mingshen Sun <[email protected]>
AuthorDate: Mon Mar 15 17:40:19 2021 -0700
Show all post in the index
---
site/.vuepress/config.js | 3 +++
site/.vuepress/theme/layouts/IndexPost.vue | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/site/.vuepress/config.js b/site/.vuepress/config.js
index 4cad87e..c664d4a 100644
--- a/site/.vuepress/config.js
+++ b/site/.vuepress/config.js
@@ -170,6 +170,9 @@ module.exports = {
dirname: 'blog',
path: '/blog/',
layout: 'IndexPost',
+ pagination: {
+ lengthPerPage: 100,
+ },
itemPermalink: '/blog/:year-:month-:day-:slug',
},
],
diff --git a/site/.vuepress/theme/layouts/IndexPost.vue
b/site/.vuepress/theme/layouts/IndexPost.vue
index 42819cb..4976fa4 100644
--- a/site/.vuepress/theme/layouts/IndexPost.vue
+++ b/site/.vuepress/theme/layouts/IndexPost.vue
@@ -38,7 +38,7 @@
itemscope
itemtype="https://schema.org/BlogPosting"
>
- <h3><NavLink :link="page.path">{{ page.title }}</NavLink> · {{
resolvePostDate(page.frontmatter.date) }}</h3>
+ <h3><NavLink :link="page.path">{{ page.title }}</NavLink> · <small>{{
resolvePostDate(page.frontmatter.date) }}</small></h3>
</article>
</div>
<slot name="bottom" />
@@ -169,7 +169,7 @@ export default {
},
resolvePostDate(date) {
return dayjs(date).format(
- this.$themeConfig.dateFormat || 'MMM DD YYYY'
+ 'MMM DD YYYY' || this.$themeConfig.dateFormat
)
},
resolvePostTags(tags) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]