Skip to main content

DjangoCMS HTML Meta tags for OpenGraph.

Project description

DjangoCMS Meta OG

HTML Meta tags OpenGraph for DjangoCMS. The project is based on the Django Meta OG project.

Install

pip install djangocms-meta-og

Add into settings.py:

INSTALLED_APPS = [
    "django_meta_og",
    "djangocms_meta_og",
    ...
]

TEMPLATES  = [
    {"OPTIONS": {
            "context_processors": [
                "djangocms_meta_og.context_processors.meta",
                ...
            ]
        }
    }
]

Add into the templates:

{% load djangocms_meta_og %}
{% djangocms_meta_og_prefix as og_prefix %}
<head{% if og_prefix %} prefix="{{ og_prefix }}"{% endif %}>
    {% include "django_meta_og/header_meta.html" %}

The result can be:

<head prefix="og: https://ogp.me/ns#">
    <meta property="og:type" content="website" />
    <meta property="og:title" content="The Title" />
    ...
</head>

License

BSD License

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

djangocms_meta_og-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djangocms_meta_og-1.0.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file djangocms_meta_og-1.0.0.tar.gz.

File metadata

  • Download URL: djangocms_meta_og-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for djangocms_meta_og-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0281cd0b09e14dde22fa7ef77f9f09bce1a1a87f555a9cf952a74cceeaecd690
MD5 d15041a66a1432056e49057d4a140ad9
BLAKE2b-256 6b68a672ddb2b570a4c4150fc28c96f98c4bd5fdedf268c5cef533171d09f4ce

See more details on using hashes here.

File details

Details for the file djangocms_meta_og-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for djangocms_meta_og-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f087d8322603e2ff9dc11b701454438374f79ed7ca426846ae12701d72a39748
MD5 e9d775e968cfa3256a9b01e1274a736b
BLAKE2b-256 4575cdc496cd23975f52331f8b914b4ad6d24a32336ff9b177ddaef4dff99a89

See more details on using hashes here.

Supported by

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