Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc79098

Browse files
committed
feat(docsearch): Add custom classes on titles for better crawling
1 parent 438249f commit fc79098

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/_layouts/two-columns.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ block content
2727
ul.list-reset.text-1.mb-1.md_ml-0x
2828
each page in category.pages
2929
- var isCurrent = current.url === page.url
30-
- var additionalClasses = isCurrent ? 'text-nebula' : 'text-solstice'
30+
- var additionalClasses = isCurrent ? 'current-page text-nebula' : 'text-solstice'
3131
li
3232
a.block.py-0x(href=page.url, class=additionalClasses)=page.title
3333
- var hasSubLinks = (page.headings && page.headings.length)
@@ -42,7 +42,7 @@ block content
4242
a(href=site.url) DocSearch
4343
span  > 
4444
a(href=`${site.url}/what-is-docsearch.html`) Documentation
45-
.text-5.lg_text-7.uppercase.tracking-poppins.text-solstice.bold.mb-2=current.title
45+
.custom-main-title.text-5.lg_text-7.uppercase.tracking-poppins.text-solstice.bold.mb-2=current.title
4646
!=current.content
4747
// Include the apply form
4848
if current.includeForm

0 commit comments

Comments
 (0)