mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Replace "" with false to prevent rending of empty attributes
This commit is contained in:
		
							parent
							
								
									da52bcf080
								
							
						
					
					
						commit
						418c084f12
					
				|  | @ -11,7 +11,7 @@ footer.o-footer.u-text.u-border-dotted | ||||||
| 
 | 
 | ||||||
|                     each url, item in group |                     each url, item in group | ||||||
|                         li |                         li | ||||||
|                             +a(url)(target=url.includes("http") ? "_blank" : "")=item |                             +a(url)(target=url.includes("http") ? "_blank" : false)=item | ||||||
| 
 | 
 | ||||||
|         if SECTION != "docs" |         if SECTION != "docs" | ||||||
|             +grid-col("quarter") |             +grid-col("quarter") | ||||||
|  |  | ||||||
|  | @ -20,7 +20,7 @@ mixin h(level, id) | ||||||
|               info: https://mathiasbynens.github.io/rel-noopener/ |               info: https://mathiasbynens.github.io/rel-noopener/ | ||||||
| 
 | 
 | ||||||
| mixin a(url, trusted) | mixin a(url, trusted) | ||||||
|     a(href=url target="_blank" rel=(!trusted) ? "noopener nofollow" : "")&attributes(attributes) |     a(href=url target="_blank" rel=!trusted ? "noopener nofollow" : false)&attributes(attributes) | ||||||
|         block |         block | ||||||
| 
 | 
 | ||||||
| //- Source link (with added icon for "code") | //- Source link (with added icon for "code") | ||||||
|  | @ -72,7 +72,7 @@ mixin aside-code(label, language) | ||||||
|                see assets/css/_components/_buttons.sass |                see assets/css/_components/_buttons.sass | ||||||
| 
 | 
 | ||||||
| mixin button(url, trusted, ...style) | mixin button(url, trusted, ...style) | ||||||
|     a.c-button.u-text-label(href=url class=prefixArgs(style, "c-button") role="button" target="_blank" rel=(!trusted) ? "noopener nofollow" : "")&attributes(attributes) |     a.c-button.u-text-label(href=url class=prefixArgs(style, "c-button") role="button" target="_blank" rel=!trusted ? "noopener nofollow" : false)&attributes(attributes) | ||||||
|         block |         block | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -133,7 +133,7 @@ mixin tag() | ||||||
| 
 | 
 | ||||||
| mixin list(type, start) | mixin list(type, start) | ||||||
|     if type |     if type | ||||||
|         ol.c-list.o-block.u-text(class="c-list--#{type}" style=(start === 0 || start) ? "counter-reset: li #{(start - 1)}" : "")&attributes(attributes) |         ol.c-list.o-block.u-text(class="c-list--#{type}" style=(start === 0 || start) ? "counter-reset: li #{(start - 1)}" : false)&attributes(attributes) | ||||||
|             block |             block | ||||||
| 
 | 
 | ||||||
|     else |     else | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| include _mixins | include _mixins | ||||||
| 
 | 
 | ||||||
| nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : "") | nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : false) | ||||||
|     a(href='/') #[+logo] |     a(href='/') #[+logo] | ||||||
| 
 | 
 | ||||||
|     if SUBSECTION != "index" |     if SUBSECTION != "index" | ||||||
|  | @ -11,7 +11,7 @@ nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : "") | ||||||
|     ul.c-nav__menu |     ul.c-nav__menu | ||||||
|         each url, item in NAVIGATION |         each url, item in NAVIGATION | ||||||
|             li.c-nav__menu__item |             li.c-nav__menu__item | ||||||
|                 a(href=url target=url.includes("http") ? "_blank" : "")=item |                 a(href=url target=url.includes("http") ? "_blank" : false)=item | ||||||
| 
 | 
 | ||||||
|         li.c-nav__menu__item |         li.c-nav__menu__item | ||||||
|             +a(gh("spaCy"))(aria-label="GitHub").u-hidden-xs #[+icon("github", 20)] |             +a(gh("spaCy"))(aria-label="GitHub").u-hidden-xs #[+icon("github", 20)] | ||||||
|  |  | ||||||
|  | @ -9,5 +9,5 @@ menu.c-sidebar.js-sidebar.u-text | ||||||
|                 li.u-text-label.u-color-subtle=menu |                 li.u-text-label.u-color-subtle=menu | ||||||
| 
 | 
 | ||||||
|                 each url, item in items |                 each url, item in items | ||||||
|                     li(class=(CURRENT == url || (CURRENT == "index" && url == "./")) ? "is-active" : "") |                     li(class=(CURRENT == url || (CURRENT == "index" && url == "./")) ? "is-active" : false) | ||||||
|                         +a(url)(target=url.includes("http") ? "_blank" : "")=item |                         +a(url)(target=url.includes("http") ? "_blank" : false)=item | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user