Editing HTML Meta Tags in Radiant

Radiant introduces a streamlined way to dynamically update the meta tags of an HTML page. This feature allows for easy modification of essential SEO and social media attributes, enhancing the flexibility of web page metadata management.

Meta tags in an HTML document provide important information about the page, which is used by search engines and social media platforms. These tags include details like the page title, description, image, and more. With Radiant, you can dynamically update these tags using the following arguments:

page_title
page_favicon
page_description
page_image
page_url
page_summary_large_image
page_site
page_author
page_copyright
[ ]:
if __name__ == '__main__':
    RadiantServer(
        'BareMinimum',
        host='localhost',
        port=5000,
        brython_version='3.11.2',
        debug_level=0,

        page_title="Example Title",
        page_description="Description of the page",
        # Other arguments...
)
    )
  • page_title: Updates the content of the <title> tag and other relevant meta tags.

  • page_favicon: URL of the favicon for the page.

  • page_description: Sets the description meta tag, used by search engines and social sharing.

  • page_image: URL of the image to be used in Open Graph and Twitter Cards.

  • page_url: Canonical URL of the page.

  • page_summary_large_image: Specific to Twitter Cards, denotes a large summary image.

  • page_site: The Twitter username of the website or site creator.

  • page_author: Author of the page’s content.

  • page_copyright: Copyright information of the page.