mirror of
https://github.com/typecho/typecho.git
synced 2025-03-18 08:59:40 +01:00
修改默认模板导航菜单
This commit is contained in:
parent
7d7048ea46
commit
c617578f48
@ -1,27 +1,28 @@
|
||||
<?php $this->need('header.php'); ?>
|
||||
|
||||
<div class="col-mb-12 col-tb-8" id="content">
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
<div class="post">
|
||||
<h2 class="entry-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<p class="entry-data">
|
||||
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
|
||||
<span><?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?></span>
|
||||
<?php _e('分类:'); ?><?php $this->category(','); ?>
|
||||
</p>
|
||||
<?php $this->content('阅读剩余部分...'); ?>
|
||||
</div>
|
||||
<?php endwhile; ?>
|
||||
<?php else: ?>
|
||||
<div class="post">
|
||||
<h2 class="entry-title"><?php _e('没有找到内容'); ?></h2>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<?php if ($this->have()): ?>
|
||||
<?php while($this->next()): ?>
|
||||
<article class="post">
|
||||
<h2 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<div class="post-meta">
|
||||
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
|
||||
<span><?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?></span>
|
||||
<?php _e('分类:'); ?><?php $this->category(','); ?>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<?php $this->content('阅读剩余部分...'); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php else: ?>
|
||||
<article class="post">
|
||||
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
|
||||
</article>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $this->pageNav(); ?>
|
||||
</div><!-- end #main -->
|
||||
|
||||
<ol class="pages clearfix">
|
||||
<?php $this->pageNav(); ?>
|
||||
</ol>
|
||||
</div><!-- end #content-->
|
||||
<?php $this->need('sidebar.php'); ?>
|
||||
<?php $this->need('footer.php'); ?>
|
||||
|
@ -3,10 +3,6 @@
|
||||
<div class="col-mb-12 col-8" id="main">
|
||||
<article class="post">
|
||||
<h2 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
|
||||
<div class="post-meta">
|
||||
<span><?php _e('作者:'); ?><?php $this->author(); ?></span>
|
||||
<?php _e('发布时间:'); ?><?php $this->date('F j, Y'); ?>
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<?php $this->content(); ?>
|
||||
</div>
|
||||
|
@ -70,16 +70,17 @@ input[type="text"], input[type="email"], input[type="url"] {
|
||||
|
||||
/* navigation menu */
|
||||
#nav-menu {
|
||||
margin-top: 30px;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 3px double #E9E9E6;
|
||||
margin-top: 20px;
|
||||
padding: 0;
|
||||
border-bottom: 1px solid #E9E9E6;
|
||||
}
|
||||
#nav-menu a {
|
||||
display: inline-block;
|
||||
margin-right: 16px;
|
||||
padding-right: 20px;
|
||||
margin-right: -4px;
|
||||
padding: 5px 20px 10px;
|
||||
border-right: 1px solid #E9E9E6;
|
||||
}
|
||||
#nav-menu a:hover { text-decoration: none; }
|
||||
#nav-menu .current {
|
||||
color: #444;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user