Select theme in context processors
This commit is contained in:
parent
a6883b5b87
commit
f4dc07b6b9
4 changed files with 96 additions and 15 deletions
|
@ -8,9 +8,7 @@
|
|||
<head>
|
||||
<title>{% block title %}BookWyrm{% endblock %} - {{ site.name }}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{% with theme_path=user.get_theme %}
|
||||
<link href="{% sass_src theme_path %}" rel="stylesheet" type="text/css" />
|
||||
{% endwith %}
|
||||
<link href="{% sass_src site_theme %}" rel="stylesheet" type="text/css" />
|
||||
|
||||
<link rel="search" type="application/opensearchdescription+xml" href="{% url 'opensearch' %}" title="{% blocktrans with site_name=site.name %}{{ site_name }} search{% endblocktrans %}" />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue