forked from 00dani/lemoncurry
Restore favicon links in the page <head>
This commit is contained in:
parent
8a0c24a9b5
commit
6d7b5db482
2 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,8 @@ from compressor.contrib.jinja2ext import CompressorExtension
|
|||
from django_activeurl.ext.django_jinja import ActiveUrl
|
||||
|
||||
from entries.kinds import all as entry_kinds
|
||||
from wellknowns.favicons import icons as favicons
|
||||
|
||||
from .ago import ago
|
||||
from .markdown import markdown
|
||||
from ..theme import color as theme_color
|
||||
|
@ -27,6 +29,7 @@ def environment(**options):
|
|||
})
|
||||
env.globals.update({
|
||||
'entry_kinds': entry_kinds,
|
||||
'favicons': favicons,
|
||||
'package': load_package_json(),
|
||||
'settings': settings,
|
||||
'static': staticfiles_storage.url,
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
|
||||
<meta name="generator" content="{{ package.name }} {{ package.version }}" />
|
||||
<meta name="theme-color" content="{{ theme_color(3) }}" />
|
||||
{% for i in favicons %}
|
||||
<link rel="{{ i.rel }}" type="{{ i.mime }}" sizes="{{ i.sizes }}" href="{{ i.url }}" />
|
||||
{% endfor %}
|
||||
|
||||
<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