Skip to content

Instantly share code, notes, and snippets.

@femmerling
Last active December 14, 2015 07:59
Show Gist options
  • Save femmerling/5054647 to your computer and use it in GitHub Desktop.
Save femmerling/5054647 to your computer and use it in GitHub Desktop.
base.html fix
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>My Website</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
<style>
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
<link rel="stylesheet" href="/static/css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="/static/css/DT_bootstrap.css">
<link rel="stylesheet" href="/static/css/tablecloth.css">
<link rel="stylesheet" href="/static/css/main.css">
<script>window.jQuery || document.write('<script src="/static/js/vendor/jquery-1.9.0.min.js"><\/script>')</script>
<script src="/static/js/vendor/jquery.dataTables.min.js"></script>
<script src="/static/js/vendor/DT_bootstrap.js"></script>
<script src="/static/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script src="/static/js/vendor/jquery.tablecloth.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
<![endif]-->
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/">Web Home</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="/about">about</a></li>
<li><a href="/contact/">contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
{% block content %}{% endblock %}
<hr>
<footer>
<p>&copy; 2013 - Some Copyright Note</p>
</footer>
</div> <!-- /container -->
<script src="/static/js/vendor/bootstrap.min.js"></script>
<script src="/static/js/main.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment