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

推荐订阅源

F
Fortinet All Blogs
Recent Announcements
Recent Announcements
H
Help Net Security
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
小众软件
小众软件
Last Week in AI
Last Week in AI
U
Unit 42
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale
云风的 BLOG
云风的 BLOG
V
V2EX
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
博客园 - 三生石上(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>",
};

验证 ​

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