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 untrusted user: 00dani
GPG key ID: 5A5D2D1AFF12EEC5
5 changed files with 21 additions and 1 deletions

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