Restore favicon links in the page <head>

pull/1/head
Danielle McLean 4 years ago
parent 8a0c24a9b5
commit 6d7b5db482
Signed by: 00dani
GPG Key ID: 8EB789DDF3ABD240
  1. 3
      lemoncurry/jinja2/__init__.py
  2. 3
      lemoncurry/jinja2/lemoncurry/layout.html

@ -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…
Cancel
Save