Skip to content

Commit

Permalink
- [S] replace Site Title animation.
Browse files Browse the repository at this point in the history
  移除 Title 动画。
- [S] Banner height -> 550px -> 350px (PC)
- [F] fix topView post order.
  • Loading branch information
shiyiya committed Nov 3, 2019
1 parent 5a27779 commit f2cf09b
Show file tree
Hide file tree
Showing 16 changed files with 93 additions and 159 deletions.
2 changes: 1 addition & 1 deletion component/comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<? endif; ?>
<textarea name="text" id="textarea" class="OwO-textarea textarea" required placeholder="<? i18n('在这里输入你的评论...(Ctrl/Control + Enter 快捷提交)') ?>"><? $this->remember('text'); ?></textarea>
<div class="OwO"></div>
<button class="sheen" type="submit" class="submit"><? i18n('评论'); ?></button>
<p class="submit"><button class="sheen" type="submit" class="submit"><? i18n('评论'); ?></button></p>
</form>
<? endif; ?>
</div>
Expand Down
5 changes: 0 additions & 5 deletions component/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@
<script src="<? $this->options->themeUrl('js/sagiri.min.js'); ?>"></script>
<script src="<? $this->options->themeUrl('js/index.min.js'); ?>"></script>

<!-- type -->
<? if (!empty($this->options->StyleSettings) && in_array('Banner', $this->options->StyleSettings)) : ?>
<script src="<? $this->options->themeUrl('js/type.min.js'); ?>"></script>
<? endif; ?>

<!-- Lazy load images -->
<? if (!empty($this->options->feature) && in_array('lazyImg', $this->options->feature)) : ?>
<script src="<? $this->options->themeUrl('util/lazyload.min.js'); ?>"></script>
Expand Down
17 changes: 5 additions & 12 deletions component/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,11 @@
<div class="header-wrap">
<? if (!empty($this->options->StyleSettings) && in_array('Banner', $this->options->StyleSettings)) : ?>
<div class="site-config" style="background-image:url(<? $this->options->backGroundImage ? $this->options->backGroundImage() : _e('https://i.loli.net/2019/10/27/5FsvlogZqOeCczR.jpg') ?>)">
<div class="site-title site-meta">
<?
$ID = ['animate', 'guide'];
foreach ($ID as $key => $value) {
echo ' <div id="' . $value . '" class="' . $value . '">';
$title = $this->options->title;
$len = mb_strlen($title);
for ($i = 0; $i < $len; $i++) {
echo '<span>' . mb_substr($title, $i, 1) . '</span>';
}
echo '</div>';
} ?>
<div class="site-config-wrap">
<div class="animated">
<h2 class="site-title"><? $this->options->title() ?></h2>
<span class="site-meta"><?php $this->options->description() ?></span>
</div>
</div>
</div>
<? endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion component/post-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<? showThumb($this, $this->options->themeUrl); ?>
<? endif; ?>
<div class="post-content" itemprop="articleBody">
<? replaceTag($this->excerpt(150)); ?>
<p><? replaceTag($this->excerpt(150)); ?></p>
<div text-center class="post-button">
<a href="<? $this->permalink() ?>" class="sheen">
<? _e('- ' . _i18n('阅读全文') . ' -'); ?>
Expand Down
1 change: 0 additions & 1 deletion css/mix.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@import './modules/global.scss';
@import './modules/animations.css';
@import './modules/header.css';
@import '../js/global/type/type.css';
@import './modules/index.css';
@import './modules/post.css';
@import './modules/sidebar.css';
Expand Down
2 changes: 1 addition & 1 deletion css/mix.min.css

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion doc/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
## 2018/11/2
[F] Fix Bug.
[S] Style Change.
[A] Add Feature.
[U] Update Config.
[Doc] Update DOC.

## 2019/11/3 (v1.1.4)

- [S] replace Site Title animation.
移除 Title 动画。
- [S] Banner height -> 550px -> 350px (PC)
- [F] fix topView post order.

## 2019/11/2

- [F] Fix when the article title is too much, the Toc display error(layout).
修复文章标题过多时,目录显示错位
Expand Down
1 change: 1 addition & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function themeInit($widget)
require_once 'libray/i18n/index.php';
require_once 'libray/theme-helper.php';
require_once 'libray/field.php';
require_once 'libray/short-code.php';
}


Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @package Sagiri
* @author shiyi
* @version 1.1.3
* @version 1.1.4
* @link https://github.com/shiyiya/typecho-theme-sagiri
*/

Expand Down
2 changes: 1 addition & 1 deletion js/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f2cf09b

Please sign in to comment.