From 65ea217d941890a1ac79d540a6b6aae5cf6e23bf Mon Sep 17 00:00:00 2001 From: walcutt Date: Mon, 30 Jan 2023 16:57:30 -0500 Subject: [PATCH] More search page styling changes --- _pages/search.md | 2 +- _sass/_style.scss | 12 ++++++++++++ search.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/_pages/search.md b/_pages/search.md index 7756ecf..d93b92b 100644 --- a/_pages/search.md +++ b/_pages/search.md @@ -17,7 +17,7 @@ permalink: /search json:'{{ site.baseurl }}/search.json', searchResultTemplate: '
{title}
{excerpt}
', // searchResultTemplate: '
  • {title}
  • ', - noResultsText: 'No results found', + noResultsText: '
    No results found
    ', limit: 10 }); \ No newline at end of file diff --git a/_sass/_style.scss b/_sass/_style.scss index b7e8954..8381528 100644 --- a/_sass/_style.scss +++ b/_sass/_style.scss @@ -131,6 +131,18 @@ nav { margin-bottom: 1em; } +#search-input { + width: 100%; + background: $color-box-background; + border: 0px; + border-radius: 4px; + padding: 0.5em; +} + +#search-input:focus { + background: $color-primary; +} + code { background: #f5f5f5; padding: 0.1em 0.2em; diff --git a/search.json b/search.json index eaca25e..f501898 100644 --- a/search.json +++ b/search.json @@ -10,7 +10,7 @@ layout: none "url" : "{{ site.baseurl }}{{ post.url }}", "date" : "{{ post.date }}", "content" : "{{ post.content | strip_html | strip_newlines | smartify }}", - "excerpt" : "{{ post.content | strip_html | strip_newlines | smartify | truncatewords: 10}}" + "excerpt" : "{{ post.content | strip_html | strip_newlines | smartify | truncatewords: 20 }}" } {% unless forloop.last %},{% endunless %} {% endfor %} ] \ No newline at end of file