記錄 typecho 插件#
AdsAndStats: Google 分析
https://typecho.work/archives/AdsAndStats.html
https://github.com/flyhunterl/AdsAndStats
CommentNotifier: 評論郵件通知
https://github.com/typecho-fans/plugins/tree/master/CommentNotifier
TePostViews: 主題推薦,統計查看次數
https://typecho.work/archives/TePostViews.html
Sitemap: 生成 Google 索引的網站地圖
https://github.com/typecho-fans/plugins/tree/master/Sitemap
RunTime: 顯示網站運行時間
https://github.com/ponycool/typecho-plugins/tree/master/RunTime
PageViews: 顯示網站總訪問量
https://github.com/ponycool/typecho-plugins/tree/master/PageViews
TagsList: 後台編輯文章時增加標籤選擇列表
https://github.com/ponycool/typecho-plugins/tree/master/TagsList
主題使用飛蚊話的千禧年主題
https://www.bwsl.wang/csother/140.html
自用修改#
- 修改了
header.php
,<head>
中16行左右添加了一行代碼用來顯示 favicon。
<link rel="shortcut icon" href="https://media.joomaen.top/favicon.ico" type="image/x-icon" />
- 在
footer.php
中的<footer>
部分底部添加以下代碼調用 RunTime 和 PageViews
<?php PageViews_Plugin::showPageViews(); ?>
<?php RunTime_Plugin::show(); ?>
- 調整字體大小
在style.css
的17行的font-size
設為92.5%
,這個是電腦端文字大小;435行調整手機端文字大小同理:
# 17行左右
body {
background-color: #FFF;
color: #444;
/*font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;*/
font-family: "Droid Serif", Georgia, "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Source Han Sans CN", "WenQuanYi Micro Hei","Microsoft Yahei", serif;
font-size: 92.5%;
}
# 435行左右
@media (max-width: 767px) {
body {
font-size: 92.5%;
}
#nav-menu a {
float: none;
display: inline-block;
margin: 0 -2px;
}
}
還有一種更簡單粗暴的方法就是註釋掉這兩個地方的font-size
設置,也會變得比較大
** 為了立刻生效,可以在header.php
中將引用style.css
代碼後面加上?v=1.1
,每次修改 CSS 文件後換一個代號即可直接刷新,像這樣:
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css?v=1.1'); ?>">
- 主題配置
我關掉了首頁展示最新文章
和文章歸檔
選項,我有一個專門的歸檔頁。
這是在 設置外觀-聯繫我
中填入,主題頁面有詳細解釋。
憹人懌夢,https://blog.joomaen.top,,憹人懌夢
RSS,/feed,fa fa-rss,RSS
標籤頁面#
這是我讓 AI 結合網上的模板寫的一個頁面模板,新建一個頁面作為標籤頁,應用這個模板就行。
下載 php 文件放在主題根目錄即可。
https://media.235421.xyz/Typecho/tags.php
歸檔頁面#
也是 AI 生成,和標籤頁面外觀一致。
不過原主題中已有archive.php
文件了,所以我命名為archive-zyg.php
。
https://media.235421.xyz/Typecho/archive-zyg.php