Simulate background-clip: text for browsers that don't support it
Move the heading generating to a partial that iteratively wraps each character of the heading in a <span>. The CSS for the site heading uses :nth-child to color each span a different color.
This commit is contained in:
		
							parent
							
								
									0e81f019a7
								
							
						
					
					
						commit
						fc35499d6c
					
				
					 5 changed files with 31 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
<header class="site">
 | 
			
		||||
  <div class="platter grid">
 | 
			
		||||
    <h1 class="site">
 | 
			
		||||
      <a class="site-name" href="{{ `` | absURL }}">Eryn Wells</a>
 | 
			
		||||
      <a class="site-name" href="{{ `` | absURL }}">{{ partial "site_name.html" site.Params.shortTitle }}</a>
 | 
			
		||||
    </h1>
 | 
			
		||||
    <nav class="site bulleted">
 | 
			
		||||
    {{ with site.Menus.main }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										1
									
								
								layouts/partials/site_name.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								layouts/partials/site_name.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
{{ range (split . "") }}<span>{{ . }}</span>{{ end }}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue