Ajout sitemap + meta description pour accueil
This commit is contained in:
		
							parent
							
								
									9cc4a380d0
								
							
						
					
					
						commit
						6a6ef5612f
					
				
					 5 changed files with 33 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,15 @@
 | 
			
		|||
from django.contrib import admin
 | 
			
		||||
from django.contrib.sitemaps.views import sitemap
 | 
			
		||||
from django.urls import include, path
 | 
			
		||||
from django.views.decorators.cache import cache_page
 | 
			
		||||
from django.views.generic import TemplateView
 | 
			
		||||
 | 
			
		||||
from beesgospel import views
 | 
			
		||||
from beesgospel.sitemaps import StaticViewSitemap
 | 
			
		||||
 | 
			
		||||
sitemaps = {
 | 
			
		||||
    "static": StaticViewSitemap,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
urlpatterns = [
 | 
			
		||||
    path("manifest.json",
 | 
			
		||||
| 
						 | 
				
			
			@ -29,4 +35,9 @@ urlpatterns = [
 | 
			
		|||
    path("membres/documents/", views.MediaView.as_view(prive=True), name="docs-membres"),
 | 
			
		||||
 | 
			
		||||
    path("media/chants/<path:path>", views.MediaServeView.as_view(subdir="chants")),
 | 
			
		||||
 | 
			
		||||
    path(
 | 
			
		||||
        "sitemap.xml", sitemap, {"sitemaps": sitemaps},
 | 
			
		||||
        name="django.contrib.sitemaps.views.sitemap",
 | 
			
		||||
    ),
 | 
			
		||||
]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue