惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
L
LINUX DO - 热门话题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
V
V2EX
GbyAI
GbyAI
量子位
Microsoft Azure Blog
Microsoft Azure Blog
有赞技术团队
有赞技术团队
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
B
Blog
Microsoft Security Blog
Microsoft Security Blog
S
SegmentFault 最新的问题
O
OpenAI News
N
News and Events Feed by Topic
博客园 - Franky
爱范儿
爱范儿
Forbes - Security
Forbes - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V2EX - 技术
V2EX - 技术
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
News and Events Feed by Topic
N
News | PayPal Newsroom
Schneier on Security
Schneier on Security
Cloudbric
Cloudbric
Security Archives - TechRepublic
Security Archives - TechRepublic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Recent Commits to openclaw:main
Recent Commits to openclaw:main
人人都是产品经理
人人都是产品经理
P
Privacy International News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
Last Week in AI
Last Week in AI
罗磊的独立博客
Spread Privacy
Spread Privacy
Recent Announcements
Recent Announcements
The Cloudflare Blog
Google DeepMind News
Google DeepMind News
AWS News Blog
AWS News Blog
The Register - Security
The Register - Security
Y
Y Combinator Blog
J
Java Code Geeks
I
Intezer

Hyde Blog

Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog 关于我 关于我 Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog Hyde Blog
Hyde Blog
Hyde · 2025-10-05 · via Hyde Blog

配置底部小熊 ​

版权 ​

提示

本文是在 博主兰德胡涂 文章:《博客底部添加一排小动物》 基础上增加了自己实践过程的一些细节,转载无需和我联系,但请注明文章来源。如果侵权之处,请联系博主进行删除,谢谢~

警告

本教程基于 vdoing 主题,其他主题可能会有差异

配置 ​

  • 准备两张图片,图片地址下载链接:点击下载点击下载hao.pnghaoback.png

  • 然后我们把这两张图片下载下来上传到自己的公有云或者本地文件夹中,本博客是将其放在public本地文件夹imgindex目录,分别重命名为hao.pnghaoback.png

  • 编辑 docs.vuepress\common\footer.ts 文件

详细信息

ts

    // 添加底部动物 banner
    '<div id="footer-animal">' +
    '    <div class="animal-wall"></div>' +
    '    <img class="animal entered loaded" src="/img/index/hao.png" alt="动物" data-ll-status="loaded">' +
    "</div>" +
    // 添加底部动物 banner 样式
    "<style>" +
    "    #footer-animal {" +
    "    position: relative;" +
    "    width: 100%" +
    "}" +
    // "    #footer-animal .animal-wall {" +
    // "    position: absolute;" +
    // "    bottom: 0;" +
    // "    width: 100%;" +
    // "    height: 36px;" +
    // "    max-width: none;" +
    // "    background-image: url(https://picx.landhutu.top/rest/2025/z99wGoK.png);" +
    // "    background-size: auto 100%;" +
    // "    box-shadow: 0 4px 7px rgba(0,0,0,.15)" +
    // "}" +
    // "    @media screen and (max-width: 1023px) {" +
    // "    #footer-animal .animal-wall {" +
    // "    height:4vw;" +
    // "}" +
    // "}" +
    "    #footer-animal img.animal {" +
    "    position: relative;" +
    "    max-width: min(974px,100vw);" +
    "    margin: 0 auto;" +
    "    display: block" +
    "}" +
    "    #footer-banner {" +
    "    margin-top: 0 !important" +
    "}" +
    "</style>",
  • 完整代码
详细信息

ts

import { penName, footerTitle } from "../common/info";

interface Footer {
  createYear: number; // 博客创建年份
  copyrightInfo: string; // 博客版权信息,支持 a 标签
}

export default <Footer>{
  // 页脚信息
  createYear: 2024,
  copyrightInfo:
    // penName + ' | ' + footerTitle + '<br> <a href="http://beian.miit.gov.cn/" target="_blank">陇 ICP 备 2023002645 号</a>',
    // penName + footerTitle + '<br> <a href="http://beian.miit.gov.cn/" target="_blank">陇 ICP 备 2023002645 号</a>',
    // penName + footerTitle + '<br> <a href="http://beian.miit.gov.cn/" target="_blank">陇 ICP 备 2023002645 号</a>',
    // penName + footerTitle + '<br> <a href="http://beian.miit.gov.cn/" target="_blank">陇 ICP 备 2023002645 号</a>' + '<br> <a href="https://beian.mps.gov.cn/" target="_blank">甘公网安备 62102702000211 号</a>',
    '<a href="https://hyde.seasir.top/" target="_blank"> Hyde |</a>' +
    '<a href="http://beian.miit.gov.cn/" target="_blank"> 陇 ICP 备 2023002645 号</a>' +
    ' | <a href="https://beian.mps.gov.cn/" target="_blank"> 甘公网安备 62102702000211 号</a>' +
    "<br><br/>" +
    "<span >淡看风云多变幻,逍遥岁月享清欢</span>" +
    // 添加底部动物 banner
    '<div id="footer-animal">' +
    ' <div class="animal-wall"></div>' +
    ' <img class="animal entered loaded" src="/img/index/hao.png" alt="动物" data-ll-status="loaded">' +
    "</div>" +
    // 添加底部动物 banner 样式
    "<style>" +
    " #footer-animal {" +
    " position: relative;" +
    " width: 100%" +
    "}" +
    // " #footer-animal .animal-wall {" +
    // " position: absolute;" +
    // " bottom: 0;" +
    // " width: 100%;" +
    // " height: 36px;" +
    // " max-width: none;" +
    // " background-image: url(https://picx.landhutu.top/rest/2025/z99wGoK.png);" +
    // " background-size: auto 100%;" +
    // " box-shadow: 0 4px 7px rgba(0,0,0,.15)" +
    // "}" +
    // " @media screen and (max-width: 1023px) {" +
    // " #footer-animal .animal-wall {" +
    // " height:4vw;" +
    // "}" +
    // "}" +
    " #footer-animal img.animal {" +
    " position: relative;" +
    " max-width: min(974px,100vw);" +
    " margin: 0 auto;" +
    " display: block" +
    "}" +
    " #footer-banner {" +
    " margin-top: 0 !important" +
    "}" +
    "</style>",
};

验证 ​

  • 重新运行项目,查看效果