forked from 00dani/lemoncurry
Add a bunch of <link> tags I forgot about, oops
This commit is contained in:
parent
ce0bf28725
commit
b32412f4fd
2 changed files with 16 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
from django.contrib.humanize.templatetags.humanize import naturaltime
|
||||
from django.contrib.staticfiles.storage import staticfiles_storage
|
||||
from django.conf import settings
|
||||
from django.urls import reverse
|
||||
from jinja2 import Environment
|
||||
|
||||
|
@ -26,6 +27,7 @@ def environment(**options):
|
|||
env.globals.update({
|
||||
'entry_kinds': entry_kinds,
|
||||
'package': load_package_json(),
|
||||
'settings': settings,
|
||||
'static': staticfiles_storage.url,
|
||||
'url': reverse,
|
||||
})
|
||||
|
|
|
@ -6,6 +6,20 @@
|
|||
|
||||
<title class="p-name">{% if title %}{{ title }} ~ {% endif %}{{ request.site.name }}</title>
|
||||
{% block head %}{% endblock %}
|
||||
{% if atom is defined %}
|
||||
<link rel="alternate" type="application/atom+xml" href="{{ atom }}" />
|
||||
{% endif %}
|
||||
{% if rss is defined %}
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ rss }}" />
|
||||
{% endif %}
|
||||
|
||||
<link rel="authorization_endpoint" href="{{ url('lemonauth:indie') }}" />
|
||||
<link rel="manifest" href="{{ url('wellknowns:manifest') }}" />
|
||||
<link rel="micropub" href="{{ url('micropub:micropub') }}" />
|
||||
<link rel="hub" href="{{ settings.PUSH_HUB }}" />
|
||||
<link rel="token_endpoint" href="{{ url('lemonauth:token') }}" />
|
||||
|
||||
<meta name="generator" content="{{ package.name }} {{ package.version }}" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
|
||||
integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
|
||||
|
|
Loading…
Reference in a new issue