Joomaen

Joomaen's xlog

Joomaen
tg_channel
jike

Typecho簡單配置

記錄 typecho 插件#

截屏 2025-02-10 13.45.19.png

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

自用修改#

  1. 修改了header.php<head>16行左右添加了一行代碼用來顯示 favicon。
    截屏 2025-02-10 13.47.01.png
    <link rel="shortcut icon" href="https://media.joomaen.top/favicon.ico" type="image/x-icon" />
  1. footer.php中的<footer>部分底部添加以下代碼調用 RunTime 和 PageViews

截屏 2025-02-10 12.57.49.png

    <?php PageViews_Plugin::showPageViews(); ?>
    <?php RunTime_Plugin::show(); ?>
  1. 調整字體大小
    style.css17行的font-size設為92.5%,這個是電腦端文字大小;435行調整手機端文字大小同理:

截屏 2025-02-10 13.28.13.png

截屏 2025-02-10 13.30.48.png

# 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 文件後換一個代號即可直接刷新,像這樣:

截屏 2025-02-10 13.27.51.png

    <link rel="stylesheet" href="<?php $this->options->themeUrl('style.css?v=1.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

載入中......
此文章數據所有權由區塊鏈加密技術和智能合約保障僅歸創作者所有。