<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><c:out value="${blog.title}"/> - <c:out value="${page.title}"/></title>
<meta name="generator" content="BlogMethods Basic 1.0.0" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="<c:url value="/themes/${blog.options.theme_dir_name.value}/resources/styles/style.css"/>" type="text/css" media="screen, projection" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<c:url value="/feeds/"/>" />
<link rel="shortcut icon" href="<c:url value="/favicon.ico"/>" type="image/x-icon" />
<script src="<c:url value="/js/blog.js"/>" type="text/javascript" language="JavaScript"></script>
</head>

<body>

<div id="container">
<c:import url="/include.do">
	<c:param name="path" value="/include_header.jsp" />
</c:import>
<c:import url="/blog.do?method=nav">
	<c:param name="selected" value="${page.id}" />
</c:import>
<hr class="low" />

<div id="content">
<div class="entry single"><c:choose>
	<c:when test="${page.key!=null}">
		<c:set var="url" value="/pages.do?method=page&key=${page.key}" />
	</c:when>
	<c:otherwise>
		<c:set var="url" value="/pages.do?method=page&id=${page.id}" />
	</c:otherwise>
</c:choose>
<h2><a href="<c:url value="${url}"/>"><c:out value="${page.title}" /></a></h2>

<p class="info"><em class="date"><fmt:formatDate
	value="${page.createdOn}"
	pattern="${blog.dateFormat} ${blog.timeFormat}" /></em></p>
<c:out value="${page.content}" escapeXml="false" /></div>
</div>

<hr class="low" />
<!-- subcontent ................................. -->
<div id="subcontent">
<c:import url="/pages.do?method=pages" />
</div>
<!-- /subcontent --> 

<c:import url="/include.do">
	<c:param name="path" value="/include_footer.jsp" />
</c:import>
</div>
<!-- /container -->
</body>
</html>
