Skip to content

Commit 016834e

Browse files
committed
Add highlighting for algolia
1 parent ec3ebda commit 016834e

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

_config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ algolia:
4242
search_only_api_key: 4f0ffe8c2149d573ab7f386921c55713
4343
settings:
4444
attributesToSnippet: ['*:33']
45+
highlightPreTag: '<em class="ais-match-highlight">'
46+
highlightPostTag: '</em>'
4547

4648
# Authors' info in `_data/authors.yml`
4749
# Tags' info in `_data/tags_info.yml`

assets/built/screen.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/built/screen.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/screen.css

+6
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ The knock-on effect of this is ugly browser-scroll bars at the bottom, so 80px o
280280
}
281281

282282
/*Search*/
283+
.ais-match-highlight{
284+
font-weight: bold;
285+
text-decoration-line: underline;
286+
text-decoration-style: solid;
287+
color: #000000;
288+
}
283289

284290
.ais-search-box{
285291
padding-top: 12px;

0 commit comments

Comments
 (0)