File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
.vitepress/config/site-head Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ export const SITE_HEAD: HeadConfig[] = [
88 [
99 "link" ,
1010 {
11- rel : "icon" ,
12- href : "/favicon.ico" ,
11+ rel : "shortcut icon" ,
12+ href : "/programming-notes/ favicon.ico" , // base 需要与仓库名一致才能部署到 GitHub Pages
1313 } ,
1414 ] ,
1515
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { toRefs } from " vue" ;
3+ import { withBase } from " vitepress" ;
34
45interface SkillIconCard {
56 name: string ;
@@ -26,7 +27,7 @@ const { skillList } = toRefs(props);
2627 >
2728 <li class =" skill-icon-card" >
2829 <img
29- :src =" item.imgSrc"
30+ :src =" withBase( item.imgSrc) "
3031 :alt =" item.name"
3132 loading =" lazy"
3233 class =" skill-img"
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { toRefs } from " vue" ;
3+ import { withBase } from " vitepress" ;
34
45interface SkillTextLinkCard {
56 name: string ;
@@ -27,7 +28,7 @@ const { textList } = toRefs(props);
2728 <li class =" skill-text-card" >
2829 <img
2930 v-if =" item.imgSrc"
30- :src =" item.imgSrc"
31+ :src =" withBase( item.imgSrc) "
3132 :alt =" item.name"
3233 loading =" lazy"
3334 class =" skill-img"
You can’t perform that action at this time.
0 commit comments