1.增加中文搜索支持
2.确认主题配置 3.图片引用示例
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -6,5 +6,7 @@ Thumbs.db
|
|||||||
*.log
|
*.log
|
||||||
*.iml
|
*.iml
|
||||||
node_modules/
|
node_modules/
|
||||||
|
public/
|
||||||
|
db.json
|
||||||
package-lock.json
|
package-lock.json
|
||||||
*.lock
|
*.lock
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ fun_features:
|
|||||||
# 为 subtitle 添加打字机效果
|
# 为 subtitle 添加打字机效果
|
||||||
# Typing animation for subtitle
|
# Typing animation for subtitle
|
||||||
typing:
|
typing:
|
||||||
enable: true
|
enable: false
|
||||||
|
|
||||||
# 打印速度,数字越大越慢
|
# 打印速度,数字越大越慢
|
||||||
# Typing speed, the larger the number, the slower
|
# Typing speed, the larger the number, the slower
|
||||||
@@ -348,7 +348,7 @@ iconfont: //at.alicdn.com/t/c/font_1736178_k526ubmyhba.css
|
|||||||
navbar:
|
navbar:
|
||||||
# 导航栏左侧的标题,为空则按 hexo config 中 `title` 显示
|
# 导航栏左侧的标题,为空则按 hexo config 中 `title` 显示
|
||||||
# The title on the left side of the navigation bar. If empty, it is based on `title` in hexo config
|
# 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
|
# Navigation bar frosted glass special animation. It is an experimental feature
|
||||||
@@ -376,25 +376,30 @@ navbar:
|
|||||||
|
|
||||||
# 搜索功能,基于 hexo-generator-search 插件,若已安装其他搜索插件请关闭此功能,以避免生成多余的索引文件
|
# 搜索功能,基于 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 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:
|
search:
|
||||||
enable: true
|
enable: true
|
||||||
|
path: search.xml
|
||||||
# 搜索索引文件的路径,可以是相对路径或外站的绝对路径
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# 首屏图片的相关配置
|
# 首屏图片的相关配置
|
||||||
# Config of the big image on the first screen
|
# Config of the big image on the first screen
|
||||||
@@ -445,11 +450,12 @@ open_graph:
|
|||||||
footer:
|
footer:
|
||||||
# 页脚第一行文字的 HTML,建议保留 Fluid 的链接,用于向更多人推广本主题
|
# 页脚第一行文字的 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
|
# HTML of the first line of the footer, it is recommended to keep the Fluid link to promote this theme to more people
|
||||||
content: '
|
content:
|
||||||
<a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
|
# '
|
||||||
<i class="iconfont icon-love"></i>
|
# <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
|
||||||
<a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a>
|
# <i class="iconfont icon-love"></i>
|
||||||
'
|
# <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a>
|
||||||
|
# '
|
||||||
|
|
||||||
# 展示网站的 PV、UV 统计数
|
# 展示网站的 PV、UV 统计数
|
||||||
# Display website PV and UV statistics
|
# Display website PV and UV statistics
|
||||||
@@ -487,7 +493,7 @@ index:
|
|||||||
# 头图高度,屏幕百分比
|
# 头图高度,屏幕百分比
|
||||||
# Height ratio of banner image
|
# Height ratio of banner image
|
||||||
# Available: 0 - 100
|
# Available: 0 - 100
|
||||||
banner_img_height: 100
|
banner_img_height: 50
|
||||||
|
|
||||||
# 头图黑色蒙版的不透明度,available: 0 - 1.0,1 是完全不透明
|
# 头图黑色蒙版的不透明度,available: 0 - 1.0,1 是完全不透明
|
||||||
# Opacity of the banner mask, 1.0 is completely opaque
|
# Opacity of the banner mask, 1.0 is completely opaque
|
||||||
@@ -497,7 +503,7 @@ index:
|
|||||||
# 首页副标题的独立设置
|
# 首页副标题的独立设置
|
||||||
# Independent config of home page subtitle
|
# Independent config of home page subtitle
|
||||||
slogan:
|
slogan:
|
||||||
enable: true
|
enable: false
|
||||||
|
|
||||||
# 为空则按 hexo config.subtitle 显示
|
# 为空则按 hexo config.subtitle 显示
|
||||||
# If empty, text based on `subtitle` in hexo config
|
# If empty, text based on `subtitle` in hexo config
|
||||||
@@ -555,7 +561,7 @@ index:
|
|||||||
#---------------------------
|
#---------------------------
|
||||||
post:
|
post:
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 70
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
|
|
||||||
# 文章在首页的默认封面图,当没有指定 index_img 时会使用该图片,若两者都为空则不显示任何图片
|
# 文章在首页的默认封面图,当没有指定 index_img 时会使用该图片,若两者都为空则不显示任何图片
|
||||||
@@ -667,7 +673,7 @@ post:
|
|||||||
# 版权声明,会显示在每篇文章的结尾
|
# 版权声明,会显示在每篇文章的结尾
|
||||||
# Copyright, will be displayed at the end of each post
|
# Copyright, will be displayed at the end of each post
|
||||||
copyright:
|
copyright:
|
||||||
enable: true
|
enable: false
|
||||||
|
|
||||||
# CreativeCommons license
|
# CreativeCommons license
|
||||||
# See: https://creativecommons.org/share-your-work/cclicenses/
|
# See: https://creativecommons.org/share-your-work/cclicenses/
|
||||||
@@ -919,7 +925,7 @@ discuss:
|
|||||||
#---------------------------
|
#---------------------------
|
||||||
archive:
|
archive:
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 60
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
|
|
||||||
|
|
||||||
@@ -930,7 +936,7 @@ archive:
|
|||||||
category:
|
category:
|
||||||
enable: true
|
enable: true
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 60
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
|
|
||||||
# 分类的排序字段,前面带减号是倒序,不带减号是正序
|
# 分类的排序字段,前面带减号是倒序,不带减号是正序
|
||||||
@@ -959,7 +965,7 @@ category:
|
|||||||
tag:
|
tag:
|
||||||
enable: true
|
enable: true
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 80
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
tagcloud:
|
tagcloud:
|
||||||
min_font: 15
|
min_font: 15
|
||||||
@@ -976,17 +982,17 @@ tag:
|
|||||||
about:
|
about:
|
||||||
enable: true
|
enable: true
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 60
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
avatar: /img/avatar.png
|
avatar: /image/beidou.jpeg
|
||||||
name: "Fluid"
|
name: "瑞彩千寻产品线"
|
||||||
intro: "An elegant theme for Hexo"
|
intro: "GNSS/短报文"
|
||||||
# 更多图标可从 https://hexo.fluid-dev.com/docs/icon/ 查找,`class` 代表图标的 css class,添加 `qrcode` 后,图标不再是链接而是悬浮二维码
|
# 更多图标可从 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
|
# 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:
|
icons:
|
||||||
- { class: "iconfont icon-github-fill", link: "https://github.com", tip: "GitHub" }
|
# - { class: "iconfont icon-github-fill", link: "https://github.com", tip: "GitHub" }
|
||||||
- { class: "iconfont icon-douban-fill", link: "https://douban.com", tip: "豆瓣" }
|
# - { class: "iconfont icon-douban-fill", link: "https://douban.com", tip: "豆瓣" }
|
||||||
- { class: "iconfont icon-wechat-fill", qrcode: "/img/favicon.png" }
|
# - { class: "iconfont icon-wechat-fill", qrcode: "/image/WeChat.jpg" }
|
||||||
|
|
||||||
|
|
||||||
#---------------------------
|
#---------------------------
|
||||||
@@ -998,7 +1004,7 @@ about:
|
|||||||
#---------------------------
|
#---------------------------
|
||||||
page:
|
page:
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 60
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
|
|
||||||
|
|
||||||
@@ -1009,7 +1015,7 @@ page:
|
|||||||
page404:
|
page404:
|
||||||
enable: true
|
enable: true
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 85
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
# 重定向到首页的延迟(毫秒)
|
# 重定向到首页的延迟(毫秒)
|
||||||
# Delay in redirecting to home page (milliseconds)
|
# Delay in redirecting to home page (milliseconds)
|
||||||
@@ -1023,7 +1029,7 @@ page404:
|
|||||||
links:
|
links:
|
||||||
enable: true
|
enable: true
|
||||||
banner_img: /img/default.png
|
banner_img: /img/default.png
|
||||||
banner_img_height: 60
|
banner_img_height: 50
|
||||||
banner_mask_alpha: 0.3
|
banner_mask_alpha: 0.3
|
||||||
# 友链的成员项
|
# 友链的成员项
|
||||||
# Member item of page
|
# Member item of page
|
||||||
|
|||||||
10
_config.yml
10
_config.yml
@@ -3,7 +3,7 @@
|
|||||||
## Source: https://github.com/hexojs/hexo/
|
## Source: https://github.com/hexojs/hexo/
|
||||||
|
|
||||||
# Site
|
# Site
|
||||||
title: GNSS/短报文
|
title: 瑞彩千寻产品线
|
||||||
subtitle: ''
|
subtitle: ''
|
||||||
description: ''
|
description: ''
|
||||||
keywords:
|
keywords:
|
||||||
@@ -98,6 +98,14 @@ ignore:
|
|||||||
## Themes: https://hexo.io/themes/
|
## Themes: https://hexo.io/themes/
|
||||||
theme: fluid
|
theme: fluid
|
||||||
|
|
||||||
|
# 添加搜索支持
|
||||||
|
search:
|
||||||
|
path: search.xml
|
||||||
|
field: all
|
||||||
|
format: html
|
||||||
|
limit: 10000
|
||||||
|
content: true
|
||||||
|
|
||||||
# Deployment
|
# Deployment
|
||||||
## Docs: https://hexo.io/docs/one-command-deployment
|
## Docs: https://hexo.io/docs/one-command-deployment
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
"hexo-generator-archive": "^2.0.0",
|
"hexo-generator-archive": "^2.0.0",
|
||||||
"hexo-generator-category": "^2.0.0",
|
"hexo-generator-category": "^2.0.0",
|
||||||
"hexo-generator-index": "^3.0.0",
|
"hexo-generator-index": "^3.0.0",
|
||||||
|
"hexo-generator-searchdb": "^1.4.1",
|
||||||
"hexo-generator-tag": "^2.0.0",
|
"hexo-generator-tag": "^2.0.0",
|
||||||
"hexo-renderer-ejs": "^2.0.0",
|
"hexo-renderer-ejs": "^2.0.0",
|
||||||
"hexo-renderer-marked": "^6.0.0",
|
"hexo-renderer-marked": "^6.0.0",
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Hello World
|
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).
|
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).
|
||||||
|
|
||||||
|
|||||||
@@ -2,4 +2,15 @@
|
|||||||
title: 魏简
|
title: 魏简
|
||||||
date: 2025-02-12 11:35:37
|
date: 2025-02-12 11:35:37
|
||||||
tags:
|
tags:
|
||||||
|
hide: true
|
||||||
---
|
---
|
||||||
|
|
||||||
|
这是一个测试,是否支持中文搜索?
|
||||||
|
|
||||||
|
搜索结果是否正确?
|
||||||
|
|
||||||
|
ABC
|
||||||
|
|
||||||
|
abc
|
||||||
|
|
||||||
|
测试中文搜索功能
|
||||||
BIN
source/image/WeChat.jpg
Normal file
BIN
source/image/WeChat.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
BIN
source/image/beidou.jpeg
Normal file
BIN
source/image/beidou.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
BIN
source/image/beidou_lite.jpeg
Normal file
BIN
source/image/beidou_lite.jpeg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user