{% extends "./base.html" %}
{% load static %}
{% load comment_block %}
{% block title %}{{ post.title }}{% endblock %}

{% block extra_head %}
<link rel="stylesheet"
	href="{% static 'css/googlecode.min.css' %}">
<script type="text/javascript" 
	src="{% static 'js/highlight.min.js' %}">
</script>
<script>hljs.initHighlightingOnload();</script>
{% endblock %}

{% block main %}
	{% if post %}
	<h1>{{ post.title }}</h1>
	<div>
		<span>分类：<a href="{% url 'category-list' post.category.id %}">{{ post.category.username }}</a></span>
		<span>作者2：{{ post.owner.username }}</span>			
	</div>
	<hr />
	{% autoescape off %}
	{{ post.content_html }}
	{% endautoescape %}
	
	{% endif %}
	{% comment_block request.path %}
{% endblock %} 
 