File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 11{% extends "base.html" %}
22
3- {% block announce %}
4- < style > 
5-     div [data-md-component = "announce" ] {
6-         background-color :  # f0f8ff ;  /* Light blue */ 
7-         color :  # 333 ;
3+ {% block extrahead %}
4+   {{ super() }}
5+   < script > 
6+     // Redirect starlette.io to starlette.dev 
7+     if  ( window . location . hostname  ===  'www.uvicorn.org'  ||  window . location . hostname  ===  'uvicorn.org' )  { 
8+       const  newUrl  =  window . location . href . replace ( / ^ h t t p s ? : \/ \/ ( w w w \. ) ? u v i c o r n \. o r g / ,  'https://uvicorn.dev' ) ; 
9+       window . location . replace ( newUrl ) ; 
810    } 
9-     div [data-md-component = "announce" ] a  {
10-         color :  # 0366d6 ;
11-     }
12- </ style > 
13-      If you're using uvicorn in production, please consider < a  href ="/sponsorship "> sponsoring the project</ a >  to help with maintenance and development. ✨
11+   </ script > 
1412{% endblock %}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments