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

推荐订阅源

Hugging Face - Blog
Hugging Face - Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
美团技术团队
J
Java Code Geeks
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
宝玉的分享
宝玉的分享
博客园 - Franky
Y
Y Combinator Blog
爱范儿
爱范儿
H
Help Net Security
腾讯CDC
G
Google Developers Blog
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
罗磊的独立博客
V
Visual Studio Blog
The GitHub Blog
The GitHub Blog
博客园_首页
C
Check Point Blog
博客园 - 三生石上(FineUI控件)

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>",
};

验证 ​

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