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
|
@ -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/'
|
||||
|
|
|
@ -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' %}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue