Skip to content

Commit

Permalink
Merge pull request #11 from ouyangyanhuo/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ouyangyanhuo committed Jul 28, 2022
2 parents 5155c58 + 7f0be80 commit 3c0e3d5
Show file tree
Hide file tree
Showing 18 changed files with 191 additions and 96 deletions.
97 changes: 70 additions & 27 deletions README.md
@@ -1,25 +1,63 @@
## SmileTheme
<p align="center">
<img src="https://tva4.sinaimg.cn/large/008aATBzgy1h4k9e3x97nj30qe0qetd8.jpg" width="200" height="200" alt="Haku">
</p>

一个为typecho移植的主题,源自于[hugo-tania](https://github.com/WingLim/hugo-tania)主题,原本是Hugo的主题,被移植到Typecho上在其基础上进行了深度修改的Smiletheme或许是你在Typecho上最好的选择
<div align="center">

[![AdminMD](https://img.shields.io/badge/Magneto-SmileTheme-brightgreen?style=for-the-badge)](https://fmcf.cc/technology/523/)
![Version](https://img.shields.io/badge/Version-1.2.8-critical?style=for-the-badge)
![Repo-size](https://img.shields.io/github/languages/code-size/ouyangyanhuo/SmileTheme?style=for-the-badge)
![License](https://img.shields.io/github/license/ouyangyanhuo/SmileTheme?style=for-the-badge)
![Stars](https://img.shields.io/github/stars/ouyangyanhuo/SmileTheme?style=for-the-badge)
![Forks](https://img.shields.io/github/forks/ouyangyanhuo/SmileTheme?style=for-the-badge&k)
# Tina

原主题:[https://github.com/WingLim/hugo-tania](https://github.com/WingLim/hugo-tania)
_Haku,是 Tina 小姐最爱的喵喵,它在这里守卫着 Tina 小姐_

## 最近版本更新日志
</div>

## 年少之梦

<div align="center">

本项目及开发者已加入 [「年少之梦」](https://www.teendreams.cn) 组织

<a href="https://www.teendreams.cn/" target="_blank" ><img width="100px" height="100px" src="https://s2.loli.net/2022/07/21/MmO4cGWazgjrlTd.png"></a>
</div>

## 更新前注意

此更新注意事项仅存在于 2.0.0 正式版本中,请务必认真!
- 在 2.0.0 版本,由于主题更名,因此主题文件夹名称会变更,与旧版本能够共存,但一定要删除旧版本的文件!!否则会导致更新检测冲突。
- 在 2.0.0 版本,由于主题更名,启用新主题时,会导致原主题的相关设置内容丢失,请启用前做好设置内容的备份!

- 修复主题应用时存在的Bug
- 重构部分页面
- 本版本属于修复更新,无重大功能更新
## TinaTheme

## 使用提示
一个为typecho移植的主题,源自于[hugo-tania](https://github.com/WingLim/hugo-tania)主题,原本是Hugo的主题,被移植到Typecho上在其基础上进行了深度修改的 TinaTheme 或许是你在Typecho上最好的选择

- 在1.2.7版本更新时,添加了评论区头像优化,使得评论区头像可以通过QQ邮箱解析,并且更改了默认头像源,评论区头像优化是一项无法关闭的内容,如果需要关闭或修改 Gravatar 的代理地址,请前往 `/主题所在目录/core/functions.php` 第 190-211 行 进行修改。
[![AdminMD](https://img.shields.io/badge/Magneto-TinaTheme-brightgreen?style=for-the-badge)](https://fmcf.cc/technology/523/)
![Version](https://img.shields.io/badge/Version-2.0.0-critical?style=for-the-badge)
![Repo-size](https://img.shields.io/github/languages/code-size/ouyangyanhuo/TinaTheme?style=for-the-badge)
![License](https://img.shields.io/github/license/ouyangyanhuo/TinaTheme?style=for-the-badge)
![Stars](https://img.shields.io/github/stars/ouyangyanhuo/TinaTheme?style=for-the-badge)
![Forks](https://img.shields.io/github/forks/ouyangyanhuo/TinaTheme?style=for-the-badge&k)

原主题:[https://github.com/WingLim/hugo-tania](https://github.com/WingLim/hugo-tania)

## 最近版本更新日志

- 此版本为开发版(Build22725-Dev)
- 🚀由 SmileTheme 更名为 TinaTheme
- ✨新增了 代码块
- ✨新增了滚动条样式
- ✨新增了针对上一篇、下一篇按钮的核心内容
- ✨新增了加密文章的输入框、提交按钮的样式
- ✨新增了对 MathJax 和 KaTeX 数学公式的渲染支持
- ✨重写了 代码高亮
- ✨重写了上一篇、下一篇按钮
- 🔪删除了在文章没有设置 标签 时显示的"No Tag"
- 🔪删除了评论头像(负)优化
- 修复了关闭后台夜间模式后存在的问题
- 修复评论过长,导致文本溢出的问题
- 优化更新检测请求的UI
- 完成所有所需页面的重构
- 调整评论区 取消回复 按钮位置
- 优化夜间模式评论区输入内容的显示效果
- 将更新检测请求由 GitHub 移至 Assets-FMCF

## 功能与特性

Expand All @@ -35,42 +73,47 @@

- 完善的后台设置系统

- HighLight.js

- Pjax

欢迎提 Issues 和 PRs,欢迎提出建议

## 使用
下载主题包并解压 ( 若是从 GitHub 或 Gitee 下载,请把解压出来的文件夹改名为 `SmileTheme` ) ,将文件夹上传至网站文件主题目录 ( `/usr/theme` ) 下,进入网站后台 - 控制台 - 外观 - 启用主题即可。
下载主题包并解压 ( 若是从 GitHub 或 Gitee 下载,请把解压出来的文件夹改名为 `TinaTheme` ) ,将文件夹上传至网站文件主题目录 ( `/usr/theme` ) 下,进入网站后台 - 控制台 - 外观 - 启用主题即可。

## 文档

SmileTheme 文档 : [https://smiletheme.docs.fmcf.cc](https://smiletheme.docs.fmcf.cc)
TinaTheme 文档 : [https://tinatheme.docs.fmcf.cc](https://tinatheme.docs.fmcf.cc)

## Demo

主题效果预览

SmileTheme主题演示站[https://smiletheme.fmcf.cc](https://smiletheme.fmcf.cc)
TinaTheme主题演示站[https://tinatheme.fmcf.cc](https://tinatheme.fmcf.cc)

## 注意

SmileTheme 使用 [GPL V3.0](https://github.com/ouyangyanhuo/SmileTheme/blob/main/LICENSE) 协议开源,请遵守此协议进行二次开发等。
TinaTheme 使用 [GPL V3.0](https://github.com/ouyangyanhuo/TinaTheme/blob/main/LICENSE) 协议开源,请遵守此协议进行二次开发等。

您必须在页脚保留 SmileTheme 主题的名称及其指向链接,否则请不要使用 SmileTheme 主题。
您必须在页脚保留 TinaTheme 主题的名称及其指向链接,否则请不要使用 TinaTheme 主题。

您可以删除页脚的作者版权信息,但是不能删除 SmileTheme 主题的名称及其指向链接。
您可以删除页脚的作者版权信息,但是不能删除 TinaTheme 主题的名称及其指向链接。

## 捐赠

如果您很喜欢这个主题,不妨[捐赠](https://www.verypoor.cn)一下我,这样有助于我更高效的开发

## 下载渠道

1.GitHub [https://github.com/ouyangyanhuo/SmileTheme](https://github.com/ouyangyanhuo/SmileTheme) 适合国外(主仓库)
1.GitHub [https://github.com/ouyangyanhuo/TinaTheme](https://github.com/ouyangyanhuo/TinaTheme) 适合国外(主仓库)

2.取消 Gitee 下载 因为它真的比 Shit 还烂,Gitee仓库会保留,但不会同步、更新。

## 预览图
![](https://i.loli.net/2021/08/16/nmvW5uVKHChafsd.png)
![](https://i.loli.net/2021/08/16/sARYjilgO9MF2H1.png)
![](https://i.loli.net/2021/08/16/rcXL5KjbueZ6zQp.png)
![](https://i.loli.net/2021/08/16/wLxGjiPm6pZoyBt.png)
![](https://i.loli.net/2021/08/16/Cq1Dymtsur4eTAV.png)
![](https://tva4.sinaimg.cn/large/008aATBzly1h4lu8mys6rj340e256kjl.jpg)
![](https://tva4.sinaimg.cn/large/008aATBzly1h4lu8ls0w1j340e2561ky.jpg)
![](https://tva4.sinaimg.cn/large/008aATBzly1h4lu8ktiopj31x20ysgys.jpg)
![](https://tva4.sinaimg.cn/large/008aATBzly1h4lu8k558gj31x20ysqgq.jpg)
![](https://tva4.sinaimg.cn/large/008aATBzly1h4lu8l3r4mj31x20ys4ec.jpg)
![](https://i.loli.net/2021/08/16/Cq1Dymtsur4eTAV.png)
1 change: 1 addition & 0 deletions assets/css/cursor.css

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

4 changes: 2 additions & 2 deletions assets/css/style.css

Large diffs are not rendered by default.

Binary file modified assets/favicon.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion assets/js/cursor.js

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

4 changes: 2 additions & 2 deletions assets/js/features.js

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

2 changes: 2 additions & 0 deletions assets/js/katex.support.js

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

7 changes: 2 additions & 5 deletions comments.php
Expand Up @@ -22,7 +22,7 @@
?>">
<div id="<?php $comments->theId(); ?>">
<div class="comment-author">
<img class="avatar" src="<?php Authorimg($comments->mail); ?>s=100" alt="Comment_avatar" width="40" height="40"></a>
<?php $comments->gravatar('40', ''); ?>
<cite class="fn"><?php $comments->author(); ?></cite>
</div>
<div class="comment-meta">
Expand All @@ -47,10 +47,7 @@
<?php $this->comments()->to($comments); ?>
<?php if($this->allow('comment')): ?>
<div id="<?php $this->respondId(); ?>" class="respond">
<div class="cancel-comment-reply">
<?php $comments->cancelReply(); ?>
</div>
<h4 class="article-post"><?php _e('添加新评论'); ?></h4>
<h4 class="article-post"><?php _e('添加新评论'); ?> <small><?php $comments->cancelReply(); ?></small></h4>
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" class="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" no-pjax><?php _e('退出'); ?> &raquo;</a></p>
Expand Down

0 comments on commit 3c0e3d5

Please sign in to comment.