Install WebSub plugin - it can't actually push anything yet because there's no micropub, and therefore no pinging, but it's a start
This commit is contained in:
parent
ba34ee034a
commit
6678c4cdbb
5 changed files with 21 additions and 1 deletions
1
Pipfile
1
Pipfile
|
@ -26,6 +26,7 @@ markdown = "*"
|
||||||
bleach = "*"
|
bleach = "*"
|
||||||
django-debug-toolbar = "*"
|
django-debug-toolbar = "*"
|
||||||
xrd = "*"
|
xrd = "*"
|
||||||
|
django-push = "*"
|
||||||
|
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
|
|
9
Pipfile.lock
generated
9
Pipfile.lock
generated
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"hash": {
|
"hash": {
|
||||||
"sha256": "dc39eb988fd0df9d07f81c689d5ee326958f557b423bd98e6d52d0610e5691f5"
|
"sha256": "bf80c6036fc124e9afa1aa029b73d614b477dba02cf948696dd8eb1fa50dc745"
|
||||||
},
|
},
|
||||||
"host-environment-markers": {
|
"host-environment-markers": {
|
||||||
"implementation_name": "cpython",
|
"implementation_name": "cpython",
|
||||||
|
@ -137,6 +137,13 @@
|
||||||
],
|
],
|
||||||
"version": "==0.3.0"
|
"version": "==0.3.0"
|
||||||
},
|
},
|
||||||
|
"django-push": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:88d9d57326c9b5f8485510527c780418da1a3c0c485dbb283281d6bf2ef6598d",
|
||||||
|
"sha256:7101f2d66ff7fd932fe379c70f4d03f74955634fbecb187f03c3e82cd55b8274"
|
||||||
|
],
|
||||||
|
"version": "==1.0"
|
||||||
|
},
|
||||||
"django-redis-cache": {
|
"django-redis-cache": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
"sha256:2b4e3510bbcaf3d331975717afd6f15a36fbaf7622504599d2727dc99f90c64d"
|
"sha256:2b4e3510bbcaf3d331975717afd6f15a36fbaf7622504599d2727dc99f90c64d"
|
||||||
|
|
|
@ -216,3 +216,7 @@ META_SITE_PROTOCOL = 'https'
|
||||||
META_SITE_NAME = LEMONCURRY_SITE_NAME
|
META_SITE_NAME = LEMONCURRY_SITE_NAME
|
||||||
META_USE_OG_PROPERTIES = True
|
META_USE_OG_PROPERTIES = True
|
||||||
META_USE_TWITTER_PROPERTIES = True
|
META_USE_TWITTER_PROPERTIES = True
|
||||||
|
|
||||||
|
# django-push
|
||||||
|
# https://django-push.readthedocs.io/en/latest/publisher.html
|
||||||
|
PUSH_HUB = 'https://00dani.superfeedr.com/'
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||||
<link rel="canonical" href="{{ uri }}" />
|
<link rel="canonical" href="{{ uri }}" />
|
||||||
|
|
||||||
|
<link rel="hub" href="{% get_push_hub %}" />
|
||||||
|
<link rel="self" href="{{ uri }}" />
|
||||||
|
|
||||||
<meta property="og:url" content="{{ uri }}" />
|
<meta property="og:url" content="{{ uri }}" />
|
||||||
<meta property="og:title" content="{% firstof title site_name %}" />
|
<meta property="og:title" content="{% firstof title site_name %}" />
|
||||||
{% include 'meta/meta.html' %}
|
{% include 'meta/meta.html' %}
|
||||||
|
|
|
@ -97,3 +97,8 @@ def nav_crumbs(context, route):
|
||||||
'current': current,
|
'current': current,
|
||||||
'title': context.get('title'),
|
'title': context.get('title'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@register.simple_tag
|
||||||
|
def get_push_hub():
|
||||||
|
return settings.PUSH_HUB
|
||||||
|
|
Loading…
Reference in a new issue