diff --git a/src/global.js b/src/global.js index 08d4e0f..df9d66a 100644 --- a/src/global.js +++ b/src/global.js @@ -1,4 +1,5 @@ import Koa from "koa" +import { logger } from "./logger.js" const app = new Koa() diff --git a/src/views/layouts/empty.pug b/src/views/layouts/empty.pug index bc820f8..6e0fb14 100644 --- a/src/views/layouts/empty.pug +++ b/src/views/layouts/empty.pug @@ -17,7 +17,10 @@ block $$content .left.menu.desktop-only a.menu-item( href="/articles" - class=(currentPath === '/articles' || currentPath === '/articles/' ? 'text-blue-600 font-semibold underline' : '') + class=(currentPath === '/articles' || currentPath === '/articles/' + ? 'text-blue-600 font-bold border-b-2 border-blue-600' + : 'text-gray-700 hover:text-blue-600 hover:border-b-2 hover:border-blue-400' + ) ) 所有文章 if !isLogin .right.menu.desktop-only