update 260314
All checks were successful
自动部署 / deploy (push) Successful in 6m18s

This commit is contained in:
2026-03-14 20:24:07 +08:00
Unverified
parent 06ddad8386
commit b3d97ec5ac
4 changed files with 69 additions and 7 deletions

View File

@@ -5,9 +5,13 @@ categories: 建站手札
tags: 网站
cover: https://pic.biss.click/image/c0211558-17e4-46d2-9a35-e12f16f3f900.webp
series: webcustom
summary: >-
这篇文章介绍了如何在侧边栏中添加欢迎信息包括申请腾讯地图API
key、添加js脚本以及根据用户的地理位置显示个性化欢迎语。首先文章指导读者如何申请腾讯地图API
key并提醒注意填写信任域名时不要包含'https://'。接着文章说明了在主题的js目录下添加txmap.js脚本的过程并提到了一个更完善的js脚本。最后文章详细描述了如何使用获取到的地理位置信息通过switch语句根据不同的国家、省份和城市显示相应的欢迎语。
date: 2025-08-10 19:30:40
summary: 添加侧边栏的欢迎信息
---
# 效果展示
<center><img src="https://pic.biss.click/image/e37d7241-ed48-4595-ba18-c4de11289adf.webp" alt="效果展示"></center>
@@ -341,4 +345,4 @@ inject:
# 参考内容
{% link Ganzhe的博文,Ganzhe,https://ganzhe2028.github.io/posts/14542 %}
{% link Ganzhe的博文,Ganzhe,https://ganzhe2028.github.io/posts/14542 %}