Skip to main content

Support article tpye's properties of Open Graph for Sphinx.

Project description

Stable version on PyPI "Continuous Integration" status for main branch Documentation status

Support article tpye’s properties of Open Graph for Sphinx.

Overview

This is Sphinx extension to handle properties of article typeof Open Graph.

You can add og-article directive with some options.

.. og-article::
   :published_time: 2023-05-07
   :modified_time: 2023-05-07 12:00:00

When it runs builder with this directive, your html file is generated included <meta property=”article:published_time”> and more properties.

Getting started

Install from PyPI.

Configure your conf.py.

Append og-article directive into your document.

Important note

This extension renders only article:* properties, and does not render og:* properties.

I recommend to install sphinxext-opengraph too.

Ref

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

atsphinx-og-article-0.2.1.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

atsphinx_og_article-0.2.1-py2.py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page