Skip to content

Commit 9a681c0

Browse files
committed
fix: Adding Ads to Sidebar
1 parent 0685402 commit 9a681c0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/.vuepress/components/Sidebar.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
<Sidebar>
33
<template #top>
44
<div class="ss">
5-
<!-- <div class="sidebar-ad-placeholder">
6-
广告 1
7-
</div>
85
<div class="sidebar-ad-placeholder">
6+
<a href="https://doc.hutool.cn/" target="_blank">
7+
<img src="/img/ss/hutool.pic.jpg" alt="Hutool" style="max-width: 90%; height: auto;" />
8+
</a>
9+
</div>
10+
<!-- <div class="sidebar-ad-placeholder">
911
广告 2
1012
</div>
1113
<div class="sidebar-ad-placeholder">
@@ -47,12 +49,14 @@ const showMingdao = false;
4749
.sidebar-ad-placeholder {
4850
width: 100%;
4951
height: 100px;
50-
margin-bottom: 16px;
52+
// margin-bottom: 16px;
53+
margin: 35px 0 16px 0;
5154
// background: #eee;
5255
border-radius: 5px;
5356
display: flex;
5457
align-items: center;
5558
justify-content: center;
59+
5660
}
5761
5862
.mingdao {
338 KB
Loading

0 commit comments

Comments
 (0)