feat(docsearch): Add custom classes on titles for better crawling
This commit is contained in:
parent
438249fb31
commit
fc79098638
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ block content
|
||||||
ul.list-reset.text-1.mb-1.md_ml-0x
|
ul.list-reset.text-1.mb-1.md_ml-0x
|
||||||
each page in category.pages
|
each page in category.pages
|
||||||
- var isCurrent = current.url === page.url
|
- var isCurrent = current.url === page.url
|
||||||
- var additionalClasses = isCurrent ? 'text-nebula' : 'text-solstice'
|
- var additionalClasses = isCurrent ? 'current-page text-nebula' : 'text-solstice'
|
||||||
li
|
li
|
||||||
a.block.py-0x(href=page.url, class=additionalClasses)=page.title
|
a.block.py-0x(href=page.url, class=additionalClasses)=page.title
|
||||||
- var hasSubLinks = (page.headings && page.headings.length)
|
- var hasSubLinks = (page.headings && page.headings.length)
|
||||||
|
|
@ -42,7 +42,7 @@ block content
|
||||||
a(href=site.url) DocSearch
|
a(href=site.url) DocSearch
|
||||||
span >
|
span >
|
||||||
a(href=`${site.url}/what-is-docsearch.html`) Documentation
|
a(href=`${site.url}/what-is-docsearch.html`) Documentation
|
||||||
.text-5.lg_text-7.uppercase.tracking-poppins.text-solstice.bold.mb-2=current.title
|
.custom-main-title.text-5.lg_text-7.uppercase.tracking-poppins.text-solstice.bold.mb-2=current.title
|
||||||
!=current.content
|
!=current.content
|
||||||
// Include the apply form
|
// Include the apply form
|
||||||
if current.includeForm
|
if current.includeForm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue