29 lines
1.5 KiB
PHP
29 lines
1.5 KiB
PHP
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
|
|
<?php $this->need('header.php'); ?>
|
|
|
|
<div class="col mt-5" id="main" role="main">
|
|
<article itemscope itemtype="http://schema.org/BlogPosting">
|
|
<h1 class="font-weight-bold post-title" itemprop="name headline">
|
|
<a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
|
|
</h1>
|
|
<ul class="post-meta">
|
|
<li itemprop="author" itemscope itemtype="http://schema.org/Person"><?php _e('作者: '); ?><a itemprop="name" href="<?php $this->author->permalink(); ?>" rel="author"><?php $this->author(); ?></a></li>
|
|
<li><?php _e('时间: '); ?><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></li>
|
|
<li><?php _e('分类: '); ?><?php $this->category(','); ?></li>
|
|
</ul>
|
|
<hr>
|
|
<div class="post-content" itemprop="articleBody">
|
|
<?php $this->content(); ?>
|
|
</div>
|
|
<!--<p itemprop="keywords" class="post-tags"><?php _e('标签: '); ?><?php $this->tags(', ', true, 'none'); ?></p>-->
|
|
</article>
|
|
<!-- 暂时找不到好的办法让这个很好地兼容 Bootstrap 的写法 -->
|
|
<!-- <ul class="post-near">
|
|
<li>上一篇: <?php #$this->thePrev('%s','没有了'); ?></li>
|
|
<li>下一篇: <?php #$this->theNext('%s','没有了'); ?></li>
|
|
</ul> -->
|
|
<?php $this->need('comments.php'); ?>
|
|
</div><!-- end #main-->
|
|
|
|
<?php $this->need('footer.php'); ?>
|