极简(jijian) 主题提供三种首页展示模式,由原 PaperMod 主题基础上重新命名而来,更加直观易懂:

jijian 主题原 PaperMod 主题说明
Blog Mode(博客模式)Regular Mode首页直接显示文章列表
Portal Mode(门户模式)Home-Info Mode顶部显示个人信息卡片,下方显示文章列表
Card Mode(名片模式)Profile Mode居中显示个人头像、标题和社交图标,无文章列表

Blog Mode(博客模式)

配置方法

这是默认模式,无需特殊配置。如需指定首页显示的内容分区:

1
2
3
4
params:
  mainSections:
    - posts
    - docs

说明

  • mainSections 指定首页显示的内容目录
  • 如果不配置,默认显示所有文章

完整示例

1
2
3
4
5
6
7
8
9
baseURL: https://your-domain.com/
title: 我的博客
theme: jijian

params:
  # Blog Mode 是默认模式,无需特殊配置
  mainSections:
    - posts
    - docs

Portal Mode(门户模式)

配置方法

1
2
3
4
5
6
params:
  portalMode:
    enabled: true                     # 启用门户模式
    Title: 你的名字                    # 标题
    Content: 欢迎来到我的小站...        # 内容描述(支持 Markdown)
    AlignSocialIconsTo: center         # 社交图标对齐方式

参数说明

参数类型必需说明
enabledboolean是否启用门户模式
Titlestring显示的标题
Contentstring显示的内容描述,支持 Markdown
AlignSocialIconsTostring社交图标对齐方式:leftcenterright

社交图标配置

在Portal Mode(门户模式)下,还支持配置社交图标,在 params.socialIcons 中配置:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
params:
  socialIcons:
    - name: bilibili
      title: 哔哩哔哩
      url: https://space.bilibili.com/xxxxxx
      hoverImage: /img/bilibili-qr.png
    - name: wechat
      url: "javascript:void(0);"    # 无跳转链接
      hoverImage: /img/wechat-qr.png
      title: 微信二维码

参数说明

参数类型必需说明
namestring图标名称
titlestring图标标题
urlstring跳转链接
hoverImagestring鼠标悬停时显示的图片路径

悬浮二维码功能:配置 hoverImage 参数后,鼠标悬停在图标上会弹出图片/二维码。

支持的平台

name平台name平台
bilibili哔哩哔哩douyin抖音
wechat微信weibo微博
xiaohongshu小红书shipinhao视频号
zhihu知乎douban豆瓣
qqQQqzoneQQ 空间
tieba百度贴吧juejin掘金
githubGitHubgitlabGitLab
giteaGiteagitGit
codepenCodePen
twitter / xTwitter/XblueskyBluesky
mastodonMastodondiscordDiscord
redditRedditfacebookFacebook
instagramInstagramyoutubeYouTube
tiktokTikTok
email邮箱rssRSS 订阅
goodreadsGoodreads
other感叹号为缺省值

完整示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
params:
  portalMode:
    enabled: true
    Title: 莫莫先生
    Content: |
      👋 Hello! 欢迎来到我的小站
      
      这里是一段其他的什么不得了的描述。
    AlignSocialIconsTo: center

  socialIcons:
    - name: github
      url: https://github.com/yourname
      hoverImage: /img/github-qr.png
    - name: email
      title: 发送邮件
      url: mailto:your@email.com

Card Mode(名片模式)

配置方法

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
params:
  cardMode:
    enabled: true                     # 启用名片模式
    title: 你的网站名字                   # 主标题
    subtitle: 欢迎来到我的小站        # 副标题/签名
    imageUrl: /img/avatar.png         # 头像图片路径
    imageWidth: 120                   # 图片宽度(像素)
    imageHeight: 120                  # 图片高度(像素)
    imageTitle: 头像                  # 图片标题(alt 属性)
    buttons:                          # 可选按钮
      - name: 文章
        url: posts
      - name: 关于
        url: about

参数说明

参数类型必需说明
enabledboolean是否启用名片模式
titlestring显示的主标题
subtitlestring显示的副标题或签名
imageUrlstring头像图片路径
imageWidthinteger图片宽度(像素),默认 120
imageHeightinteger图片高度(像素),默认 120
imageTitlestring图片 alt 文本
buttonsarray快捷按钮列表
按钮配置

每个按钮支持以下参数:

参数类型必需说明
namestring按钮显示文字
urlstring跳转链接,支持相对路径和绝对路径

完整示例

Card Mode(名片模式)也支持配置社交图标,在 params.socialIcons 中配置:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
params:
  cardMode:
    enabled: true
    title: 莫莫先生
    subtitle: 👋 Hello! 欢迎来到我的小站
    imageUrl: /img/avatar.png
    imageWidth: 120
    imageHeight: 120
    imageTitle: 莫莫先生
    buttons:
      - name: 📝 文章
        url: posts
      - name: 📂 归档
        url: archives
      - name: 🔍 搜索
        url: search
      - name: ℹ️ 关于
        url: about

  socialIcons:
    - name: github
      url: https://github.com/yourname
      hoverImage: /img/github-qr.png
    - name: email
      title: 发送邮件
      url: mailto:your@email.com