Skip to content

Commit

Permalink
1.2.8-Build22717-3-Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ouyangyanhuo committed Jul 17, 2022
1 parent 445898f commit 7bf19cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
/**
* 移植自<a href="https://limxw.com/" target="_blank">WingLim</a>的<a href="https://github.com/WingLim/hugo-tania" target="_blank">hugo-tania</a>主题,在其基础上进行了深度修改的Smiletheme或许是你在Typecho上最好的选择
* <hr><a style="width:fit-content" id="SmileTheme">版本检测中...&nbsp;</div>
* <script>var simversion="1.2.8-Build22717-2-Dev";function update_detec(){var container=document.getElementById("SmileTheme");if(!container){return}var ajax=new XMLHttpRequest();container.style.display="block";ajax.open("get","https://api.github.com/repos/ouyangyanhuo/SmileTheme/releases/latest");ajax.send();ajax.onreadystatechange=function(){if(ajax.readyState===4&&ajax.status===200){var obj=JSON.parse(ajax.responseText);var newest=obj.tag_name;if(newest>simversion){container.innerHTML="发现新主题版本:"+obj.name+'。下载地址:<a href="'+obj.zipball_url+'">点击下载</a>'+"<br>您目前的版本:"+String(simversion)+"。"+'<a target="_blank" href="'+obj.html_url+'">👉查看新版亮点</a>'}else{container.innerHTML="您目前的版本:"+String(simversion)+"。"+"您目前使用的是最新版。"}}}};update_detec();</script>
* <script>var simversion="1.2.8-Build22717-3-Dev";function update_detec(){var container=document.getElementById("SmileTheme");if(!container){return}var ajax=new XMLHttpRequest();container.style.display="block";ajax.open("get","https://api.github.com/repos/ouyangyanhuo/SmileTheme/releases/latest");ajax.send();ajax.onreadystatechange=function(){if(ajax.readyState===4&&ajax.status===200){var obj=JSON.parse(ajax.responseText);var newest=obj.tag_name;if(newest>simversion){container.innerHTML="发现新主题版本:"+obj.name+'。下载地址:<a href="'+obj.zipball_url+'">点击下载</a>'+"<br>您目前的版本:"+String(simversion)+"。"+'<a target="_blank" href="'+obj.html_url+'">👉查看新版亮点</a>'}else{container.innerHTML="您目前的版本:"+String(simversion)+"。"+"您目前使用的是最新版。"}}}};update_detec();</script>
*
* @package Smile Theme
* @author Magneto
* @version 1.2.8-Build22717-2-Dev
* @version 1.2.8-Build22717-3-Dev
* @link https://www.fmcf.cc
*/

Expand Down
3 changes: 3 additions & 0 deletions post.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<a>
By <a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a>
</a> |
<a>
<time><?php $this->date('M j, Y'); ?></time> |
</a>
<a>
<?php _e('Category: '); ?><?php $this->category(','); ?>
</a>
Expand Down

0 comments on commit 7bf19cc

Please sign in to comment.