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:
Danielle McLean 2017-10-27 20:32:50 +11:00
parent ba34ee034a
commit 6678c4cdbb
Signed by: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
5 changed files with 21 additions and 1 deletions

View File

@ -26,6 +26,7 @@ markdown = "*"
bleach = "*"
django-debug-toolbar = "*"
xrd = "*"
django-push = "*"
[dev-packages]

9
Pipfile.lock generated
View File

@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
"sha256": "dc39eb988fd0df9d07f81c689d5ee326958f557b423bd98e6d52d0610e5691f5"
"sha256": "bf80c6036fc124e9afa1aa029b73d614b477dba02cf948696dd8eb1fa50dc745"
},
"host-environment-markers": {
"implementation_name": "cpython",
@ -137,6 +137,13 @@
],
"version": "==0.3.0"
},
"django-push": {
"hashes": [
"sha256:88d9d57326c9b5f8485510527c780418da1a3c0c485dbb283281d6bf2ef6598d",
"sha256:7101f2d66ff7fd932fe379c70f4d03f74955634fbecb187f03c3e82cd55b8274"
],
"version": "==1.0"
},
"django-redis-cache": {
"hashes": [
"sha256:2b4e3510bbcaf3d331975717afd6f15a36fbaf7622504599d2727dc99f90c64d"

View File

@ -216,3 +216,7 @@ META_SITE_PROTOCOL = 'https'
META_SITE_NAME = LEMONCURRY_SITE_NAME
META_USE_OG_PROPERTIES = True
META_USE_TWITTER_PROPERTIES = True
# django-push
# https://django-push.readthedocs.io/en/latest/publisher.html
PUSH_HUB = 'https://00dani.superfeedr.com/'

View File

@ -7,6 +7,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<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:title" content="{% firstof title site_name %}" />
{% include 'meta/meta.html' %}

View File

@ -97,3 +97,8 @@ def nav_crumbs(context, route):
'current': current,
'title': context.get('title'),
}
@register.simple_tag
def get_push_hub():
return settings.PUSH_HUB