polyblog/templates/base.html

66 lines
1.7 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static "general.css" %}" />
<link rel="shortcut icon" href="{% static "favicon.ico" %}" />
{% block head %}{% endblock %}
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"/>
<title>polylux</title>
</head>
<body alink="#000099" link="#000099" vlink="#990099">
<div>
<a href="/"><img src=" {% static "poly.svg" %} " width="200"/></a>
</div>
<div id="nav">
<ul>
<li><a href="{% url 'listall' %}">Blog</a></li>
<li><a href="{% url 'about' %}">About</a></li>
<li><a href="{% url 'contact' %}">Contact</a></li>
</ul>
</div>
<div id="main">
{% block content %}
{% endblock %}
</div>
<div id="footer">
<div class="row">
<div class="column">
Blog Post Categories:<br/>
<ul>
{% for cat in blogcategories %}
<li> <a href="{% url 'category' cat.id %}">{{ cat }}</a> </li>
{% endfor %}
</ul>
</div>
<div class="column">
Recent Posts:<br/>
<ul>
{% for post in blogentries %}
{% if post.published %}
<li> <a href="{% url 'detail' post.id %}">{{ post }}</a> </li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="column">Recent Comments:<br/>
<ul>
{% for comment in blogcomments %}
{% if comment.user is not null %}
<li> <a href="{% url 'detail' comment.blogentry.id %}"><b>{{ comment.user }}</b> in {{ comment.blogentry }}</a> </li>
{% else %}
<li> <a href="{% url 'detail' comment.blogentry.id %}"><i>{{ comment.guestname }}</i> in {{ comment.blogentry }}</a> </li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</div>
</body>
</html>