Skip to content

Commit

Permalink
feat(docsearch): Add custom classes on titles for better crawling
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelastic committed Aug 20, 2018
1 parent 438249f commit fc79098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/_layouts/two-columns.pug
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ block content
ul.list-reset.text-1.mb-1.md_ml-0x
each page in category.pages
- var isCurrent = current.url === page.url
- var additionalClasses = isCurrent ? 'text-nebula' : 'text-solstice'
- var additionalClasses = isCurrent ? 'current-page text-nebula' : 'text-solstice'
li
a.block.py-0x(href=page.url, class=additionalClasses)=page.title
- var hasSubLinks = (page.headings && page.headings.length)
Expand All @@ -42,7 +42,7 @@ block content
a(href=site.url) DocSearch
span  > 
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
// Include the apply form
if current.includeForm
Expand Down

0 comments on commit fc79098

Please sign in to comment.