美化页脚✨
页脚在themes/butterfly/layout/includes/footer.pug
里面,如果具有一定前端基础的话可以根据自己来魔改~
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
| #footer_deal a.deal_link(href="https://space.bilibili.com/1204346498?spm_id_from=333.1007.0.0" title="bilibili") i.iconfont.icon-bilibili2 a.deal_link(href="" title="qq" target="_blank") i.iconfont.icon-qq1 a.deal_link(href="" title="微博" target="_blank") i.iconfont.icon-weibo a.deal_link(href="https://github.com/wangxinzhe18" title="github" target="_blank") i.iconfont.icon-github img.footer_mini_logo.entered.loading(style="border-radius:50%" src='https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F01abb15f-0918-4b5c-b727-927e0357bca6%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1684416214&t=8aeb31552ca5ba55ddf858cba242a1c9' onclick="btf.scrollToDest(0,500)" title="返回顶部") a.deal_link(href="https://blog.csdn.net/weixin_59796310?spm=1000.2115.3001.5343" title="CSDN") i.iconfont.icon-csdn a.deal_link(href="https://juejin.cn/user/1025198070431832" title="掘金" target="_blank") i.iconfont.icon-juejin-logo a.deal_link(href="https://www.acwing.com/user/myspace/index/171027/" title="Acwing" target="_blank") i.iconfont.icon-home a.deal_link(href="https://gitee.com/bitewang" title="Gitee" target="_blank") i.iconfont.icon-gitee #Jay-footer .footer-group h3.footer-title 直达 .footer-links a.footer-item(href="https://www.jayhrn.com" target="_blank") 我的主页 a.footer-item(href="/music") 音乐欣赏 a.footer-item(href="/collect") 藏宝阁 a.footer-item(href="/todolist") 代办清单 .footer-group h3.footer-title 分类 .footer-links a.footer-item(href="/categories/CF/") 算法 a.footer-item(href="/categories/Hexo博客/") 魔改教程 a.footer-item(href="/categories/后端/") 后端 a.footer-item(href="/categories/计算机网络/") 计算机网络 .footer-group h3.footer-title 关于 .footer-links a.footer-item(href="/about/") 关于我 a.footer-item(href="/charts/") 博客统计 a.footer-item(href="/archives") 文章归档 a.footer-item(href="/update") 更新记录 //- .footer-group //- h3.footer-title 友链 //- .footer-links#friend-links-in-footer .footer-group h3.footer-title 协议 .footer-links a.footer-item(href="/privacy/") 隐私协议 a.footer-item(href="/cookies/") Cookie a.footer-item(href="/cc/") 版权协议 #footer-banner .footer-banner-links .footer-banner-left .footer-banner-left #footer-banner-tips script(src='https://cdn.jsdelivr.net/npm/typed.js/lib/typed.min.js') script. var typed = new Typed("#footer-banner-tips", { strings: ["须知少时凌云志 曾许人间第一流。", "越努力越幸运"], startDelay: 200, backDelay: 2000, typeSpeed: 100, loop: true, backSpeed: 20 })
.footer-banner-right a.footer-banner-link(href="https://hexo.io/zh-cn/" title="Hexo") 框架 a.footer-banner-link | a.footer-banner-link(href="https://github.com/jerryc127/hexo-theme-butterfly" title="theme") 主题 a.footer-banner-link | a.footer-banner-link(href="/atom.xml" title="RSS") 订阅 a.footer-banner-link | a.footer-banner-link(href="/about/" title="about") 关于 a.footer-banner-link | a.footer-banner-link.cc(href="/cc/" title="cc协议") i.iconfont.icon-cc span 协议
|
href对应的链接改成自己的即可~
引入CSS✨
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
| #footer-wrap { color: var(--Jay-fontcolor) }
#footer-wrap a { color: var(--Jay-fontcolor); height: 44px; line-height: 36px }
#footer-wrap a:hover { color: var(--Jay-hovertext); background-color: var(--Jay-none) }
div#footer_deal { justify-content: center; display: flex; padding-top: 2rem; align-items: center }
@media screen and (max-width: 768px) { img.footer_mini_logo { display: none }
div#footer_deal { flex-wrap: wrap; flex-direction: row } }
a.deal_link { display: flex; margin: 1rem 27px; color: var(--Jay-card-bg); border-radius: 3rem; width: 32px; height: 32px; background: var(--font-color); justify-content: center; align-items: center; transition: .3s }
a.deal_link:hover { color: var(--Jay-white); background: var(--Jay-main) }
img.footer_mini_logo { width: 50px; height: 50px; margin: 0 1rem; cursor: pointer; transition: cubic-bezier(0, 0, 0, 1.29) .5s }
img.footer_mini_logo:hover { -webkit-backface-visibility: hidden; -webkit-transform-style: preserve-3d }
@media screen and (min-width: 1300px) { img.footer_mini_logo:hover { transform: scale(1.03) }
img.footer_mini_logo:active { transform: scale(.97) } }
#weblogo { align-self: center }
#footer-wrap a#Jayblog_footerlogo:hover { background: var(--Jay-none) }
.Jayblog_footerlogo_img { filter: drop-shadow(0 12px 12px #ee7d7936) }
.Jayblog_footerlogo_img:hover { transform: scale(1.03) }
#footer { background: linear-gradient(180deg, var(--Jay-background) 0, var(--Jay-card-bg) 25%); margin-top: 1rem; display: flex; flex-direction: column; z-index: 1002 }
@media screen and (max-width: 768px) { #footer { background: linear-gradient(180deg, var(--Jay-background) 0, var(--Jay-card-bg) 25%); margin-top: 0; z-index: 999 } }
[data-theme=dark] #footer:before, [data-theme=dark] #page-header:before, [data-theme=dark] #web_bg:before { background-color: var(--Jay-none) !important }
@media screen and (max-width: 768px) { #letlink { flex-direction: column !important; text-align: center !important }
#letlogo { display: none !important }
#footer-wrap { margin-top: 1rem !important } }
.footer-banner-right { display: flex; flex-direction: row; flex-wrap: wrap }
#footer-wrap { display: flex; flex-wrap: wrap; justify-content: space-around; padding: 20px 50px 0 50px; text-align: left !important; max-width: 1200px; margin: 0 auto }
#footer-wrap h1 { font-size: 1.5rem; margin: 0 }
#footer-wrap h3 { padding: 0 12px }
#footer-wrap p { margin: 0 0 0 .2rem; font-size: .8rem; opacity: .8 }
#footer-wrap i { margin-right: .5rem; width: 22px; font-size: 18px; display: inline-block }
#footer-wrap #letlogo { display: flex; flex-direction: column; align-self: center; margin: auto 0; max-width: 200px }
#footer-wrap #letlink .link_group { display: flex; flex-direction: column; margin-right: 20px; min-width: 180px }
#footer-wrap #letlink { display: flex; flex-direction: row; justify-content: space-around; margin: 0 0 1rem 0 }
#weblogo i { font-size: 2rem; line-height: 2rem; letter-spacing: -10px }
#footer:before { position: absolute !important; width: 100% !important; height: 100% !important; content: '' !important; z-index: -1 }
#Jay-footer .footer-links { display: flex; flex-direction: column }
#Jay-footer { display: flex; flex-direction: row; width: 100%; max-width: 1200px; margin: 1rem auto; justify-content: space-between; flex-wrap: wrap; margin-bottom: 3rem; padding: 0 1rem }
#Jay-footer .footer-item { font-size: 1rem; line-height: .8rem; margin: .38rem 0; color: var(--Jay-fontcolor); }
#Jay-footer .footer-item:hover { color: var(--Jay-theme) }
#Jay-footer .footer-group { min-width: 120px }
#Jay-footer .footer-title { color: var(--Jay-secondtext); font-size: 1rem }
#footer-banner { padding: 1rem; color: var(--Jay-fontcolor); margin-top: 1rem; background: var(--Jay-secondbg); display: flex; overflow: hidden; z-index: 1002; transition: .3s; }
[data-theme=dark] #footer-banner { background: var(--Jay-secondbg) }
#footer-banner .footer-banner-links { display: flex; justify-content: space-between; max-width: 1400px; width: 100%; margin: 0 auto; flex-wrap: wrap; align-items: center; }
#footer-banner .footer-banner-left { display: flex; flex-wrap: wrap; min-height: 32px }
#footer-banner .footer-banner-link { margin-right: 1rem; color: var(--Jay-fontcolor); font-size: 1rem; font-weight: 700; white-space: nowrap }
#footer-banner .footer-banner-link.cc { margin-right: 0 }
#footer-banner .footer-banner-link.cc i { margin-right: .5rem }
#footer-banner .footer-banner-link:hover { color: var(--Jay-theme) }
#footer-banner > div > div.footer-banner-left > span { margin-right: 1rem }
#footer-banner .footer-banner-right a:hover { color: var(--Jay-lighttext) }
#footer_deal i { font-size: 1.6rem; transition: .3s; line-height: 1.3rem; height: 1.3rem }
|
hexo 三连查看效果!
