-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dingzd1995
committed
Aug 19, 2020
0 parents
commit a7a998e
Showing
50 changed files
with
8,537 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<?php $this->need('header.php'); ?> | ||
|
||
<!--start 404 page--> | ||
<style> | ||
.title404{ | ||
font-size:160px; | ||
color:#F3726D; | ||
text-align:center; | ||
padding-top:35px; | ||
font-weight:normal; | ||
} | ||
.text404{ | ||
text-align:center; | ||
font-size:40px; | ||
color:#F3726D; | ||
font-weight:normal; | ||
} | ||
.bottom404{ | ||
margin-bottom: 35px; | ||
} | ||
</style> | ||
<section class="content-wrap"> | ||
<div class="container"> | ||
<div class="row" id="404"> | ||
<h3 class="title404"><?php _e('404'); ?></h3> | ||
<p class="text404"><?php _e('Not Found'); ?></p> | ||
<hr> | ||
<p class="text404"><!--a href="javascript:history.go(-1)" class="btn btn-default"><?php _e('返回上一页'); ?></a--><a href="<?php $this->options->siteUrl(); ?>" class="btn btn-default" ><?php _e('返回首页'); ?>(<scan id="time"></scan>)</a></p> | ||
</div> | ||
<div class="bottom404"></div> | ||
</div> | ||
</section> | ||
<!--end 404 page--> | ||
|
||
<?php $this->need('footer.php'); ?> | ||
|
||
|
||
<script type="text/javascript"> | ||
var i=10; | ||
$(function(){ | ||
jump(); | ||
after(); | ||
//var window_height = window.screen.availHeight; | ||
//var div_height = window_height * 0.7; | ||
//$("#404").height(div_height); | ||
}); | ||
|
||
|
||
//自动跳转首页 | ||
function jump(){ | ||
setTimeout(function(){ | ||
window.location.href='/'; | ||
},i*1000);//10秒后返回首页 | ||
} | ||
|
||
//自动刷新页面上的时间 | ||
function after(){ | ||
$("#time").empty().append(i); | ||
i=i-1; | ||
setTimeout(function(){ | ||
after(); | ||
},1000); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# Waxy 简约自适应博客主题 | ||
|
||
**[在线预览 | PREVIEW ](https://www.idzd.top)** | ||
|
||
Waxy 简约自适应博客主题,轻量高效,悦于书写!支持主题自定义、短代码、文章置顶/标星、公告等功能。 | ||
|
||
![Waxy 简约自适应博客主题](https://github.com/dingzd1995/typecho-theme-waxy/blob/master/screenshot.png) | ||
|
||
>本主题参考**seventeen主题**,由其修改更新而来,感谢原作者的辛苦付出! | ||
## 安装主题 | ||
|
||
**主题下载地址:[GitHub](https://github.com/dingzd1995/typecho-theme-waxy)&[CDN](https://pic.idzd.top/)** | ||
|
||
把主题上传到 Typecho 安装路径下的 `usr/themes/` 目录,然后解压,你也可以先解压在上传。 | ||
|
||
解压完成后,请将主题目录重命名为`Waxy`,并保证所有主题文件在此目录下。 | ||
|
||
登录 Typecho 的管理后台,进入 `控制台` -> `外观`,点击 **Waxy** 主题下方的`启用`按钮即可启用。 | ||
|
||
如需修改主题设置,请点击`设置外观`进入主题设置。 | ||
|
||
## 主题功能介绍 | ||
|
||
- 响应式布局 | ||
- 轻量高效,悦于书写 | ||
- 短代码快捷功能 | ||
- 自定义侧边栏 | ||
- 图片懒加载 | ||
- 图片灯箱 | ||
- 文章标星 | ||
- 文章缩略图 | ||
- 内容失效提醒 | ||
- 置顶公告 | ||
- 文章置顶 | ||
- CDN切换 | ||
|
||
|
||
### 短代码 | ||
|
||
短代码可以快速为你提供更多展示效果。使文章层次更丰富。 | ||
|
||
#### 使用方法 | ||
|
||
```bash | ||
#多彩提示框 | ||
[info]一般提示[/info] | ||
|
||
[warning]警告提示[/warning] | ||
|
||
[danger]危险提示[/danger] | ||
|
||
[info]多行内容测试:<br /> | ||
生活如酒,或芳香,或浓烈,因为诚实,它变得醇厚;生活如歌,或高昂,或低沉,因为守信,它变得悦耳; 生活如画,或明丽,或素雅,因为诚信,它变得美丽。[/info] | ||
|
||
#文字提示 | ||
[em]警告文字样式[/em] | ||
|
||
[hi]高亮文字样式[/hi] | ||
|
||
[lo]备注文字样式[/lo] | ||
|
||
|
||
#插入视频 | ||
[video src="视频地址" poster="视频封面地址(可省略)" ] | ||
|
||
#插入音频 | ||
[audio src="音频地址"] | ||
``` | ||
|
||
|
||
|
||
#### 效果 | ||
|
||
![多彩提示框](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/21894651.png ) | ||
![文字提示](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/0d30a994.png ) | ||
![视频](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/e1ef9808.png ) | ||
|
||
|
||
### 代码高亮 | ||
|
||
基于[prism.js](https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+apacheconf+c+csharp+bash+cpp+aspnet+coffeescript+markup-templating+git+less+java+php+javadoclike+markdown+json+nginx+sql+python+javadoc+smarty&plugins=line-numbers+toolbar+normalize-whitespace+show-language+copy-to-clipboard+match-braces)实现,自带8种主题。 | ||
|
||
![代码高亮设置](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/06dc523e.png ) | ||
|
||
>移植于[CodeHighlighter-for-Typecho插件](https://github.com/Copterfly/CodeHighlighter-for-Typecho),感谢原作者的辛苦劳动! | ||
### 自定义侧边栏 | ||
|
||
- 显示搜索 | ||
- 显示分类 | ||
- 显示标签云 | ||
- 显示最新文章 | ||
- 显示最近回复 | ||
- 显示归档 | ||
- 显示微信公众号 | ||
- 显示友情链接 | ||
- 显示其它杂项 | ||
|
||
### 文章缩略图 | ||
|
||
如果想使用缩略图,请在文章自定义字段 img 添加网址即可 | ||
|
||
### 文章标星 | ||
|
||
如果想在文章右上角显示一个显眼的标记,请添加文章自定义字段 star 即可 | ||
|
||
![cc76186f.png](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/cc76186f.png ) | ||
|
||
### 文章内容失效提醒 | ||
|
||
![13267df4.png](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/13267df4.png ) | ||
|
||
### 置顶公告 | ||
|
||
![43845bf9.png](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/43845bf9.png ) | ||
|
||
|
||
### 文章置顶 | ||
|
||
![2b17fa90.png](https://github.com/dingzd1995/dingzd1995.github.io/blob/master/img/page_img/typecho-theme-waxy/2b17fa90.png ) | ||
|
||
-------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<?php $this->need('header.php'); ?> | ||
|
||
|
||
<section class="content-wrap"> | ||
<div class="container"> | ||
<div class="row"> | ||
|
||
|
||
<main class="col-md-8 main-content"> | ||
|
||
<div class="cover tag-cover"> | ||
<h3 class="tag-name"> | ||
<?php $this->archiveTitle(array( | ||
'category' => _t('分类 %s 下的文章'), | ||
'search' => _t('包含关键字 <code>%s</code> 的文章'), | ||
'tag' => _t('标签 %s 下的文章'), | ||
'author' => _t('%s 发布的文章') | ||
), '', ''); ?> | ||
</h3> | ||
</div> | ||
|
||
<?php while($this->next()): ?> | ||
|
||
<article id="<?php $this->cid() ?>" class="post"> | ||
|
||
<?php if (array_key_exists('star',unserialize($this->___fields()))): ?><div class="featured" title="推荐文章"> | ||
<i class="glyphicon glyphicon-star"></i> | ||
</div><?php endif; ?> | ||
|
||
<div class="post-head"> | ||
<h1 class="post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1> | ||
<div class="post-meta"> | ||
<span class="author">作者:<a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a></span> | ||
<time class="post-date" datetime="<?php $this->date('c'); ?>" title="<?php $this->date('Y年m月d日'); ?>">时间:<?php $this->date('Y年m月d日'); ?></time> | ||
<span class="author">分类:<?php $this->category(','); ?></span> | ||
<span class="author">字数:<?php echo art_count($this->cid); ?></span> | ||
</div> | ||
<div class="post-border"></div> | ||
</div> | ||
<?php if (array_key_exists('img',unserialize($this->___fields()))): ?> | ||
<div class="featured-media"> | ||
<a href="<?php $this->permalink() ?>"><img src="<?php $this->fields->img(); ?>" alt="<?php $this->title() ?>"></a> | ||
</div> | ||
<?php endif; ?> | ||
<div class="post-content"> | ||
<!--?php $this->content(); ?--> | ||
<?php echo getIndexContent($this->content,$this->permalink); ?> | ||
</div> | ||
<footer class="post-footer clearfix"> | ||
<div class="pull-left tag-list"> | ||
<i class="glyphicon glyphicon-folder-open"></i> | ||
<?php $this->tags(' , ', true, 'none'); ?> | ||
</div> | ||
<div class="pull-right post-permalink" > | ||
<a href="<?php $this->permalink() ?>" class="btn btn-default">阅读全文</a> | ||
</div> | ||
</footer> | ||
</article> | ||
|
||
<?php endwhile; ?> | ||
|
||
<nav class="pagination" role="navigation"> | ||
|
||
<?php $this->pageLink('<x aria-label="Previous" class="newer-posts"><i class="glyphicon glyphicon-menu-left"></i></x>'); ?> | ||
<span class="page-number">第 <?php if($this->_currentPage>1) echo $this->_currentPage; else echo 1;?> 页 / 共 <?php echo ceil($this->getTotal() / $this->parameter->pageSize); ?> 页</span> | ||
<?php $this->pageLink('<x aria-label="Next" class="older-posts"><i class="glyphicon glyphicon-menu-right"></i></x>','next'); ?> | ||
</nav> | ||
|
||
|
||
</main> | ||
|
||
|
||
<?php $this->need('sidebar.php'); ?> | ||
|
||
</div class="row"> | ||
</div class="container"> | ||
</section> | ||
|
||
<?php $this->need('footer.php'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<div id="comments"> | ||
<?php $this->comments()->to($comments); ?> | ||
<?php if ($comments->have()): ?> | ||
<h3><?php $this->commentsNum(_t('暂无评论'), _t('仅有一条评论'), _t('已有 %d 条评论')); ?></h3> | ||
|
||
<?php $comments->listComments(); ?> | ||
|
||
<?php $comments->pageNav('« 前一页', '后一页 »'); ?> | ||
|
||
<?php endif; ?> | ||
|
||
<?php if($this->allow('comment')): ?> | ||
<div id="<?php $this->respondId(); ?>" class="respond"> | ||
<div class="cancel-comment-reply"> | ||
<?php $comments->cancelReply(); ?> | ||
</div> | ||
|
||
<h3 id="response" class="addco"><?php _e('添加新评论'); ?></h3> | ||
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" role="form"> | ||
<?php if($this->user->hasLogin()): ?> | ||
<p><?php _e('登录身份: '); ?><a href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a>. <a href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?> »</a></p> | ||
<?php else: ?> | ||
<p> | ||
<input type="text" name="author" placeholder="昵称(必填)" id="author" class="text form-control" value="<?php $this->remember('author'); ?>" required /> | ||
</p> | ||
<p> | ||
<input type="email" name="mail" id="mail" placeholder="邮件(必填,仅管理员可见,支持Gravatar头像)" class="text form-control" value="<?php $this->remember('mail'); ?>"<?php if ($this->options->commentsRequireMail): ?> required<?php endif; ?> /> | ||
</p> | ||
<p> | ||
<input type="url" name="url" id="url" class="text form-control" placeholder="<?php _e('您的网址(非必填,请带上http://或https://)'); ?>" value="<?php $this->remember('url'); ?>"<?php if ($this->options->commentsRequireURL): ?> required<?php endif; ?> /> | ||
</p> | ||
<?php endif; ?> | ||
<p> | ||
<textarea rows="8" cols="50" name="text" id="textarea" class="textarea form-control" placeholder="<?php _e('留下您伟大的看法......'); ?>" required ><?php $this->remember('text'); ?></textarea> | ||
</p> | ||
<p><?php //Captcha_Plugin::output(); ?></p> | ||
<p> | ||
<button type="submit" class="submit btn btn-lg"><?php _e('提交评论'); ?></button> | ||
</p> | ||
</form> | ||
</div> | ||
<?php else: ?> | ||
<h3><?php _e('评论已关闭'); ?></h3> | ||
<?php endif; ?> | ||
</div> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.