diff --git a/languages/en.yml b/languages/en.yml index b0a513b..7a4264b 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -18,4 +18,5 @@ archives: Archives about: About site_uv: UV site_pv: PV -links: Links \ No newline at end of file +links: Links +top: TOP \ No newline at end of file diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index c8de947..f69a3aa 100644 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -18,4 +18,5 @@ archives: 归档 about: 关于 site_uv: 访问人数 site_pv: 总访问量 -links: 友链 \ No newline at end of file +links: 友链 +top: 顶置 \ No newline at end of file diff --git a/layout/home-content.ejs b/layout/home-content.ejs index 71bfffe..b4e720b 100644 --- a/layout/home-content.ejs +++ b/layout/home-content.ejs @@ -3,7 +3,9 @@ <% page.posts.forEach(post => { %>
  • - <%= post.title %> + + <%= (post.top ? `[${__('top')}] ` : '') + post.title %> +