Skip to content

Instantly share code, notes, and snippets.

@econchick
Created November 16, 2012 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save econchick/4085195 to your computer and use it in GitHub Desktop.
Save econchick/4085195 to your computer and use it in GitHub Desktop.
templates/blog/base.html
<!doctype html>
<html lang="{{ HTML_LANG }}">
<head>
<meta charset="utf-8"/>
<title>{% block title %}PyLadies Blog{%endblock%}</title>
<meta name="author" content="A PyLady!">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0">
<link href='http://fonts.googleapis.com/css?family=Droid+Sans:700,400|Droid+Sans+Mono' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/css/main.css" type="text/css" />
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block scripts %}
{% endblock %}
</head>
<body>
<header class="clearfix" role="banner">
<div class="wrapper">
<h1 class="huge"><a href="{% url home %}">PyLadies Blog</a></h1>
{% if user.is_staff %}
<h3 class="normal"><a href="{% url admin:index %}">Admin</a> | <a href="{% url admin:MyBlog_post_add %}">Add post</a></h3>
{% else %}
<h3 class="normal"><a href="mailto:me@myemail.com">Contact</a></h3>
{% endif %}
</div>
</header>
{% block content %}
{% endblock %}
<footer class="clearfix">
<p role="contentinfo">© 2012 <a href="mailto:me@myemail.com">A PyLady!</a><br>
Proudly powered by <a href="http://djangoproject.com">Django</a>.</p>
</div>
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment