edited post
This commit is contained in:
		
							parent
							
								
									c16e2662cb
								
							
						
					
					
						commit
						fb24013805
					
				| 
						 | 
				
			
			@ -71,14 +71,14 @@
 | 
			
		|||
            document.body.classList.remove('dark');
 | 
			
		||||
            localStorage.setItem("pref-theme", 'light');
 | 
			
		||||
            {{- if site.Params.label.icon_inv }}
 | 
			
		||||
                document.getElementById('main-logo').src = "{{site.Params.label.icon}}";
 | 
			
		||||
                document.getElementById('main-logo').src = "{{site.Params.label.icon_inv}}";
 | 
			
		||||
            {{- end }}
 | 
			
		||||
 | 
			
		||||
        } else {
 | 
			
		||||
            document.body.classList.add('dark');
 | 
			
		||||
            localStorage.setItem("pref-theme", 'dark');
 | 
			
		||||
            {{- if site.Params.label.icon_inv }}
 | 
			
		||||
                document.getElementById('main-logo').src = "{{site.Params.label.icon_inv}}";
 | 
			
		||||
                document.getElementById('main-logo').src = "{{site.Params.label.icon}}";
 | 
			
		||||
            {{- end }}
 | 
			
		||||
            
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue