Browse Source

fix #782: moved styles and icons to separate template

Rafał Pitoń 8 years ago
parent
commit
d3a9ee56ef
2 changed files with 16 additions and 14 deletions
  1. 1 14
      misago/templates/misago/base.html
  2. 15 0
      misago/templates/misago/head.html

+ 1 - 14
misago/templates/misago/base.html

@@ -10,20 +10,7 @@
     {% spaceless %}
       {% block meta-extra %}{% endblock meta-extra %}
     {% endspaceless %}
-    <link href="{% static 'misago/css/misago.css' %}" rel="stylesheet">
-    <link rel="apple-touch-icon" href="{% static 'apple-touch-icon.png' %}">
-    <link rel="apple-touch-icon" sizes="57x57" href="{% static 'apple-touch-icon-57.png' %}">
-    <link rel="apple-touch-icon" sizes="72x72" href="{% static 'apple-touch-icon-72.png' %}">
-    <link rel="apple-touch-icon" sizes="76x76" href="{% static 'apple-touch-icon-76.png' %}">
-    <link rel="apple-touch-icon" sizes="80x80" href="{% static 'apple-touch-icon-80.png' %}">
-    <link rel="apple-touch-icon" sizes="114x114" href="{% static 'apple-touch-icon-114.png' %}">
-    <link rel="apple-touch-icon" sizes="120x120" href="{% static 'apple-touch-icon-120.png' %}">
-    <link rel="apple-touch-icon" sizes="144x144" href="{% static 'apple-touch-icon-144.png' %}">
-    <link rel="apple-touch-icon" sizes="152x152" href="{% static 'apple-touch-icon-152.png' %}">
-    <link rel="apple-touch-icon" sizes="167x167" href="{% static 'apple-touch-icon-167.png' %}">
-    <link rel="apple-touch-icon" sizes="180x180" href="{% static 'apple-touch-icon-180.png' %}">
-    <link rel="shortcut icon" href="{% static 'favicon.ico' %}">
-    <link rel="icon" sizes="16x16 32x32" href="{% static 'favicon.ico' %}">
+    {% include "misago/head.html" %}
     <script type="application/ld+json">{"@context":"http://schema.org","@type":"WebSite","url":"{{ SITE_ADDRESS }}"}</script>
   </head>
   <body>

+ 15 - 0
misago/templates/misago/head.html

@@ -0,0 +1,15 @@
+{% load staticfiles %}
+<link href="{% static 'misago/css/misago.css' %}" rel="stylesheet">
+<link rel="apple-touch-icon" href="{% static 'apple-touch-icon.png' %}">
+<link rel="apple-touch-icon" sizes="57x57" href="{% static 'apple-touch-icon-57.png' %}">
+<link rel="apple-touch-icon" sizes="72x72" href="{% static 'apple-touch-icon-72.png' %}">
+<link rel="apple-touch-icon" sizes="76x76" href="{% static 'apple-touch-icon-76.png' %}">
+<link rel="apple-touch-icon" sizes="80x80" href="{% static 'apple-touch-icon-80.png' %}">
+<link rel="apple-touch-icon" sizes="114x114" href="{% static 'apple-touch-icon-114.png' %}">
+<link rel="apple-touch-icon" sizes="120x120" href="{% static 'apple-touch-icon-120.png' %}">
+<link rel="apple-touch-icon" sizes="144x144" href="{% static 'apple-touch-icon-144.png' %}">
+<link rel="apple-touch-icon" sizes="152x152" href="{% static 'apple-touch-icon-152.png' %}">
+<link rel="apple-touch-icon" sizes="167x167" href="{% static 'apple-touch-icon-167.png' %}">
+<link rel="apple-touch-icon" sizes="180x180" href="{% static 'apple-touch-icon-180.png' %}">
+<link rel="shortcut icon" href="{% static 'favicon.ico' %}">
+<link rel="icon" sizes="16x16 32x32" href="{% static 'favicon.ico' %}">