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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangocms_meta_og-1.0.1.tar.gz.
File metadata
- Download URL: djangocms_meta_og-1.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a93420f321984dc9be54160e1029588b1f510bfdd0609bb5dd6e259ce4c431a
|
|
| MD5 |
e99b402f9bdf1ccfd75e97c014f1b21c
|
|
| BLAKE2b-256 |
a718b00a6134f4e4c0dd6050ff118c4a79ee7e3719aa6d62e7125a5eda3666ce
|
File details
Details for the file djangocms_meta_og-1.0.1-py3-none-any.whl.
File metadata
- Download URL: djangocms_meta_og-1.0.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38bece2e881e00d8b558c7a3abc754effae25aa585c94601f983dc8a4909b563
|
|
| MD5 |
796ada4e09490441381be7d666b7789c
|
|
| BLAKE2b-256 |
cff31b6be26a1770f9d983e0f923fd70f62efc4f65f2b0cac0b3d1c9c506c2bb
|