排序
handsome侧边栏添加热搜排行榜
效果图使用方法在 sidebar.php 文件中添加以下代码<!-- 热搜 --> <section class="widget widget_tag_cloud wrapper-md clear" id="hot"> <h5 class="...
Typecho 不使用插件实现内容回复可见
进入 网站目录/usr/themes/主题 找到 post.php 打开步骤一在 post.php 找到 <?php $this->content(); ?> 替换成<?php $db = Typecho_Db::get(); $sql = $db->select()->from(...
Typecho添加时间轴
喜欢那种时间的错落感,时间轴无疑能很好地表现出来。首先看下效果 2020年01月事件3 2019年01月事件2 2018年12月事件1 这样放在关于页面用于写博客发展历程岂不美哉{cat_hide}/* 站点动态时间轴...
Typecho给代码块添加复制功能
在主题目录下建立一个js文件放置到js目录添加以下代码:var codeblocks = document.getElementsByTagName("pre") //循环每个pre代码块,并添加 复制代码 for (var i = 0; i < code...
Typecho底部添加加载时间
首先,将以下代码放入主题文件function.php中/* * 加载时间 * @return bool */ function timer_start() { global $timestart; $mtime = explode( ' ', microtime() ); $timestart = $mtime[1] +...
Typecho底部添加网站已运行时间
要实现这个效果,总共有两个方法方法一在适当的地方加入一下代码:本站已安全运行了: <span class="smalltxt"> <script> var BirthDay=new Date("octo 08,2015"...
Joe 主题美化记录
头像呼吸灯在主题后台全局css里添加/*头像呼吸光环和鼠标悬停旋转放大*/ .avatar { border-radius: 50%; animation: light 4s ease-in-out infinite; transition: 0.5s; } .avatar:hover { tran...