Skip to content

Commit

Permalink
v0.2.2
Browse files Browse the repository at this point in the history
主要优化了一些显示问题和新增了归档页(标签云)模板;
  • Loading branch information
Weic committed May 13, 2017
1 parent 4bafe63 commit 0a1be2e
Show file tree
Hide file tree
Showing 11 changed files with 179 additions and 11 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Note正如其名字一样,是一款适合写作、做笔记的博客主题,

请务必遵守以上几项,这是对作者最起码的尊重;

本主题同时也提供收费版本,其实就是卖个不让免费版干的事(收费版可以魔改和去除页面底部的版权信息以及更新后能及时收到邮件通知);
本主题同时也提供收费服务,其实就是卖个不让免费版干的事(收费服务可以魔改和去除页面底部的版权信息以及更新后能及时收到邮件通知);


#### 功能和特色
Expand All @@ -38,4 +38,4 @@ Note正如其名字一样,是一款适合写作、做笔记的博客主题,

#### 更多信息

更多信息请访问[作者博客](https://weic96.cn/themes-note/)查看
本页面不写任何更新日志,只在[作者博客](https://weic96.cn/themes-note/)发布信息
50 changes: 50 additions & 0 deletions archive-page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/**
* 归档页模板
*
* @package custom
*/
?>
<?php $this->need('header.php'); ?>
<div class="body-layout">
<div class="post-body-layout">
<div class="post-header">
<h2><?php $this->title() ?></h2>
</div>
<div class="index-container">
<div class="post-layout">
<article class="post-main">
<section class="archive-page-section">
<?php $this->widget('Widget_Metas_Category_List')->to($categories); ?>
<?php while ($categories->next()): ?>
<?php $this->widget('Widget_Archive@category-' . $categories->mid, 'pageSize=7&type=category', 'mid=' . $categories->mid)->to($posts); ?>
<div class="archive-categories">
<?php while ($posts->next()): ?>
<?php if (1 == $posts->sequence): ?>
<h3 class="archive-categories-title"><?php $categories->name(); ?></h3>
<ul>
<!-- <h3 class="archive-categories-title"><?php $categories->name(); ?></h3> -->
<li><?php $posts->date('m-d'); ?>&nbsp;&nbsp;<a class="down-a" href="<?php $posts->permalink(); ?>"><?php $posts->title(43); ?></a></li>
<?php else: ?>
<li><?php $posts->date('m-d'); ?>&nbsp;&nbsp;<a class="down-a" href="<?php $posts->permalink(); ?>"><?php $posts->title(40); ?></a></li>
<?php endif; ?>
<?php endwhile; ?>
</ul>
<div style="clear: both;"></div>
</div>
<?php endwhile; ?>

<div class="archive-tags">
<?php $this->widget('Widget_Metas_Tag_Cloud', 'ignoreZeroCount=1&limit=30')->to($tags); ?>
<?php while($tags->next()): ?>
<a style="background-color:rgb(<?php echo(rand(0, 255)); ?>, <?php echo(rand(0,255)); ?>, <?php echo(rand(0, 255)); ?>)" href="<?php $tags->permalink(); ?>" title='<?php $tags->name(); ?>'><?php $tags->name(); ?></a>
<?php endwhile; ?>
</div>
</section>
</article>
</div>
</div>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<?php $this->need('footer.php'); ?>
3 changes: 2 additions & 1 deletion archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
<?php endif; ?>
<?php $this->need('navigator.php'); ?>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<?php $this->need('footer.php'); ?>
<?php $this->need('footer.php'); ?>
43 changes: 43 additions & 0 deletions css/adapt.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,49 @@
.links-page-section .links2-btn{
width: 90%;
}
/*Typecho归档页*/
.archive-categories>ul{
margin: 0;
padding: 0;
padding-top: 0;
padding-left: 0;
border-left: none;
clear: both;
width: 100%;
}
.archive-categories h3{
font-weight: 200;
font-size: 15pt;
padding: 10px 0;
padding-right: 10px;
color: #777;
clear: both;
width: 100%;
text-align: left;
}
.archive-categories>ul>li{
position: relative;
line-height: 38px;
font-size: 11.5pt;
color: #555;
text-align: justify;
}
.archive-categories>ul>li>a{
font-size: 11.5pt;
color: #555;
text-align: justify;
}
.archive-categories>ul>li:before{
content: " ";
width: 0;
height: 0;
border: none;
background: none;
border-radius: 0;
position: absolute;
top: 0;
left: 0;
}
}
@media screen and (max-width:571px) {
.comments-info-box>input{
Expand Down
68 changes: 68 additions & 0 deletions css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -1326,6 +1326,74 @@ textarea{
margin-bottom: 24px;
}
/*自定义友链页面结束*/
/*Typecho归档页模板开始*/
.archive-page-section{

}
.archive-page-section>h2{
font-weight: 200;
font-size: 30px;
margin-bottom: 25px;
color: #255;
}
.archive-page-section .archive-categories{

}
.archive-categories>ul{
margin: 0;
padding: 0;
padding-top: 45px;
padding-left: 16px;
border-left: 2px solid #bdbedc;
float: left;
width: 60%;
}
.archive-categories h3{
font-weight: 200;
font-size: 15pt;
padding: 10px 0;
padding-right: 10px;
color: #777;
float: left;
width: 20%;
text-align: right;
}
.archive-categories>ul>li{
position: relative;
line-height: 38px;
font-size: 11.5pt;
color: #bfa3a3;
text-align: justify;
}
.archive-categories>ul>li>a{
font-size: 11.5pt;
color: #555;
text-align: justify;
}
.archive-categories>ul>li:before{
content: " ";
width: 6px;
height: 6px;
border: 1px solid #bdbedc;
background: #bdbedc;
border-radius: 180px;
position: absolute;
top: 15px;
left: -21px;
}
.archive-tags{
padding-top: 70px;
}
.archive-tags>a{
display: inline-block;
padding: 4px 8px;
margin: 4px;
color: #fff;
font-size: 11pt;
font-weight: 200;
border-radius: 6px;
}
/*Typecho归档页模板结束*/
/*自定义页面结束*/
/*页面底部开始*/
.page-footer{
Expand Down
7 changes: 1 addition & 6 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div style="clear:both;"></div>
<footer class="page-footer">
<p>Copyright @ <?php echo(date("Y")) ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a></p>
<p><?php if ($this->options->socialicp): ?><a target="_blank" href="http://www.miitbeian.gov.cn/"><?php $this->options->socialicp(); ?></a> | <?php endif; ?>
Powered by <a href="http://typecho.org" target="_blank">Typecho</a>,Themes <a target="_blank" href="https://weic96.cn/themes-note/">Note</a>.</p>
</footer>

<?php $this->footer(); ?>
</div>
<script src="<?php $this->options->themeUrl('js/jquery.pjax.js'); ?>"></script>
Expand Down
5 changes: 3 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Note
* @author Weic
* @version 0.2
* @version 0.2.2
* @link http://weic96.cn
*/

Expand Down Expand Up @@ -33,5 +33,6 @@
<?php endwhile; ?>
<?php $this->need('navigator.php'); ?>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<?php $this->need('footer.php'); ?>
<?php $this->need('footer.php'); ?>
1 change: 1 addition & 0 deletions links.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
</div>
</div>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<?php $this->need('footer.php'); ?>
6 changes: 6 additions & 0 deletions page-footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div style="clear:both;"></div>
<footer class="page-footer">
<p>Copyright @ <?php echo(date("Y")) ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a></p>
<p><?php if ($this->options->socialicp): ?><a target="_blank" href="http://www.miitbeian.gov.cn/"><?php $this->options->socialicp(); ?></a> | <?php endif; ?>
Powered by <a href="http://typecho.org" target="_blank">Typecho</a>,Themes <a target="_blank" href="https://weic96.cn/themes-note/">Note</a>.</p>
</footer>
1 change: 1 addition & 0 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
</div>
</div>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<?php $this->need('footer.php'); ?>
2 changes: 2 additions & 0 deletions post.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
</div>
</div>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<div class="post-donate">
<!-- 箭头模式 -->
Expand Down Expand Up @@ -75,5 +76,6 @@
</div>
</div>
</div>

<?php $this->need('footer.php'); ?>

0 comments on commit 0a1be2e

Please sign in to comment.