SEO and social sharing
Writer Framework provides powerful options for optimizing your application’s metadata to improve SEO (Search Engine Optimization) and enhance how your content appears when shared on social networks. These options are available in the writer.serve.configure_webpage_metadata
function available in the server_setup.py
file.
Page title configuration
The page title is a crucial element for your application’s SEO. Web crawlers and bots will see this title without loading the full application. By default, they will see Writer Framework
.
For dynamic titles, you can use a function instead of a static string. The title will be evaluated when a bot loads the page:
Meta tags configuration
HTTP headers allow you to specify a title, description, and keywords that search engines will use to understand and index your content. You can configure these tags using the meta
parameter.
You can also generate meta tags dynamically using a function:
Social network configuration
When users share links to your application on social networks, those platforms will attempt to fetch metadata to create rich previews of your content. You can configure the OpenGraph tags to improve the appearance of your content when shared.
Like meta tags, OpenGraph tags can also be generated dynamically:
By configuring your application’s metadata, your application will be more visible in search engines and social networks.
Was this page helpful?