forked from laurens/fediversity_website
		
	Verbeteren breadcrumb
This commit is contained in:
		
							parent
							
								
									7be5c15937
								
							
						
					
					
						commit
						e23f8d845d
					
				
					 3 changed files with 6 additions and 3 deletions
				
			
		
							
								
								
									
										1
									
								
								static/afbeeldingen/iconen/home.svg
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								static/afbeeldingen/iconen/home.svg
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg> | ||||
| After Width: | Height: | Size: 702 B | 
|  | @ -11,6 +11,6 @@ | |||
| } | ||||
| 
 | ||||
| .breadcrumb li + li:before { | ||||
|   content: ">"; | ||||
|   padding: 0.3rem; | ||||
|   content: "»"; | ||||
|   padding: 0.1rem; | ||||
| } | ||||
|  |  | |||
|  | @ -1,8 +1,9 @@ | |||
| {{ if not .IsHome }} | ||||
| <nav aria-label="breadcrumb"> | ||||
|   <ol class="breadcrumb"> | ||||
|     {{ range $index,$element := .Ancestors.Reverse }} | ||||
|       {{ if eq $index 0 }} | ||||
|         <li><a href="{{ .Permalink }}">🏠</a></li> | ||||
|         <li><img src="/afbeeldingen/iconen/home.svg" height="{{ .Site.Params.smallIconSize }}" width="{{ .Site.Params.smallIconSize }}" alt="Terug naar hoofdpagina"> <a href="{{ .Permalink }}">Hoofdpagina</a></li> | ||||
|       {{ else }} | ||||
|       <li> | ||||
|         <a href="{{ .Permalink }}">{{ .LinkTitle }}</a> | ||||
|  | @ -14,3 +15,4 @@ | |||
|     </li> | ||||
|   </ol> | ||||
| </nav> | ||||
| {{ end }} | ||||
|  |  | |||
		Reference in a new issue