Skip to content

Commit

Permalink
配置更新;关于页面更新;导航栏菜单调整;
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchu7 committed Sep 8, 2023
1 parent d181b82 commit 6aa1e4f
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 13 deletions.
32 changes: 21 additions & 11 deletions _config.fluid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ custom_js:
# The usage is the same as custom_js
custom_css:
- /css/macpanel
- //at.alicdn.com/t/c/font_4241027_d512ai5ovgn.css
- //at.alicdn.com/t/c/font_4241027_j8xjy563jwl.css

# 网页访问统计
# Analysis of website visitors
Expand Down Expand Up @@ -350,21 +350,31 @@ navbar:
# Navigation bar menu. `key` is used to associate languages/*.yml. If there is no association, the value of `key` itself will be displayed; if `icon` is a css class, it can be omitted; adding `name` can force the display of the specified name
menu:
- { key: "home", link: "/", icon: "iconfont icon-home-fill" }
- { key: "archive", link: "/archives/", icon: "iconfont icon-archive-fill" }
- { key: "category", link: "/categories/", icon: "iconfont icon-category-fill" }
- { key: "tag", link: "/tags/", icon: "iconfont icon-tags-fill" }
- { key: "links", link: "/links/", icon: "iconfont icon-link-fill", name: "链接"}
# - { key: "gallery", link: "/gallery/", icon: "iconfont icon-images", name: "图库" }
- { key: "about", link: "/about/", icon: "iconfont icon-user-fill" }
- {
key: '更多',
icon: 'iconfont icon-paper-plane',
key: '文章',
icon: 'iconfont icon-books',
submenu: [
{ key: "archive", link: "/archives/", icon: "iconfont icon-archive-fill" },
{ key: "category", link: "/categories/", icon: "iconfont icon-category-fill" },
{ key: "tag", link: "/tags/", icon: "iconfont icon-tags-fill" }
]
}
- {
key: '工具',
icon: 'iconfont icon-briefcase',
submenu: [
{ key: '导航', link: '/navigation/', icon: 'iconfont icon-map' },
{ key: '图库', link: '/gallery/', icon: 'iconfont icon-images' },
{ key: '虫洞', link: 'https://foreverblog.cn/go.html', icon: 'iconfont icon-star-of-david' }
{ key: '图库', link: '/gallery/', icon: 'iconfont icon-images' }
]
}
# - { key: "archive", link: "/archives/", icon: "iconfont icon-archive-fill" }
# - { key: "category", link: "/categories/", icon: "iconfont icon-category-fill" }
# - { key: "tag", link: "/tags/", icon: "iconfont icon-tags-fill" }
- { key: "links", link: "/links/", icon: "iconfont icon-link-fill", name: "友链"}
# - { key: "gallery", link: "/gallery/", icon: "iconfont icon-images", name: "图库" }
- { key: "about", link: "/about/", icon: "iconfont icon-user-fill" }
- { key: "虫洞", link: "https://foreverblog.cn/go.html", icon: "iconfont icon-burst" }
- { key: "开往", link: "https://www.travellings.cn/go.html", icon: "iconfont icon-train-subway" }

# 搜索功能,基于 hexo-generator-search 插件,若已安装其他搜索插件请关闭此功能,以避免生成多余的索引文件
# Search feature, based on hexo-generator-search. If you have installed other search plugins, please disable this feature to avoid generating redundant index files
Expand Down
53 changes: 51 additions & 2 deletions source/about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: 关于
layout: "about"
---
#### 🤖关于我
## 🤖关于我
后端入门级玩家👨‍💻 | Pokemon精英训练师⚡️

<img src="https://static.kevinchu.top/blog/assets/img/pokemon-psyduck.gif" alt="psyduck">

#### 🖥️关于本站
## 🖥️关于本站
建立本站以记录学习、积累经验、归纳知识、~~分享生活~~~~捣鼓折腾~~......
<br>

Expand Down Expand Up @@ -45,3 +45,52 @@ layout: "about"
>- 2020-08-17  🚲起点
基于Hexo框架搭建了第一个博客,采用Butterfly主题,托管于GitHub Pages。


<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/lib/sakana.min.css"
/>

<div id="pokemon-pikachu-widget" style="float:left"></div>
<div id="pokemon-psyduck-widget" style="float:left"></div>
<div id="pokemon-slowpoke-widget" style="float:left"></div>
<div id="pokemon-bulbasaur-widget" style="float:left"></div>

<script>
function initSakanaWidget() {
const map = new Map([
['pokemon-pikachu','https://static.kevinchu.top/blog/assets/img/pokemon-pikachu.png'],
['pokemon-psyduck','https://static.kevinchu.top/blog/assets/img/pokemon-psyduck.png'],
['pokemon-slowpoke','https://static.kevinchu.top/blog/assets/img/pokemon-slowpoke.png'],
['pokemon-bulbasaur','https://static.kevinchu.top/blog/assets/img/pokemon-bulbasaur.png'],
['pokemon-charmander','https://static.kevinchu.top/blog/assets/img/pokemon-charmander.png'],
['pokemon-squirtle','https://static.kevinchu.top/blog/assets/img/pokemon-squirtle.png'],
['pokemon-eevee','https://static.kevinchu.top/blog/assets/img/pokemon-eevee.png'],
['pokemon-jigglypuff','https://static.kevinchu.top/blog/assets/img/pokemon-jigglypuff.png'],
['pokemon-cubone','https://static.kevinchu.top/blog/assets/img/pokemon-cubone.png'],
['pokemon-snorlax','https://static.kevinchu.top/blog/assets/img/pokemon-snorlax.png']
]);

function registerSakana(name, img){
const widget = SakanaWidget.getCharacter('chisato');
widget.image = img;
SakanaWidget.registerCharacter(name, widget);
}

map.forEach((val,key) => {
registerSakana(key,val);
})

new SakanaWidget({ character: 'pokemon-pikachu' }).mount('#pokemon-pikachu-widget');
new SakanaWidget({ character: 'pokemon-psyduck' }).mount('#pokemon-psyduck-widget');
new SakanaWidget({ character: 'pokemon-slowpoke' }).mount('#pokemon-slowpoke-widget');
new SakanaWidget({ character: 'pokemon-bulbasaur' }).mount('#pokemon-bulbasaur-widget');

}
</script>

<script
async
onload="initSakanaWidget()"
src="https://cdn.jsdelivr.net/npm/[email protected]/lib/sakana.min.js"
></script>

0 comments on commit 6aa1e4f

Please sign in to comment.