Skip to content

Add global og:description override #117

@wiktor-k

Description

@wiktor-k

Hi,

I'd like to keep my og:description in the Sphinx conf.py file and not clutter the input files.

I've used this to insert the tag:

ogp_custom_meta_tags = [
    f'<meta property="og:description" content="{description}" />',
]

Sadly the generator still inserts automated og:description parsed from the site that's completely irrelevant:

<meta property="og:description" content="2023-12-13 Introducing OpenPGP- What is OpenPGP?, Who is the audience for this document?, Why not just use the OpenPGP RFC?, Which version of OpenPGP does this address?., A high-level view- Why Ope..." />
<meta property="og:description" content="The essential OpenPGP guide for application developers. Learn the OpenPGP standard for cryptographic operations and how to implement it in your projects. Gain insights into digital signatures, key management, certificates, and more. Version agnostic." />

Is there a way to globally override og:description or completely disable the automated generation? (I've checked the README but couldn't find any leads).

Thanks for your help! 👋

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions