Procházet zdrojové kódy

Makes sure that the content is responsive

Adds viewport and js files. Reindents the code.
Talha Mansoor před 11 roky
rodič
revize
f0b6d2cc87
1 změnil soubory, kde provedl 16 přidání a 11 odebrání
  1. 16 11
      templates/base.html

+ 16 - 11
templates/base.html

@@ -2,21 +2,26 @@
 <html>
     <head>
         {% block head %}
-            <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
-            <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" />
+        <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+        <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/style.css" media="screen"/>
         {% endblock %}
     </head>
     <body>
-        <div class="row-fluid">
-            <div class="span10 offset2">
-                <header>
-                <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
-                {% if SITESUBTITLE %}<h1><small>{{ SITESUBTITLE }}</small></h1>{% endif %}
-                </header>
-            </div>
+        <script src="http://code.jquery.com/jquery.js"></script>
+        <script src="{{ SITEURL }}/theme/js/bootstrap.min.js"></script>
+        <div class="container-fluid">
+            <div class="row-fluid">
+                <div class="span10 offset2">
+                    <header>
+                    <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
+                    {% if SITESUBTITLE %}<h1><small>{{ SITESUBTITLE }}</small></h1>{% endif %}
+                    </header>
 
-            {% block content %}
-            {% endblock content %}
+                    {% block content %}
+                    {% endblock content %}
+                </div>
+            </div>
         </div>
     </body>
 </html>