-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
f3002e8
commit 6099ea3
Showing
16 changed files
with
1,633 additions
and
2 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,16 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<?php $this->need('header.php'); ?> | ||
|
||
<div class="col-mb-12 col-tb-8 col-tb-offset-2"> | ||
|
||
<div class="error-page"> | ||
<h2 class="post-title">404 - <?php _e('页面没找到'); ?></h2> | ||
<p><?php _e('你想查看的页面已被转移或删除了, 要不要搜索看看: '); ?></p> | ||
<form method="post"> | ||
<p><input type="text" name="s" class="text" autofocus /></p> | ||
<p><button type="submit" class="submit"><?php _e('搜索'); ?></button></p> | ||
</form> | ||
</div> | ||
|
||
</div><!-- end #content--> | ||
<?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 |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# typecho-theme-Mecho | ||
typecho主题 | ||
|
||
#### Mecho | ||
|
||
- 特色: | ||
- 每日必应图片、每日故事 | ||
|
||
- 使用方式: | ||
|
||
``` | ||
#进入 typecho 主题目录 | ||
cd usr/themes/ | ||
#克隆本主题 | ||
git clone [email protected]:WarnerYang/typecho-theme-Mecho.git Mecho | ||
``` | ||
|
||
- 每日访问后会在博客根目录生成两个文件 | ||
- 20180719.jpg #必应每日壁纸 | ||
- 20180719.json #必应每日故事 | ||
|
||
**觉得不错就右上角 start 支持下吧!** |
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,43 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<?php $this->need('header.php'); ?> | ||
|
||
<div id="body"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-12" id="main" role="main"> | ||
<h3 class="archive-title"><?php $this->archiveTitle(array( | ||
'category' => _t('分类 %s 下的文章'), | ||
'search' => _t('包含关键字 %s 的文章'), | ||
'tag' => _t('标签 %s 下的文章'), | ||
'author' => _t('%s 发布的文章') | ||
), '', ''); ?></h3> | ||
<?php if ($this->have()): ?> | ||
<?php while($this->next()): ?> | ||
<article class="post index" itemscope itemtype="http://schema.org/BlogPosting"> | ||
<h2 class="post-title" itemprop="name headline"><a itemtype="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2> | ||
<ul class="post-meta"> | ||
<li> | ||
<time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"> | ||
<?php $this->date('Y-m-d'); ?> | ||
</time> | ||
</li> | ||
<li><?php $this->category(','); ?></li> | ||
<li itemprop="interactionCount"> | ||
<a itemprop="discussionUrl" href="<?php $this->permalink() ?>#comments"> | ||
<?php $this->commentsNum('%d 条评论'); ?> | ||
</a> | ||
</ul> | ||
<div class="post-content home" itemprop="articleBody"> | ||
<?php $this->excerpt(100, '...'); ?> | ||
</div> | ||
</article> | ||
<?php endwhile; ?> | ||
<?php else: ?> | ||
<article class="post"> | ||
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2> | ||
</article> | ||
<?php endif; ?> | ||
|
||
<?php $this->pageNav('上一页','下一页',10,'...');?> | ||
</div><!-- end #main --> | ||
<?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,49 @@ | ||
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> | ||
<div id="comments"> | ||
<?php $this->comments()->to($comments); ?> | ||
<?php if ($comments->have()): ?> | ||
<h3><?php $this->commentsNum('%d 条评论'); ?></h3> | ||
<?php $comments->listComments(); ?> | ||
<?php $comments->pageNav('上一页','下一页',10,'...');?> | ||
<?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"><?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> | ||
<label for="author" class="required"><?php _e('名称(必填)'); ?></label> | ||
<input type="text" name="author" id="author" class="text" value="<?php $this->remember('author'); ?>" required /> | ||
</p> | ||
<p> | ||
<label for="mail"<?php if ($this->options->commentsRequireMail): ?> class="required"<?php endif; ?>><?php _e('邮箱(必填,不会被公开)'); ?></label> | ||
<input type="email" name="mail" id="mail" class="text" value="<?php $this->remember('mail'); ?>"<?php if ($this->options->commentsRequireMail): ?> required<?php endif; ?> /> | ||
</p> | ||
<p> | ||
<label for="url"<?php if ($this->options->commentsRequireURL): ?> class="required"<?php endif; ?>><?php _e('网站'); ?></label> | ||
<input type="url" name="url" id="url" class="text" placeholder="<?php _e('http://'); ?>" value="<?php $this->remember('url'); ?>"<?php if ($this->options->commentsRequireURL): ?> required<?php endif; ?> /> | ||
</p> | ||
<?php endif; ?> | ||
<p> | ||
<label for="textarea" class="required"><?php _e('内容(必填,支持 Markdown 语法)'); ?></label> | ||
<textarea rows="8" cols="50" name="text" id="textarea" class="textarea" required ><?php $this->remember('text'); ?></textarea> | ||
</p> | ||
<?php | ||
if(isset($this->options->plugins['activated']['Smilies'])) | ||
Smilies_Plugin::output(); | ||
?> | ||
<p> | ||
<button type="submit" class="submit"><?php _e('留言'); ?></button> | ||
</p> | ||
</form> | ||
</div> | ||
<?php else: ?> | ||
<h3><?php _e('评论已关闭'); ?></h3> | ||
<?php endif; ?> | ||
</div> |
Oops, something went wrong.