<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$meta.title}</title>
    <meta name="description" content="{$meta.description|nohtml}">
    <meta name="keywords" content="{$meta.keywords|nohtml}">
    <link href="{$meta.rss}" rel="alternate" title="订阅{$global.name|nohtml}" type="application/rss+xml">
    <link rel="shortcut icon" type="image/jpeg" href="{$meta.favicon}">
    <link rel="apple-touch-icon" href="{$meta.mobile_icon}">
    <script type='text/javascript' src='https://t.libdd.com/js/libs/jquery/jquery-1.7-latest.js'></script>
    
    <link rel="stylesheet" href="https://t.libdd.com/css/base/rich-content.css">
    <link rel="stylesheet" href="https://x.libdd.com/farm1/df930b/9f394e54/0.css">
	<script type="server/javascript">
		require('dd://assets/2012/0728/133407NYL6/fancybox.coffee').fancybox({
			helper:true,
			mouseWheel:true,
		})
    </script> 
</head>
{#boolean:显示头像|value:"true"}
{#select:配色|value:"红色,粉红色,蓝色,灰色"}
{#color:背景.颜色|value:"#909090"}
{#image:背景.图片|value:"https://x.libdd.com/farm1/df930b/0cb4bbd9/body-tile.png"}
{#boolean:背景.图片固定|value:"true"}
{#select:背景.图片重复方式|value:"全方向重复,水平方向重复,垂直方向重复,不重复"}
<style type="text/css">
body {
<script type="server/javascript">
if(dian.options["背景.颜色"].value!="#909090"){
	write("background-color:"+dian.options["背景.颜色"].value+";");
}
else{
	write("background-color:#909090;");
}

if(dian.options["背景.图片"].value!="https://x.libdd.com/farm1/df930b/0cb4bbd9/body-tile.png"){
	write(" background-image:url("+dian.options["背景.图片"].value+");");
}
else if(dian.options["背景.颜色"].value=="#909090"){
	write("background-image:url(https://x.libdd.com/farm1/df930b/0cb4bbd9/body-tile.png);");
}

switch(dian.options["背景.图片重复方式"].value){
	case "不重复":
		write("background-repeat:no-repeat;");
		break;
	case "水平方向重复":
		write("background-repeat:repeat-x;");
		break;
	case "垂直方向重复":
		write("background-repeat:repeat-y;");
		break;
	default:
		write("background-repeat:repeat;");
}

if(dian.options["背景.图片固定"].value)
	write("background-attachment:fixed;");
else
	write("background-attachment:scroll;");
</script>
}
</style>

<body>
<div id="wrapper" {?_配色|eq:"红色"}class="red"{/_配色}{?_配色|eq:"粉红色"}class="pink"{/_配色}{?_配色|eq:"蓝色"}class="blue"{/_配色}{?_配色|eq:"灰色"}class="grey"{/_配色}>
	<div id="header">
		<div id="together">
			<a href="{$global.url}" class="title">
				{?$_显示头像}<div class="avatar" style="background: url({$global.cover_64});"></div>{/$_显示头像}
				<h2>{$global.name}</h2>
			</a>
            <ul class="links">
            	{?inbox}<li><a href="{$inbox.url}">{$inbox.title}</a></li>{/inbox}
                {?contribute}<li><a href="{$contribute.url}">{$contribute.title}</a></li>{/contribute}
                <li><a href="{$global.random_url}">随机</a></li>
                <li><a href="{$global.archive_url}">存档</a></li>
                {?pages}
                	{?loop:pages}
                    	<li><a href="{$page.url}" {?$page.type|eq:"redirect"}target="_blank"{/$page.type}>{$page.title}</a></li>
                    {/loop:pages}
                {/pages}
            </ul>
							
			<div class="more">
				<div class="spaceit">
					<div class="description">{$global.description}</div>
					<form action="/" class="search" method="get">
						<input type="text" name="q" placeholder="Search..."/>
						<input type="submit" value="Search"/>
					</form>
				</div>
			</div>
		</div>
		
		<div class="sidecred">
        	Copyright &copy; <a href="{$global.url}">{$global.name}</a><br/>
			Powered by <a href="https://www.diandian.com">点点</a>
		</div>
	</div>
    
    {#sys:notes.width|value:"490"}
	<div id="main">
    <? var num=-1 ?>
	{?loop:posts}
    	<? num++ ?>
		<div class="outer rich-content">

    	{?post.video}
        <!--视频-->
			<div class="post video">
				{$video.player}
                {?view.list}
                	<div class="description">
                    	{$video.description}
                    </div>
                {/view.list}
			</div>
            {?view.post}
                <div class="pagination">
                	{$post.date|date_format:"day_of_month"}&nbsp;{$post.date|date_format:"month_en"},&nbsp;{$post.date|date_format:"year"},&nbsp;{$post.date|date_format:"24_hour_with_zero"}:{$post.date|date_format:"minutes"}.
                    {?post.tag}
                    	<ul>
                            {?loop:post.tags}
                                <li><a href="{$post.tag.url}">{$post.tag.name}</a></li>
                            {/loop:post.tags}
                        </ul>
                    {/post.tag}
                </div>
                <div class="notes">
                    {#sys:notes.block_bg_color|value:"#fff"}
                    {$post.notes}
                </div>
            {/view.post}
            <div class="meta">
                <a href="{$post.url}">{$post.date|date_format:"day_of_month"}{$post.date|date_format:"day_of_month_suffix_en"}&nbsp;{$post.date|date_format:"short_month_en"}&nbsp;{$post.date|date_format:"year"}</a>
            </div>
        {/post.video}
		
        {?post.photo}
        <!--图片-->
			<div class="post photo">
				<div class="image">
                	{?view.list}
                    	<script type="server/javascript">
							require('dd://assets/2012/0721/173646ndi5/photo.coffee').photos({
								maxwidth:"500",
								maxheight:"800",
								margin:"3",
								padding:"0",
								border_width:"0",
								border_style:"none",
								post: num ,
								class:"fancybox"
								});
                        </script>
                    {/view.list}
                    {?view.post}
						{?loop:photos}
                            <a href="{$photo.1280.src}" class="fancybox" rel="group"><img src="{$photo.500.src}"></a>
                            {?$photo.description}<p>{$photo.description}</p>{/$photo.description}
                        {/loop:photos}
                    {/view.post}
				</div>
				
                {?view.list}
                    <div class="description">
                        <a href="{$post.url}">{$photos.title}</a>
                        {?!$photos.title}
                        	{$photos.description}
                        {/!$photos.title}
                    </div>
                {/view.list}
                {?view.post}
                    <div class="description">
                        {$photos.description}
                    </div>
                {/view.post}
			</div>
            {?view.post}
                <div class="pagination">
                	{$post.date|date_format:"day_of_month"}&nbsp;{$post.date|date_format:"month_en"},&nbsp;{$post.date|date_format:"year"},&nbsp;{$post.date|date_format:"24_hour_with_zero"}:{$post.date|date_format:"minutes"}.
                    {?post.tag}
                    	<ul>
                            {?loop:post.tags}
                                <li><a href="{$post.tag.url}">{$post.tag.name}</a></li>
                            {/loop:post.tags}
                        </ul>
                    {/post.tag}
                </div>
                <div class="notes">
                    {#sys:notes.block_bg_color|value:"#fff"}
                    {$post.notes}
                </div>
            {/view.post}
			<div class="meta">
                <a href="{$post.url}">{$post.date|date_format:"day_of_month"}{$post.date|date_format:"day_of_month_suffix_en"}&nbsp;{$post.date|date_format:"short_month_en"}&nbsp;{$post.date|date_format:"year"}</a>
			</div>
        {/post.photo}
	
		{?post.link}
    	<!--链接-->
			<div class="post link">
				<div class="http" >
					{?view.list}<a href="{$post.url}">{/view.list}
						{?$link.title}<h2>{$link.title}</h2>{/$link.title}
                        {?!$link.title}<h2>{$link.url}</h2>{/!$link.title}
					{?view.list}</a>{/view.list}
				</div>
                <div class="description">
                    {?$link.description}
                        {$link.description}
                    {/$link.description}
                    {?!$link.description}
                    	跳转：<a href="{$link.url}" target="_blank">{$link.url}</a>
                    {/!$link.description}
                </div>
			</div>
            {?view.post}
                <div class="pagination">
                	{$post.date|date_format:"day_of_month"}&nbsp;{$post.date|date_format:"month_en"},&nbsp;{$post.date|date_format:"year"},&nbsp;{$post.date|date_format:"24_hour_with_zero"}:{$post.date|date_format:"minutes"}.
                    {?post.tag}
                    	<ul>
                            {?loop:post.tags}
                                <li><a href="{$post.tag.url}">{$post.tag.name}</a></li>
                            {/loop:post.tags}
                        </ul>
                    {/post.tag}
                </div>
                <div class="notes">
                    {#sys:notes.block_bg_color|value:"#fff"}
                    {$post.notes}
                </div>
            {/view.post}
			<div class="meta">
                <a href="{$post.url}">{$post.date|date_format:"day_of_month"}{$post.date|date_format:"day_of_month_suffix_en"}&nbsp;{$post.date|date_format:"short_month_en"}&nbsp;{$post.date|date_format:"year"}</a>
			</div>
        {/post.link}
	
		{?post.audio}
    	<!--声音-->
			<div class="post audio">
				<div class="play">
                	<ul class="music"><li><span><a href="{?view.list}{$post.url}{/view.list}{?view.post}{$audio.cover}{/view.post}"><img src="{$audio.cover_100}"></a></span></li></ul>
					<div class="more">
						{$audio.player}
					</div>
                    <div class="clear"></div>
				</div>
				<div class="description">
                	{?view.list}
                    	<p><strong><a href="{$post.url}">{$audio.song}</a></strong>&nbsp;&#8212;{$audio.artist}</p>
                    {/view.list}
                    {?view.post}
                        <p>{$audio.description}{?!$audio.description}<strong>{$audio.song}</strong>&nbsp;&#8212;{$audio.artist}{/!$audio.description}</p>
                    {/view.post}
				</div>
			</div>
            {?view.post}
                <div class="pagination">
                	{$post.date|date_format:"day_of_month"}&nbsp;{$post.date|date_format:"month_en"},&nbsp;{$post.date|date_format:"year"},&nbsp;{$post.date|date_format:"24_hour_with_zero"}:{$post.date|date_format:"minutes"}.
                    {?post.tag}
                    	<ul>
                            {?loop:post.tags}
                                <li><a href="{$post.tag.url}">{$post.tag.name}</a></li>
                            {/loop:post.tags}
                        </ul>
                    {/post.tag}
                </div>
                <div class="notes">
                    {#sys:notes.block_bg_color|value:"#fff"}
                    {$post.notes}
                </div>
            {/view.post}
			<div class="meta">
                <a href="{$post.url}">{$post.date|date_format:"day_of_month"}{$post.date|date_format:"day_of_month_suffix_en"}&nbsp;{$post.date|date_format:"short_month_en"}&nbsp;{$post.date|date_format:"year"}</a>
			</div>
        {/post.audio}
	
		{?post.text}
    	<!--文字-->
			<div class="post text">
                {?view.list}
                    {?$text.title}<a href="{$post.url}"><h2>{$text.title}</h2></a>{/$text.title}
                    {?text.thumbnail}<a href="{$post.url}"><img src="{$text.thumbnail.500.src}"/></a>{/text.thumbnail}
                    {?$text.summary}<p>{$text.summary}</p>{/$text.summary}
                {/view.list}
                {?view.post}
                    {?$text.title}<h2>{$text.title}</h2>{/$text.title}
                	{$text.content}
                {/view.post}
			</div>
            {?view.post}
                <div class="pagination">
                	{$post.date|date_format:"day_of_month"}&nbsp;{$post.date|date_format:"month_en"},&nbsp;{$post.date|date_format:"year"},&nbsp;{$post.date|date_format:"24_hour_with_zero"}:{$post.date|date_format:"minutes"}.
                    {?post.tag}
                    	<ul>
                            {?loop:post.tags}
                                <li><a href="{$post.tag.url}">{$post.tag.name}</a></li>
                            {/loop:post.tags}
                        </ul>
                    {/post.tag}
                </div>
                {?!view.page}
                <div class="notes">
                    {#sys:notes.block_bg_color|value:"#fff"}
                    {$post.notes}
                </div>
                {/!view.page}
            {/view.post}
			<div class="meta">
                <a href="{$post.url}">{$post.date|date_format:"day_of_month"}{$post.date|date_format:"day_of_month_suffix_en"}&nbsp;{$post.date|date_format:"short_month_en"}&nbsp;{$post.date|date_format:"year"}</a>
			</div>
        {/post.text}
        
		</div> 
	{/loop:posts}
    
    {?view.list}
        <div class="outer">
        	<div id="page" class="text"><? require('dd://assets/2012/0803/152237rN6l/pagination-number.coffee').pagination({total:true,prev:"上一页",next:"下一页",first:"",last:"",number:true,class:"current"}) ?></div>
        </div>
    {/view.list}
    {?view.post}
        <div class="outer">
        	<div id="page" class="text"><? require('dd://assets/2012/0803/152237rN6l/pagination-number.coffee').pagination({total:true,prev:"上一篇",next:"下一篇",first:"",last:"",number:false,class:"current"}) ?></div>
        </div>
    {/view.post}
    
	</div>
</div>
</body>
</html>
<!--powered by venus-->