SEO¶
Setup¶
-
Configure default SEO tags in
settings.py:DOMAINAPP_NAMEDESCRIPTIONKEYWORDS
Thanks to the layout in base.html and the context processor in context_processors.py all the important SEO tags (with your default values) will be made available/added to all pages.
-
To add custom SEO values and tags to a page without rewriting all the tags, do this:
-
The
post.htmltemplate includes structured data for blog posts in the form of JSON-LD. This is used by Google to display rich snippets in the search results. Use this as reference, if you want to add structured data to other pages. -
By default, all blog related pages are included in the sitemap.xml file, see
blog/sitemaps.py. Additionally, the index, privacy policy and terms of service pages are included (seeconfig/sitemaps.py). Add additional individual pages to the sitemap by adding them to theitemsfunction in theconfig/sitemaps.pyfile.
Tip
Verify your site ownership in the Google Search Console to enable site indexing monitoring and submit your sitemap.xml