Skip to content

Commit

Permalink
Merge pull request #1 from zhenfang0215/dev
Browse files Browse the repository at this point in the history
config: update
  • Loading branch information
zhenfang0215 authored and zhen.fang01 committed Jul 17, 2024
2 parents 6ffe576 + b97ac6c commit 4318226
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ VITE_SITE_NAME = "zhenfang的主页" # 名称
VITE_SITE_ANTHOR = "zhenfang" # 作者
VITE_SITE_KEYWORDS = "zhenfang,个人主页" # 关键词
VITE_SITE_DES = "一个默默无闻的主页" # 站点简介
VITE_SITE_URL = "imsyy.top" # 站点地址
VITE_SITE_URL = "zhenfang.online" # 站点地址
VITE_SITE_LOGO = "/images/icon/favicon.ico" # 站点主图标
VITE_SITE_MAIN_LOGO = "/images/icon/logo.png" # 主页图标
VITE_SITE_MAIN_LOGO = "https://avatars.githubusercontent.com/u/104150263?v=4" # 主页图标
VITE_SITE_APPLE_LOGO = "/images/logo/apple-touch-icon.png" # Apple 端图标

# 简介文本
Expand All @@ -31,7 +31,7 @@ VITE_WEATHER_KEY = ""
# 建站日期
## 若不需要,请设为空即可
## 请按照 YYYY-MM-DD 格式填写或者仅填写年份 YYYY
VITE_SITE_START = "2020-10-24"
VITE_SITE_START = "2024-07-01"

# ICP 备案号
## 若不需要,请设为空即可
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
with:
node-version: "18.x"
# 复制环境变量文件
- name: Copy .env.example
- name: Copy .env
run: |
if (-not (Test-Path .env)) {
Copy-Item .env.example .env
Copy-Item .env .env
} else {
Write-Host ".env file already exists. Skipping the copy step."
}
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
COPY .env.example .env
# RUN [ ! -e ".env" ] && cp .env.example .env || true
RUN [ ! -e ".env" ] && cp .env .env || true
RUN npm run build

# 最小化镜像
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
简体中文 | [English](./README_EN.md)

<p>
<strong><h2>無名の主页</h2></strong>
<strong><h2>个人主页</h2></strong>
简单的小主页,原来的看够了,重新弄了一个
</p>

![無名の主页](/screenshots/main.jpg)
![个人主页](/screenshots/main.jpg)

> 主页的 Logo 字体已经过压缩,若用本站 Logo 以外的字母会变回默认字体,这里是 [完整字体](https://file.imsyy.top/font/Other/Pacifico-Regular.ttf),若无法下载,可将字体目录下的 `Pacifico-Regular-all.ttf` 进行替换
### 👀 Demo

> 由于 CDN 缓存原因,查看最新效果可能需要 `Ctrl` + `F5` 强制刷新浏览器缓存
- [無名の主页](https://www.imsyy.top)
- [無名の主页 - Dev](https://home-imsyy.vercel.app)
- [無名の主页 - 备用线路](https://home-5iw.pages.dev)
- [个人主页](https://www.imsyy.top)
- [个人主页 - Dev](https://home-imsyy.vercel.app)
- [个人主页 - 备用线路](https://home-5iw.pages.dev)

### 🎉 功能

Expand Down
10 changes: 5 additions & 5 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
English | [Chinese](./README.md)

<p>
<strong><h2>無名の主页</h2></strong>
<strong><h2>个人主页</h2></strong>
Simple little homepage, had enough of the original one and made a new one
</p>

![無名の主页](https://s2.loli.net/2022/07/14/K5JigfvDoNewtuS.webp)
![个人主页](https://s2.loli.net/2022/07/14/K5JigfvDoNewtuS.webp)

>The logo font on the home page has been compressed, so if you use a font other than this logo, it will change back to the default font, Here is the [full font](https://file.4everland.app/font/Other/Pacifico-Regular.ttf)
### Demo

>Due to CDN caching, you may need `Ctrl` + `F5` to force a browser cache refresh to see the latest results
- [無名の主页](https://www.imsyy.top)
- [無名の主页 - Dev](https://home-imsyy.vercel.app)
- [無名の主页 - Standby](https://home-5iw.pages.dev)
- [个人主页](https://www.imsyy.top)
- [个人主页 - Dev](https://home-imsyy.vercel.app)
- [个人主页 - Standby](https://home-5iw.pages.dev)

### Functions

Expand Down
Binary file removed public/font/Pacifico-Regular-all.ttf
Binary file not shown.
Binary file added public/font/Pacifico-Regular-mini.ttf
Binary file not shown.
Binary file modified public/font/Pacifico-Regular.ttf
Binary file not shown.

0 comments on commit 4318226

Please sign in to comment.