你想知道的博客園個性化設置這里都有哦~
博客園個性化功能設置
博客園可以個性化設置一些功能,比如自定義博客園皮膚,添加 github 圖標,添加天氣小組件,自定義鼠標樣式,設置背景漸變色等,接下來一一為大家講解~
添加 GitHub 圖標,鏈接到自己的 GitHub 主頁
操作步驟:
- 自己博客園頭部的
管理
tab 頁簽點擊去 => 點擊設置
tab 頁簽 => 找到頁首HTML代碼
=> 粘貼下面的代碼,需要把我的github倉庫名字Ritusan
改成你自己需要鏈接到的github地址
:
<a href="https://github.com/Ritusan" target="_blank" class="github-corner" aria-label="View source on Github">
<svg width="70" height="70" viewBox="0 0 250 250" style="color:#fff;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z" />
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm" />
<path
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor"
class="octo-body"
/>
</svg>
</a>
添加懸浮天氣小組件
指路:點擊我的博客園首頁右下角的天氣小圖標
,下方有鏈接到心知天氣
,然后點進去心知天氣,自己注冊或登陸一個賬號,那上面會有提示你如果想在頁面調用這種懸浮的天氣小組件的話該怎么操作,會讓你復制一段代碼
到自己的項目,如果你要在博客園首頁展示懸浮天氣小組件的話,需要把那一段心知天氣提供的代碼復制到自己的博客園設置里的頁腳HTML代碼
自定義鼠標樣式
操作步驟:博客園設置 => 頁面定制 css 代碼 => 粘貼下面的代碼到自己的博客園設置里,如果你有自定義的鼠標圖片,就把 url 改成你的自定義鼠標圖片地址:
body {
cursor: url('xxx.png'), auto;
}
設置博客園背景漸變色
操作步驟:博客園設置 => 頁面定制 css 代碼 => 粘貼下面的代碼到自己的博客園設置里,如果你有喜歡的漸變色配置,就把 background
改成你喜歡的漸變色:
body {
background: linear-gradient(-20deg, #eaf6fd 0%, #f7f3ed 100%);
background-blend-mode: screen;
background-attachment: fixed;
}
設置博客園我的簽名文字漸變色
操作步驟:博客園設置 => 頁面定制 css 代碼 => 粘貼下面的代碼到自己的博客園設置里,如果你有喜歡的漸變色配置,就把 background-image
改成你喜歡的漸變色:
#MySignature {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-image: linear-gradient(to right, #fb929e, #aedefc, #b4b4ff);
}
設置博客園主題色為css變量
:root {
--base-color: #84b9e5;
--base-bg-color: #69c4d0;
--title-bg-color: #84b9e5;
--base-text-gradient-color: linear-gradient(to right, #84b9e5, #69c4d0, #00aceb);
--base-body-gradient-color: linear-gradient(-20deg, #eaf6fd 0%, #f7f3ed 100%);
}
/* github-corner */
.github-corner svg {
fill: var(--base-color);
}
/* topbar */
.catListTitle {
background: var(--title-bg-color);
color: #fff;
}
#navList a:hover {
color: #fff;
background-color: var(--base-bg-color);
text-decoration: none;
text-shadow: none;
}
#MySignature {
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-image: var(--base-text-gradient-color);
}
body {
background: var(--base-body-gradient-color);
background-blend-mode: screen;
background-attachment: fixed;
}