Add basic Micropub support (only create support for now)

Fixes #11
This commit is contained in:
Thomas Sileo
2019-10-25 22:39:44 +02:00
parent afa33b4e7c
commit 126e5e8d59
2 changed files with 67 additions and 18 deletions

View File

@@ -8,6 +8,7 @@
<link rel="stylesheet" href="/static/pure.css">
<link rel="authorization_endpoint" href="{{ config.ID }}/indieauth">
<link rel="token_endpoint" href="{{ config.ID }}/token">
<link rel="micropub" href="{{config.ID}}/api/new_note">
{% if not request.args.get("older_than") and not request.args.get("previous_than") %}<link rel="canonical" href="https://{{ config.DOMAIN }}{{ request.path }}">{% endif %}
{% block links %}{% endblock %}
{% if config.THEME_COLOR %}<meta name="theme-color" content="{{ config.THEME_COLOR }}">{% endif %}