Skip to content

Commit

Permalink
about page|some config
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-sun committed Apr 29, 2024
1 parent d0733e7 commit 4b7a964
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 31 deletions.
37 changes: 19 additions & 18 deletions _config.butterfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ nav:

# Menu 目錄
menu:
Home: / || fas fa-home
Archives: /archives/ || fas fa-archive
Tags: /tags/ || fas fa-tags
Categories: /categories/ || fas fa-folder-open
List||fas fa-list:
Music: /music/ || fas fa-music
Movie: /movies/ || fas fa-video
Link: /link/ || fas fa-link
About: /about/ || fas fa-heart
首页: / || fas fa-home
历史: /archives/ || fas fa-archive
标签: /tags/ || fas fa-tags
分类: /categories/ || fas fa-folder-open
娱乐||fa fa-heartbeat:
音乐: /music/ || fas fa-music
照片: /Gallery/ || fas fa-images
电影: /movies/ || fas fa-video
友链: /link/ || fas fa-link
关于: /about/ || fas fa-heart

# Code Blocks (代碼相關)
# --------------------------------------
Expand Down Expand Up @@ -165,15 +166,15 @@ post_copyright:

# Sponsor/reward
reward:
enable: false
enable: true
text:
QR_code:
# - img: /img/wechat.jpg
# link:
# text: wechat
# - img: /img/alipay.jpg
# link:
# text: alipay
- img: /images/wechat.jpg
link:
text: wechat
- img: /images/alipay.jpg
link:
text: alipay

# Post edit
# Easily browse and edit blog source code online.
Expand Down Expand Up @@ -231,10 +232,10 @@ aside:
enable: true
description:
button:
enable: true
enable: false
icon: fab fa-github
text: Follow Me
link: https://github.com/xxxxxx
link: https://github.com/bl-sun
card_announcement:
enable: true
content: This is my Blog
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ subtitle: ''
description: ''
keywords:
author: 小玉石
language: zh
language: zh-CN
timezone: 'Asia/Shanghai'

# URL
Expand Down
31 changes: 19 additions & 12 deletions source/_data/link.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
- class_name: 友情链接
class_desc: 那些人,那些事
link_list:
- name: Hexo
link: https://hexo.io/zh-tw/
avatar: https://d33wubrfki0l68.cloudfront.net/6657ba50e702d84afb32fe846bed54fba1a77add/827ae/logo.svg
descr: 快速简单且强大的博客框架
- name: 廖雪峰
link: //www.liaoxuefeng.com
avatar: //www.liaoxuefeng.com/favicon.ico
descr: 研究互联网产品和技术,提供原创中文精品教程--Java教程|Python教程|区块链

- name: ⭐️齐下无贰⭐️
link: https://weidows.github.io
avatar: https://cdn.jsdelivr.net/gh/Weidows/Weidows/image/avatar.png
link: //weidows.github.io
avatar: //cdn.jsdelivr.net/gh/Weidows/Weidows/image/avatar.png
descr: May all the beauty be bless.✨(本网站的灵感来源)

- name: Hexo
link: //hexo.io/zh-tw/
avatar: //d33wubrfki0l68.cloudfront.net/6657ba50e702d84afb32fe846bed54fba1a77add/827ae/logo.svg
descr: 快速简单且强大的博客框架


- class_name: 网站
class_desc: 值得推荐的网站
link_list:
- name: Youtube
link: https://www.youtube.com/
avatar: https://i.loli.net/2020/05/14/9ZkGg8v3azHJfM1.png
link: //www.youtube.com/
avatar: //i.loli.net/2020/05/14/9ZkGg8v3azHJfM1.png
descr: 视频网站
- name: Weibo
link: https://www.weibo.com/
avatar: https://i.loli.net/2020/05/14/TLJBum386vcnI1P.png
link: //www.weibo.com/
avatar: //i.loli.net/2020/05/14/TLJBum386vcnI1P.png
descr: 中国最大社交分享平台
- name: Twitter
link: https://twitter.com/
avatar: https://i.loli.net/2020/05/14/5VyHPQqR6LWF39a.png
link: //twitter.com/
avatar: //i.loli.net/2020/05/14/5VyHPQqR6LWF39a.png
descr: 社交分享平台
39 changes: 39 additions & 0 deletions source/_posts/2024-04-29-hexo-butterfly.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,42 @@ npm install hexo-renderer-pug hexo-renderer-stylus --save
```

其他配置请参照[https://butterfly.js.org/posts/dc584b87/](https://butterfly.js.org/posts/dc584b87/)

将配置或修改推送到远程仓库

```shell
git add .
git commit -m "somme comment"
git push
```

## 自此以后

以上配置基本只操作一次,以后就可以开始愉快的写文章啦!

### 新建`post`

```shell
hexo new post-name
```

### 启动本地服务

```shell
hexo server
```


### 推送到远程

```shell
git add .
git commit -m "somme comment"
git push
```

### 压缩仓库体积

由于`git`是增量更新的,按照道理来讲应该会越来越大,应该有方法用于删除之前的`commit`只保留当前的版本。

**这件事情留给需要的时候再做吧**
8 changes: 8 additions & 0 deletions source/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: 关于
date: 2024-04-29 16:05:13
---

# 关于

本网站基于`hexo`使用`butterfly`主题
Binary file added source/images/alipay.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/wechat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions source/link/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@ title: 友情链接
date: 2024-04-28 22:28:30
type: "link"
---

## 感谢引用本网站

如果你也使用`butterfly`主题,可直接复制下面的内容粘贴到`/source/_data/link.yml`当中

```yml
name: 小玉石的博客
link: //bl-sun.github.io
avatar: //bl-sun.github.io/images/avatar.jpeg
descr: 爱生活,爱自己
```

0 comments on commit 4b7a964

Please sign in to comment.