diff --git a/.gitignore b/.gitignore
index ab8182a..4d59524 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,5 +6,7 @@ Thumbs.db
*.log
*.iml
node_modules/
+public/
+db.json
package-lock.json
*.lock
diff --git a/_config.fluid.yml b/_config.fluid.yml
index 6cc364d..51a9123 100644
--- a/_config.fluid.yml
+++ b/_config.fluid.yml
@@ -83,7 +83,7 @@ fun_features:
# 为 subtitle 添加打字机效果
# Typing animation for subtitle
typing:
- enable: true
+ enable: false
# 打印速度,数字越大越慢
# Typing speed, the larger the number, the slower
@@ -348,7 +348,7 @@ iconfont: //at.alicdn.com/t/c/font_1736178_k526ubmyhba.css
navbar:
# 导航栏左侧的标题,为空则按 hexo config 中 `title` 显示
# The title on the left side of the navigation bar. If empty, it is based on `title` in hexo config
- blog_title: "Fluid"
+ blog_title:
# 导航栏毛玻璃特效,实验性功能,可能会造成页面滚动掉帧和抖动,部分浏览器不支持会自动不生效
# Navigation bar frosted glass special animation. It is an experimental feature
@@ -376,25 +376,30 @@ navbar:
# 搜索功能,基于 hexo-generator-search 插件,若已安装其他搜索插件请关闭此功能,以避免生成多余的索引文件
# Search feature, based on hexo-generator-search. If you have installed other search plugins, please disable this feature to avoid generating redundant index files
+# search:
+# enable: true
+
+# # 搜索索引文件的路径,可以是相对路径或外站的绝对路径
+# # Path for search index file, it can be a relative path or an absolute path
+# path: /local-search.xml
+
+# # 文件生成在本地的位置,必须是相对路径
+# # The location where the index file is generated locally, it must be a relative location
+# generate_path: /local-search.xml
+
+# # 搜索的范围
+# # Search field
+# # Options: post | page | all
+# field: post
+
+# # 搜索是否扫描正文
+# # If true, search will scan the post content
+# content: true
+
+# 改用 hexo-generator-searchdb 对中文支持更好
search:
enable: true
-
- # 搜索索引文件的路径,可以是相对路径或外站的绝对路径
- # Path for search index file, it can be a relative path or an absolute path
- path: /local-search.xml
-
- # 文件生成在本地的位置,必须是相对路径
- # The location where the index file is generated locally, it must be a relative location
- generate_path: /local-search.xml
-
- # 搜索的范围
- # Search field
- # Options: post | page | all
- field: post
-
- # 搜索是否扫描正文
- # If true, search will scan the post content
- content: true
+ path: search.xml
# 首屏图片的相关配置
# Config of the big image on the first screen
@@ -445,11 +450,12 @@ open_graph:
footer:
# 页脚第一行文字的 HTML,建议保留 Fluid 的链接,用于向更多人推广本主题
# HTML of the first line of the footer, it is recommended to keep the Fluid link to promote this theme to more people
- content: '
- Hexo
-
- Fluid
- '
+ content:
+ # '
+ # Hexo
+ #
+ # Fluid
+ # '
# 展示网站的 PV、UV 统计数
# Display website PV and UV statistics
@@ -487,7 +493,7 @@ index:
# 头图高度,屏幕百分比
# Height ratio of banner image
# Available: 0 - 100
- banner_img_height: 100
+ banner_img_height: 50
# 头图黑色蒙版的不透明度,available: 0 - 1.0,1 是完全不透明
# Opacity of the banner mask, 1.0 is completely opaque
@@ -497,7 +503,7 @@ index:
# 首页副标题的独立设置
# Independent config of home page subtitle
slogan:
- enable: true
+ enable: false
# 为空则按 hexo config.subtitle 显示
# If empty, text based on `subtitle` in hexo config
@@ -555,7 +561,7 @@ index:
#---------------------------
post:
banner_img: /img/default.png
- banner_img_height: 70
+ banner_img_height: 50
banner_mask_alpha: 0.3
# 文章在首页的默认封面图,当没有指定 index_img 时会使用该图片,若两者都为空则不显示任何图片
@@ -667,7 +673,7 @@ post:
# 版权声明,会显示在每篇文章的结尾
# Copyright, will be displayed at the end of each post
copyright:
- enable: true
+ enable: false
# CreativeCommons license
# See: https://creativecommons.org/share-your-work/cclicenses/
@@ -919,7 +925,7 @@ discuss:
#---------------------------
archive:
banner_img: /img/default.png
- banner_img_height: 60
+ banner_img_height: 50
banner_mask_alpha: 0.3
@@ -930,7 +936,7 @@ archive:
category:
enable: true
banner_img: /img/default.png
- banner_img_height: 60
+ banner_img_height: 50
banner_mask_alpha: 0.3
# 分类的排序字段,前面带减号是倒序,不带减号是正序
@@ -959,7 +965,7 @@ category:
tag:
enable: true
banner_img: /img/default.png
- banner_img_height: 80
+ banner_img_height: 50
banner_mask_alpha: 0.3
tagcloud:
min_font: 15
@@ -976,17 +982,17 @@ tag:
about:
enable: true
banner_img: /img/default.png
- banner_img_height: 60
+ banner_img_height: 50
banner_mask_alpha: 0.3
- avatar: /img/avatar.png
- name: "Fluid"
- intro: "An elegant theme for Hexo"
+ avatar: /image/beidou.jpeg
+ name: "瑞彩千寻产品线"
+ intro: "GNSS/短报文"
# 更多图标可从 https://hexo.fluid-dev.com/docs/icon/ 查找,`class` 代表图标的 css class,添加 `qrcode` 后,图标不再是链接而是悬浮二维码
# More icons can be found from https://hexo.fluid-dev.com/docs/en/icon/ `class` is the css class of the icon. If adding `qrcode`, the icon is no longer a link, but a hovering QR code
icons:
- - { class: "iconfont icon-github-fill", link: "https://github.com", tip: "GitHub" }
- - { class: "iconfont icon-douban-fill", link: "https://douban.com", tip: "豆瓣" }
- - { class: "iconfont icon-wechat-fill", qrcode: "/img/favicon.png" }
+ # - { class: "iconfont icon-github-fill", link: "https://github.com", tip: "GitHub" }
+ # - { class: "iconfont icon-douban-fill", link: "https://douban.com", tip: "豆瓣" }
+ # - { class: "iconfont icon-wechat-fill", qrcode: "/image/WeChat.jpg" }
#---------------------------
@@ -998,7 +1004,7 @@ about:
#---------------------------
page:
banner_img: /img/default.png
- banner_img_height: 60
+ banner_img_height: 50
banner_mask_alpha: 0.3
@@ -1009,7 +1015,7 @@ page:
page404:
enable: true
banner_img: /img/default.png
- banner_img_height: 85
+ banner_img_height: 50
banner_mask_alpha: 0.3
# 重定向到首页的延迟(毫秒)
# Delay in redirecting to home page (milliseconds)
@@ -1023,7 +1029,7 @@ page404:
links:
enable: true
banner_img: /img/default.png
- banner_img_height: 60
+ banner_img_height: 50
banner_mask_alpha: 0.3
# 友链的成员项
# Member item of page
diff --git a/_config.yml b/_config.yml
index 700c389..f4e24b3 100644
--- a/_config.yml
+++ b/_config.yml
@@ -3,7 +3,7 @@
## Source: https://github.com/hexojs/hexo/
# Site
-title: GNSS/短报文
+title: 瑞彩千寻产品线
subtitle: ''
description: ''
keywords:
@@ -98,6 +98,14 @@ ignore:
## Themes: https://hexo.io/themes/
theme: fluid
+# 添加搜索支持
+search:
+ path: search.xml
+ field: all
+ format: html
+ limit: 10000
+ content: true
+
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
diff --git a/package.json b/package.json
index 21d315e..779754c 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"hexo-generator-archive": "^2.0.0",
"hexo-generator-category": "^2.0.0",
"hexo-generator-index": "^3.0.0",
+ "hexo-generator-searchdb": "^1.4.1",
"hexo-generator-tag": "^2.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^6.0.0",
diff --git a/source/_posts/hello-world.md b/source/_posts/hello-world.md
index 821780c..c0aaab2 100644
--- a/source/_posts/hello-world.md
+++ b/source/_posts/hello-world.md
@@ -1,5 +1,6 @@
---
title: Hello World
+index_img: /img/avatar.png
---
Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).
diff --git a/source/_posts/魏简.md b/source/_posts/魏简.md
index 4caa76d..a57c136 100644
--- a/source/_posts/魏简.md
+++ b/source/_posts/魏简.md
@@ -2,4 +2,15 @@
title: 魏简
date: 2025-02-12 11:35:37
tags:
+hide: true
---
+
+这是一个测试,是否支持中文搜索?
+
+搜索结果是否正确?
+
+ABC
+
+abc
+
+测试中文搜索功能
\ No newline at end of file
diff --git a/source/image/WeChat.jpg b/source/image/WeChat.jpg
new file mode 100644
index 0000000..39b6f74
Binary files /dev/null and b/source/image/WeChat.jpg differ
diff --git a/source/image/beidou.jpeg b/source/image/beidou.jpeg
new file mode 100644
index 0000000..7cd476f
Binary files /dev/null and b/source/image/beidou.jpeg differ
diff --git a/source/image/beidou_lite.jpeg b/source/image/beidou_lite.jpeg
new file mode 100644
index 0000000..2c08c16
Binary files /dev/null and b/source/image/beidou_lite.jpeg differ