From 1b912272df2e679f4f688a5870204641923e63dd Mon Sep 17 00:00:00 2001 From: LaySent Date: Tue, 17 Oct 2017 10:27:44 +0800 Subject: [PATCH] feat: make whole search result clickable (#285) --- src/plugins/search/component.js | 4 +++- src/themes/basic/_layout.css | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/search/component.js b/src/plugins/search/component.js index 35e5dee2..abc12dea 100644 --- a/src/plugins/search/component.js +++ b/src/plugins/search/component.js @@ -94,8 +94,10 @@ function doSearch (value) { let html = '' matchs.forEach(post => { html += `
-

${post.title}

+ +

${post.title}

${post.content}

+
` }) diff --git a/src/themes/basic/_layout.css b/src/themes/basic/_layout.css index d05e7457..0fb37c0a 100644 --- a/src/themes/basic/_layout.css +++ b/src/themes/basic/_layout.css @@ -52,6 +52,7 @@ div#app { .search .search-keyword { color: var(--theme-color, $color-primary); font-style: normal; + font-weight: bold; } html,