换 urara 了

This commit is contained in:
Hubert Chen 2022-10-23 01:54:43 +08:00
parent 0b0cd0054c
commit fd41c4e91b
39 changed files with 439 additions and 331 deletions

1
.github/FUNDING.yml vendored Normal file
View File

@ -0,0 +1 @@
custom: ['https://giveth.io/project/urara', 'https://donate.lol/eth/0xaBdB3f715198A4d7e6591b6ebBE8Ccf235e5D752']

13
COPYING Normal file
View File

@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.

122
README.md Normal file
View File

@ -0,0 +1,122 @@
<br />
<div align="center">
<a href="https://github.com/importantimport/urara">
<img src="https://github.com/importantimport/urara/raw/main/urara/hello-world/urara.webp" alt="urara" /></a>
</div>
<br />
<p align="center">
<a href="https://fff.js.org"><img src="https://img.shields.io/badge/%F0%9F%8C%9F%20F%20F%20F-0.3-yellow?style=flat" alt="fff" /></a>
<img src="https://img.shields.io/github/languages/top/importantimport/urara?color=%23ff3e00" alt="Language" />
<a href="https://github.com/importantimport/urara/blob/main/COPYING"><img src="https://img.shields.io/github/license/importantimport/urara?color=%23fff" alt="License" /></a>
<img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fimportantimport%2Furara.svg?type=shield" alt="FOSSA Status" />
</p>
<p align="center">
<a href="https://urara-demo.netlify.app">🚀 Demo</a>
/
<a href="https://urara-docs.netlify.app">📝 Documentation</a>
/
<a href="https://github.com/importantimport/urara/discussions">💬 Discussions</a>
</p>
<p align="center">
<span>English</span>
|
<a href="https://github.com/importantimport/urara/blob/main/README.zh.md">正體中文</a>
</p>
## 🎉 Try it now!
### Local
```bash
npx degit importantimport/urara my-blog && cd my-blog # create a new project in my-blog
pnpm i # if u don't have pnpm installed, run: npm i -g pnpm
```
### Remote
[![Open in StackBlitz](https://img.shields.io/badge/-Open%20in%20StackBlitz-1374ef?style=for-the-badge&logo=Amp)](https://stackblitz.com/github/importantimport/urara) [![Use this template](https://img.shields.io/badge/-Use%20this%20Template-181717?style=for-the-badge&logo=GitHub)](https://github.com/importantimport/urara/generate) [![Deploy with Vercel](https://img.shields.io/badge/-Deploy%20with%20Vercel-1374ef?style=for-the-badge&logo=Vercel)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fimportantimport%2Furara&env=URARA_SITE_URL&envDescription=Site%20URL.&envLink=https%3A%2F%2Fexample.com&project-name=urara-blog&repository-name=urara-blog) [![Deploy to Netlify](https://img.shields.io/badge/-Deploy%20to%20Netlify-15847d?style=for-the-badge&logo=Netlify&logoColor=white)](https://app.netlify.com/start/deploy?repository=https%3A%2F%2Fgithub.com%2Fimportantimport%2Furara#URARA_SITE_URL=https://example.com&CUSTOM_LOGO=https://github.com/importantimport/urara/raw/main/urara/assets/any@512.png)
## ⚡️ Usage
### Developing
Start a development server:
```bash
pnpm dev
```
### Building
Create a production version of ur blog:
```bash
pnpm build
```
u can preview the built app with `pnpm preview`.
### Documentation
For full documentation, visit [urara-docs.netlify.app](https://urara-docs.netlify.app).
### Give this project a star
tyvm! ur ⭐ will give me more motivation to improve this project.
## ✨ Features
- Out of the box **Atom feed** (WebSub), **Sitemap**, **PWA** (Web app manifest & ServiceWorker) support.
- Present beautiful interface designs and animations with daisyUI, of course.
- Good [IndieWeb](https://indieweb.org/) Compatibility - Multi-kind posts with [microformats2](https://microformats.org/) markup content, Showcasing [Webmentions](https://webmention.org/) via [webmentions.io](https://webmentions.io) API
- Don't worry about the article and image directories - just put them under a folder and they'll be [copied automatically at build time](https://github.com/importantimport/urara/blob/main/urara.js).
- [Comment Components](https://github.com/importantimport/urara/tree/main/src/lib/components/comments): Webmentions, Giscus, Utterances... u can use more than one.
## 📦️ Pre-packed
### TailwindCSS & PostCSS Plugins
- [daisyUI](https://github.com/saadeghi/daisyui) - The most popular, free and open-source Tailwind CSS component library
- [Tailwind CSS Typography](https://github.com/tailwindlabs/tailwindcss-typography) - Beautiful typographic defaults for HTML you don't control.
- [Autoprefixer](https://github.com/postcss/autoprefixer) - Parse CSS and add vendor prefixes to rules by Can I Use
- [CSSNANO](https://github.com/cssnano/cssnano) - A modular minifier, built on top of the PostCSS ecosystem.
### Markdown preprocessor & Syntax highlighter
- [MDsveX](https://github.com/pngwn/MDsveX) - A markdown preprocessor for Svelte.
- [Shiki Twoslash](https://github.com/shikijs/twoslash) - A beautiful Syntax Highlighter.
### Vite Plugins
- [UnoCSS](https://github.com/unocss/unocss) - The instant on-demand atomic CSS engine.
- [VitePWA](https://github.com/antfu/vite-plugin-pwa) - Zero-config PWA for Vite
## 🚀 Sites
- [./kwaa.dev](https://kwaa.dev) - [kwaa/blog](https://github.com/kwaa/blog)
- [Seviche.cc](https://seviche.cc) - [Sevichecc/Urara-Blog](https://github.com/Sevichecc/Urara-Blog)
and more...
- [urara-blog - Discussions](https://github.com/importantimport/urara/discussions/2)
- [urara-blog - Topics](https://github.com/topics/urara-blog)
are u using Urara? add the `urara-blog` topic on ur repo!
## 👥 Contributing
If u're interested in contributing to Urara, pls read [contributing docs](.github/CONTRIBUTING.md) before submitting a pull request.
## 📝 License
This work is free, it comes without any warranty. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the [COPYING](https://github.com/importantimport/urara/blob/main/COPYING) file for more details.
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fimportantimport%2Furara.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fimportantimport%2Furara?ref=badge_large)
special thanks / inspired from:
- [@michaeloliverx - Generate Posts List](https://github.com/pngwn/MDsveX/issues/294#issuecomment-907029639)
- icon made by [Kpouri](https://github.com/kpouri)

125
README.zh.md Normal file
View File

@ -0,0 +1,125 @@
<br />
<div align="center">
<a href="https://github.com/importantimport/urara">
<img src="https://github.com/importantimport/urara/raw/main/urara/hello-world/urara.webp" alt="urara" /></a>
</div>
<br />
<p align="center">
<a href="https://fff.js.org"><img src="https://img.shields.io/badge/%F0%9F%8C%9F%20F%20F%20F-0.2-yellow?style=flat" alt="fff" /></a>
<img src="https://img.shields.io/github/languages/top/importantimport/urara?color=%23ff3e00" alt="Language" />
<a href="https://github.com/importantimport/urara/blob/main/COPYING"><img src="https://img.shields.io/github/license/importantimport/urara?color=%23fff" alt="License" /></a>
<img src="https://app.fossa.com/api/projects/git%2Bgithub.com%2Fimportantimport%2Furara.svg?type=shield" alt="FOSSA Status" />
</p>
<p align="center">
<a href="https://urara-demo.netlify.app">🚀 演示</a>
/
<a href="https://urara-docs.netlify.app">📝 文檔</a>
/
<a href="https://github.com/importantimport/urara/discussions">💬 討論</a>
</p>
<p align="center">
<a href="https://github.com/importantimport/urara">English</a>
|
<span>正體中文</span>
</p>
## 🎉 現在就試試!
### 本地
```bash
npx degit importantimport/urara my-blog && cd my-blog # 在當前目錄創建一個名為 my-blog 的新項目
pnpm i # 如果你沒有安裝 pnpm運行npm i -g pnpm
```
### 遠端
[![Open in StackBlitz](https://img.shields.io/badge/-Open%20in%20StackBlitz-1374ef?style=for-the-badge&logo=Amp)](https://stackblitz.com/github/importantimport/urara) [![Use this template](https://img.shields.io/badge/-Use%20this%20Template-181717?style=for-the-badge&logo=GitHub)](https://github.com/importantimport/urara/generate) [![Deploy with Vercel](https://img.shields.io/badge/-Deploy%20with%20Vercel-1374ef?style=for-the-badge&logo=Vercel)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fimportantimport%2Furara&env=URARA_SITE_URL&envDescription=Site%20URL.&envLink=https%3A%2F%2Fexample.com&project-name=urara-blog&repository-name=urara-blog) [![Deploy to Netlify](https://img.shields.io/badge/-Deploy%20to%20Netlify-15847d?style=for-the-badge&logo=Netlify&logoColor=white)](https://app.netlify.com/start/deploy?repository=https%3A%2F%2Fgithub.com%2Fimportantimport%2Furara#URARA_SITE_URL=https://example.com&CUSTOM_LOGO=https://github.com/importantimport/urara/raw/main/urara/assets/any@512.png)
## ⚡️ 用法
### 開發
啟動開發服務器:
```bash
pnpm dev
```
### 構建
創建你的博客的產品版本:
```bash
pnpm build
```
你還可以使用 `pnpm preview` 預覽構建的網站。
### 文檔
如需完整文檔,請訪問 [urara-docs.netlify.app](https://urara-docs.netlify.app)
### 給這個項目一個 star
非常感謝!你的 ⭐ 會給我更多的動力來改進這個項目。
## ✨ 特徵
- 開箱即用的 **Atom feed** (WebSub), **Sitemap**, **PWA** (Web app manifest & ServiceWorker) 支持。
- 使用 daisyUI 呈現精美的界面設計和動畫,當然。
- 良好的 [IndieWeb](https://indieweb.org/) 兼容性 - 帶有 [microformats2](https://microformats.org/) 標記內容的多種帖子,通過 [webmentions.io](https://webmentions.io) API 展示 [Webmentions](https://webmention.org/)
- 不用擔心文章和圖像目錄 - 只需將它們放在一個文件夾下,它們就會 [在構建時自動複製](https://github.com/importantimport/urara/blob/main/urara.js).
- [評論組件](https://github.com/importantimport/urara/tree/main/src/lib/components/comments): Webmentions, Giscus, Utterances... 你可以使用不止一個。
## 📦️ 預捆綁
### TailwindCSS & PostCSS 插件
- [daisyUI](https://github.com/saadeghi/daisyui) - The most popular, free and open-source Tailwind CSS component library
- [Tailwind CSS Typography](https://github.com/tailwindlabs/tailwindcss-typography) - Beautiful typographic defaults for HTML you don't control.
- [Autoprefixer](https://github.com/postcss/autoprefixer) - Parse CSS and add vendor prefixes to rules by Can I Use
- [CSSNANO](https://github.com/cssnano/cssnano) - A modular minifier, built on top of the PostCSS ecosystem.
### Markdown 預處理器和語法高亮
- [MDsveX](https://github.com/pngwn/MDsveX) - A markdown preprocessor for Svelte.
- [Shiki Twoslash](https://github.com/shikijs/twoslash) - A beautiful Syntax Highlighter.
### Vite 插件
- [UnoCSS](https://github.com/unocss/unocss) - The instant on-demand atomic CSS engine.
- [VitePWA](https://github.com/antfu/vite-plugin-pwa) - Zero-config PWA for Vite
## 🚀 網站
- [./kwaa.dev](https://kwaa.dev) - [kwaa/blog](https://github.com/kwaa/blog)
- [Seviche.cc](https://seviche.cc) - [Sevichecc/Urara-Blog](https://github.com/Sevichecc/Urara-Blog)
和更多...
- [urara-blog - Discussions](https://github.com/importantimport/urara/discussions/2)
- [urara-blog - Topics](https://github.com/topics/urara-blog)
你在用 Urara 嗎? 在你的 repo 上添加 `urara-blog` 主題!
## 👥 貢獻
如果您有興趣為 Urara 做出貢獻,請在提交拉取請求之前閱讀[貢獻文檔](.github/CONTRIBUTING.md)。
## 📝 License
這項工作是免費的,它沒有任何保證。你可以在以下條款下重新發布和/或修改它:
Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar.
有關詳細信息,請參閱 [COPYING](COPYING) 文件。
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fimportantimport%2Furara.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fimportantimport%2Furara?ref=badge_large)
特別感謝 / 靈感來自於:
- [@michaeloliverx - Generate Posts List](https://github.com/pngwn/MDsveX/issues/294#issuecomment-907029639)
- [Kpouri](https://github.com/kpouri) 製作的圖標

6
degit.json Normal file
View File

@ -0,0 +1,6 @@
[
{
"action": "remove",
"files": ["degit.json", "COPYING", ".github/FUNDING.yml"]
}
]

View File

@ -3,5 +3,5 @@ import { site } from '$lib/config/site'
export const handle: Handle = async ({ event, resolve }) =>
await resolve(event, {
transformPageChunk: ({ html }) => html.replace('<html lang="zh-CN">', `<html lang="${site.lang ?? 'zh-CN'}">`)
transformPageChunk: ({ html }) => html.replace('<html lang="en">', `<html lang="${site.lang ?? 'en'}">`)
})

View File

@ -23,11 +23,33 @@
{/each}
<br />
{/if}
{site.author.name} ©
{footerConfig.since && footerConfig.since !== new Date().toJSON().substring(0, 4)
? `${footerConfig.since} - ${new Date().toJSON().substring(0, 4)}`
: new Date().toJSON().substring(0, 4)}
| Powered by
<a
rel="noopener external"
target="_blank"
class="tooltip hover:text-secondary"
data-tip="来 GitHub 上看看我?"
href="https://github.com/interstellar750/">
<b>{site.author.name}</b>
</a>
<a
rel="noopener external"
target="_blank"
class="tooltip hover:text-secondary"
data-tip="CC BY 4.0"
href="https://creativecommons.org/licenses/by/4.0/">
&copy;
</a>
<a
rel="noopener external"
target="_blank"
class="tooltip hover:text-secondary"
data-tip="今年是何年"
href="https://time.is/">
<b>{footerConfig.since && footerConfig.since !== new Date().toJSON().substring(0, 4)
? `${footerConfig.since} - ${new Date().toJSON().substring(0, 4)}`
: new Date().toJSON().substring(0, 4)} </b>
</a>
| 由
<a
rel="noopener external"
target="_blank"
@ -36,6 +58,7 @@
href="https://github.com/importantimport/urara">
Urara
</a>
驱动
{#if footerConfig.html}
<br />
{@html footerConfig.html}

View File

@ -14,7 +14,7 @@
id="navbar-dropdown"
tabindex="0"
class:hidden={!pin}
class="menu menu-compact dropdown-content bg-base-100 text-base-content shadow-lg rounded-box max-w-52 p-2">
class="menu menu-compact dropdown-content bg-base-100 text-base-content shadow-lg rounded-box min-w-max max-w-52 p-2">
{#each nav as { text, link, children }}
{#if link && !children}
<li>

View File

@ -11,7 +11,7 @@ export const theme: ThemeConfig = [
},
{
name: 'cupcake',
text: '🧁 Cupcake'
text: '🧁 纸杯蛋糕'
},
{
name: 'bumblebee',
@ -63,7 +63,7 @@ export const theme: ThemeConfig = [
},
{
name: 'pastel',
text: '🌈 彩虹'
text: '🌈 七色彩虹'
},
{
name: 'fantasy',
@ -87,11 +87,11 @@ export const theme: ThemeConfig = [
},
{
name: 'cmyk',
text: '🖨️ CMYK'
text: '🖨️ CMYK 配色'
},
{
name: 'autumn',
text: '🍂 秋天'
text: '🍂 Autumn'
},
{
name: 'business',
@ -115,7 +115,7 @@ export const theme: ThemeConfig = [
},
{
name: 'winter',
text: '❄️ 雪花纷飞'
text: '❄️ Winter'
}
]
@ -127,13 +127,10 @@ export const header: HeaderConfig = {
text: '关于我',
link: '/about'
},
// 这里不要给目录前加 . 号,不然多次点击目录会叠起来
{
text: '文章',
link: '/posts'
},
{
text: '闲聊',
link: '/talk'
text: '建站历程',
link: '/about/history'
}
]
}
@ -141,7 +138,7 @@ export const header: HeaderConfig = {
export const footer: FooterConfig = {
nav: [
{
text: 'Feed',
text: 'RSS 订阅',
link: '/atom.xml'
},
{

View File

@ -3,13 +3,13 @@ import type { SiteConfig } from '$lib/types/site'
export const site: SiteConfig = {
protocol: 'https://',
domain: import.meta.env.URARA_SITE_DOMAIN ?? 'trle5.xyz',
title: 'Hubert\u0027s Blog',
title: 'Hubert\u0027s\u0020Blog',
subtitle: '',
lang: 'zh-CN',
description: 'Powered by SvelteKit/Urara',
author: {
name: 'Hubert Chen',
avatar: '/assets/IMG_20220506_162446_384.jpg',
name: 'Hubert\u0020Chen',
avatar: '/assets/images/avatar/70455873_p3_master1200.jpg',
status: '😉',
bio: '你好呀👋'
},

View File

@ -1,20 +1,23 @@
---
title: '欢迎参观'
created: 2022-03-01 11:42:55
updated: 2022-09-11
updated: 2022-10-22
tags:
summary: ''
---
## 你好,欢迎来到我的博客
# 你好,欢迎来到我的博客
这个博客由我创建于2022年01月24日起初是想跟网络上的大佬一样搭个自己的博客不过现在搭好了也不知道写些什么。
这个博客由我创建于2022年01月24日起初是想跟网络上的大佬一样搭个自己的博客不过现在搭好了也不知道写些什么
建站历程搬到 [另一个地方](./about/history/) 去了
## 关于我 (Hubert Chen)
### 兴趣爱好
## 兴趣爱好
给手机刷系统,例如 [Lineage OS](https://lineageos.org/) [Sailfish OS](https://sailfishos.org/)
些基础的Linux操作 ~~不过十分容易碰见bug~~
用 Linux ~~不过十分容易碰见bug~~
~~会画画~~ (不会了)
@ -22,42 +25,6 @@ tags:
玩游戏会用的软件: [Steam](https://store.steampowered.com/) [Ubisoft](https://www.ubisoft.com/) [Xbox(云游戏)](https://www.xbox.com/)
活跃的社交平台:[Telegram](https://t.me/trle5) [Twitter](https://twitter.com/interstellar750) [GitHub](https://github.com/Interstellar750/) [Matrix](https://matrix.io/#/@trle5:matrix.org ) 国内的QQ微信也在用但并不太喜欢而且放出来可能会泄露个人信息所以就不公开了
活跃的社交平台:[Telegram](https://t.me/trle5) [Twitter](https://twitter.com/interstellar750) [GitHub](https://github.com/Interstellar750/) [Matrix](https://matrix.io/#/@trle5:matrix.org )
## 建站历程:
#### 2022/01/24
初次建立并使用 [GitHub Pages](https://github.io) 来作为服务器 其实并不是第一次前前后后试了好几次因为碰到了好多bug
#### 2022/01/29
在 [Freenom](freenom.com) 上申请了12个月的免费域名 trle5.tk 但由于不会设置DNS解析依然用着 [GitHub Pages](https://github.io) 的默认域名
#### 2022/02/26
由于 x10m2 上的 [Sailfish OS](https://sailfishos.org/) 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了s10e使用 [Termux](https://play.google.com/store/apps/details?id=com.termux) 来继续运维
#### 2022/02/27
将域名 DNS 解析托管到 [GoDaddy](godaddy.com) ,成功用上了自定义域名
#### 2022/03/08
在 [reg.ru](https://reg.ru) 购买了一年的 [trle5.xyz](https://trle5.xyz/) 域名,用于存放文件,本站可能有一些图片文件会储存在里面
#### 2022/03/14
更换为由 [Freenom](freenom.com) 提供的 DNS 解析
#### 2022/03/15
把 blackbox 的域名从 [trle5.xyz](https://trle5.xyz/) 迁移到 [t5d.trle5.tk](https://t5d.trle5.tk/)
#### 2022/05/07
从默认的 Landscape 主题更换为 [Siricee](https://github.com/Siricee) 制作的 [Chic](https://github.com/Siricee/hexo-theme-Chic) 主题
#### 2022/05/08
使用 [Vercel](https://vercel.com/) 建立了博客镜像站,使用域名 [trle5.xyz](https://trle5.xyz) DNS 解析由 [Cloudflare](https://cloudflare.com/) 提供
#### 2022/06/01
重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)
#### 2022/07/19
重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 ~~**懒**~~ 由于之前的丢数据问题Cloudflare 账号也登不上了,找回有点麻烦
#### 2022/09/11
给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 [trle5.xyz](https://trle5.xyz) 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 [trle5.tk](https://trle5.tk),于 6 月 4 日在 [Porkbun](https://porkbun.com) 白嫖的 [trle5.dev](https://trle5.dev) 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大
国内的QQ微信也在用但并不太喜欢而且放出来可能会泄露个人信息所以就不公开了

View File

@ -0,0 +1,45 @@
---
title: '建站历程'
created: 2022-10-22
updated: 2022-10-22
tags:
summary: '因为提前感觉到这个页面会变得很长很长,就先分离出来了'
---
## 想了想以后这个页面似乎会长长长,就单独放个页面了
##### 2022/01/24 初次建立
初次建立并使用 [GitHub Pages](https://github.io/) 来作为服务器 其实并不是第一次前前后后试了好几次因为碰到了好多bug
##### 2022/01/29 白嫖域名
在 [Freenom](https://freenom.com/) 上申请了 12 个月的免费域名 trle5.tk ,但由于不会设置 DNS 解析,依然用着 [GitHub Pages](https://github.io) 的默认域名
##### 2022/02/26 迁移后端
由于 x10m2 上的 [Sailfish OS](https://sailfishos.org/) 因为未知问题操作很卡,把 hexo 后端备份出来迁移到了 s10e 上,使用 [Termux](https://play.google.com/store/apps/details?id=com.termux) 来继续运维
##### 2022/02/27 设置 DNS 解析
将域名 DNS 解析托管到 [GoDaddy](https://godaddy.com/) ,成功用上了自定义域名
##### 2022/03/08 购入新域名
在 [reg.ru](https://reg.ru) 购买了一年的 [trle5.xyz](https://trle5.xyz/) 域名,用于存放文件,本站可能有一些图片文件会储存在里面
##### 2022/03/14 更换 DNS 解析
更换为由 [Freenom](https://freenom.com/) 提供的 DNS 解析
##### 2022/03/15 更换存文件的地方
把 blackbox 的域名从 [trle5.xyz](https://trle5.xyz/) 迁移到 [t5d.trle5.tk](https://t5d.trle5.tk/)
##### 2022/05/07 换 Chic 主题
从默认的 Landscape 主题更换为 [Siricee](https://github.com/Siricee) 制作的 [Chic](https://github.com/Siricee/hexo-theme-Chic) 主题
##### 2022/05/08 建立镜像站
使用 [Vercel](https://vercel.com/) 建立了博客镜像站,使用域名 [trle5.xyz](https://trle5.xyz/) DNS 解析由 [Cloudflare](https://cloudflare.com/) 提供
##### 2022/06/01 重新配置主题
重新配置了博客主题,因为 05/15 那天手机数据丢失让博客后端也部分丢失了 (真的丢了好多东西啊😢)
##### 2022/07/19 修正文章
重新修正了一篇文章,之前写的文章发现达不到所想的方案所以就暂搁了 ~~**懒**~~ 由于之前的丢数据问题Cloudflare 账号也登不上了,找回有点麻烦
##### 2022/09/11 成功找回 Cloudflare 帐号
给 Cloudflare 客服发邮件,成功拿回了账号的控制权,目前 [trle5.xyz](https://trle5.xyz/) 站点会随时更新,就是代表上面可能会有一些没写完的文章和新东西,文章写完后再推送至 [trle5.tk](https://trle5.tk/),于 6 月 4 日在 [Porkbun](https://porkbun.com/) 白嫖的 [trle5.dev](https://trle5.dev/) 域名还没打算好用来干嘛,两个付费域名以我现在的经济能力压力有点大

View File

@ -0,0 +1,15 @@
---
title: '这是一个测试页面'
image: /about/testagain/test.png
created: 2022-01-26
tags: ['测试']
summary: '有点纪念意义就一直放在这里好了'
---
<u>测试下划线
`测试等宽abc`
[测试链接](https://github.com/)
test netease music
<iframe title="Netease Music" border="0" marginwidth="0" marginheight="0" src="//music.163.com/outchain/player?type=2&amp;id=1300697588&amp;auto=0&amp;height=66" width="330" height="86" frameborder="no"></iframe>

View File

Before

Width:  |  Height:  |  Size: 324 KiB

After

Width:  |  Height:  |  Size: 324 KiB

View File

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 182 KiB

View File

Before

Width:  |  Height:  |  Size: 585 KiB

After

Width:  |  Height:  |  Size: 585 KiB

View File

@ -1,44 +0,0 @@
---
title: 'Hello World'
image: '/hello-world/urara.webp'
created: 2021-11-01
updated: 2021-12-12
tags:
- 'Hello World'
- 'Urara'
---
Welcome to Urara! this article contains some basic operations to help you quickly get started.
## Developing
Start a development server:
```bash
# http://127.0.0.1:5173
pnpm dev
```
or listen to different IP and port:
```bash
# http://127.0.0.1:3000
pnpm dev --port 3000
# http://0.0.0.0:3000
nr dev --host 0.0.0.0 --port 3000
```
## Building
Create a production version of ur blog:
```bash
pnpm build
```
u can preview the built app with `pnpm preview`.
## Documentation
For full documentation, visit [urara-docs.netlify.app](https://urara-docs.netlify.app).

View File

@ -1,145 +0,0 @@
---
title: Elements
created: 2021-12-12
tags: ['Urara', 'Elements']
---
## Headings
### Heading
#### Heading
##### Heading
###### Heading
---
## Paragraphs
||spoiler||
**_The_** _quick_ <u>brown</u> [fox](https://www.foxnews.com/) `jumps` ~~over~~ the lazy **dog**.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
建格的何另始養離腳合兒現各談花車是都無處與費別、信善行修覺自!壓總談下市率應次司公母兒用什一線送用標地倒直作任老數年白安足個後引使名隊懷持日落異今特族?
一士我像衣買了人義,計念?
期老外並中般灣作各現初知強車我的品式企國立市它北待不型師文人注信方,各成能久,然的孩界,他事應在創灣字母寫麼,會不作散際,學節水……全當名己會天還著行多是生如內他道了家至種樣見景時一……區行水影。滿用機!野於不他北軍沒企國了安巴考治連,用然手些裡像是晚,法無走,教西單不假家這廣邊務土至行氣們個身王沒影,進的客動習外因國說,大傷生出壓統發信全一非爾證。被明快至一子的劇成,義定種刻戲立日發民!出安大是養下裡的,認放官時外的:的富你排說物展年定實兒良吃乎、陸般動後,不力在理校感……顧眼王長力老。
重多一?生光聯……動說麼了:起形市般我題臉事級。
> In solitude, where we are least alone.
私は絶対いよいよ漠然たる相当心に対してはずの他にできるならな。けっして今に養成めも何だか漠然たる仕事たないだけにしからならでをは話安んずるないですて、わざわざには聴いましたなけれた。権力を気がつきなのはどうしても先刻が毫もらしくでう。
ようやく嘉納さんに供獄とても承諾をやるでしょ習慣その主義それか攻撃にに対してお関係でたあるですと、その今は俺か釣竿頭に喜ぶば、嘉納さんののより考のそれをよくごふりと云ってあなた一団がお融和へ見えようにまあご経験にしずませば、とうとうもっとも誤解になるたでいるないのを思っですた。しかもしかしながら大首へする気もずいぶん美味と移ろたて、この言葉にもいうですてってがたにしてしまえたない。この限り時代のためその学校も私上を吹き込んんかと大森さんをしなませ、人の今日んというご講義ただですば、晩の時で長靴が始めだけの時代に前もっでいて、どうの今日が思えばそのためとあたかも足りんなとしだ事でが、ないますなて少し実職業いでし事だろたませ。
さて学校か不幸か話に教えですけれども、今中力が起るて得るですためがご講演の今に訊かたです。多年をはどうしても思うでいうんたずでと、まるで何とも繰り返しが周旋はさっそく悪いうので。
[scrollToTop](#headings)
---
## Lists
### Definition List (dl)
<dl>
<dt>Definition List Title</dt>
<dd>This is a definition list division.</dd>
</dl>
### Ordered List (ol)
1. List Item 1
2. List Item 2
3. List Item 3
### Unordered List (ul)
- List Item 1
- List Item 2
- List Item 3
### Checkbox List (ul)
- [ ] List Item 1 unchecked
- [x] List Item 2 checked
- [x] List Item 3 checked
## Table
| Table Header 1 | Table Header 2 | Table Header 3 |
| -------------- | -------------- | -------------- |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
| Table Header 1 | Table Header 2 | Table Header 3 |
| :------------- | :------------: | -------------: |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
| Division 1 | Division 2 | Division 3 |
[scrollToTop](#headings)
## Footnotes
Here is a footnote reference. [^1]
This is a long note. [^longnote]
This is an inline note. ^[You can type footnotes inline, so you dont have to pick an identifier manually.]
[^1]: Here is the footnote.
[^longnote]: Heres one footnote with longer identifier.
[scrollToTop](#headings)
## Code
```ts twoslash title="examples/index.ts"
for (let x in [0]) console.log(x)
```
```ts twoslash {1-6}
interface IdLabel {
id: number /* some fields */
}
interface NameLabel {
name: string /* other fields */
}
type NameOrId<T extends number | string> = T extends number ? IdLabel : NameLabel
// This comment should not be included
// ---cut---
function createLabel<T extends number | string>(idOrName: T): NameOrId<T> {
throw 'unimplemented'
}
let a = createLabel('typescript')
```
## Misc
<sup>Lorem</sup> <sub>ipsum</sub> <cite>dolor sit amet</cite>, <acronym title="Consectetur Adipiscing Elit">consectetur adipiscing elit</acronym>, <abbr title="Aliqua">sed do eiusmod tempor incididunt ut labore et dolore magna aliqua</abbr>. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br><br>
リバースカードオープン、エネミーコントローラー!
ライフを 1000 払い、コマンド入力、<kbd></kbd> <kbd></kbd> <kbd>A</kbd> <kbd>B</kbd>
このコマンドにより、全てのアニヲタを破壊する!
[scrollToTop](#headings)
## Svelte Components
<script>
import YouTube from '$lib/components/extra/youtube.svelte'
</script>
<YouTube id="WysuxO4yR04" />

View File

@ -1,17 +0,0 @@
---
title: ToC Disabled
summary: This post has disabled table of contents.
created: 2021-12-12
tags: ['Front-Matter']
toc: false
---
This post has disabled table of contents.
When the `toc: false` on Front-Matter, toc should not be displayed.
## Heading
### Heading
#### Heading

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

View File

@ -1,8 +1,9 @@
---
title: '手机使用 ADB 与 Fastboot 给另一台手机执行命令'
created: 2022-05-10 22:01:50
updated:
tags: ['adb', '技术', '救砖', '刷机']
updated: 2022-10-23
tags: ['ADB', '技术']
summary: '未完成,而且好像没找到免 root 执行 fastboot 命令的办法'
---
**你好,欢迎来看文章!**~~请问你是手机坏了还是电脑坏了~~

View File

@ -2,7 +2,8 @@
title: 使用 FarPush 搭建微信消息推送服务
created: 2022-09-01
updated: 2022-09-15
tags: ['微信', '信息推送', 'FarPush']
tags: ['微信', '推送服务', 'FarPush']
summary: '写了一半'
---
好久不见,距离上次更新文章的时间是有点长了呢,不过还是欢迎你来看文章!
@ -36,15 +37,18 @@ tags: ['微信', '信息推送', 'FarPush']
```
一台拥有 Python 环境的设备Python 版本至少为 Python3
pip 软件包管理器,作者推荐使用 pip3但似乎是非强制要求
pip 软件包管理器,作者推荐使用 pip3不过我自己试了试,不是强制要求
拥有独立 IP 的服务器或拥有独立 IP 且懂得配置端口转发的家庭网络
// 上一条条件是需要使用到快速回复功能的要求,部署在局域网或获取推送信息的本机上可以不需要独立 IP
```
#### 软件和仓库链接,以及作者的主页
FarPush 下载地址: [__酷安__](https://www.coolapk.com/apk/com.farplace.farpush)
WeChatPush 项目仓库地址: [__GitHub__](https://github.com/TSIOJeft/WeChatPush)
作者的酷安账号: [__FarPlace__](https://www.coolapk.com/u/2838135)
BiliBili 用户页: [__远方的重生__](https://sapce.bilibili.com/10721579) (不太确定是不是作者本人)
# 开始搭建
@ -67,7 +71,7 @@ tags: ['微信', '信息推送', 'FarPush']
以上命令会安装四个软件包,`git` 用于克隆项目仓库,`python3` 为仓库运行需要环境,`pip` 用于安装项目需要的 Python 依赖, `vim` 用于编辑 项目配置文件
软件安装完成后,大概会占用 `600 MB` 左右大小的空间,占的最多的还是 Python3
软件安装完成后,大概会占用 `600 MB` 左右大小的空间,占的最多的还是 Python3
### 克隆仓库与配置消息转发的端口
@ -77,7 +81,7 @@ tags: ['微信', '信息推送', 'FarPush']
克隆项目仓库到当前目录,如果发现在自己不熟悉的目录,可使用 `cd ~` 切换当前工作目录到用户根目录
克隆完成后需要在手机上安装 FarPush 获取推送特征码Farpush 下载链接可见[之前部分](./#软件和仓库链接,以及作者的主页)
克隆完成后需要在手机上安装 FarPush 获取推送特征码Farpush 下载链接可见[之前部分](/posts/wechatpush/#软件和仓库链接,以及作者的主页)
FarPush 推送特征码可见`左上角菜单` > `转接设备` > `右下角按钮`,可根据手机支持的推送服务复制对应的推送特征码(截至 22.09.07 fcm 推送渠道并未支持),然后编辑项目内的 `WeChatPush/itchat/config.py` 文件
@ -91,12 +95,12 @@ tags: ['微信', '信息推送', 'FarPush']
当你执行完上面两行命令时,你会进入到 vim 的操作界面,按方向键把光标移到最下面,你会看见这一段文本
```
# if show self send mes // 翻译过来就是在程序运行中是否显示自己回复的信息
# if show self send mes // 翻译过来就是在程序运行中是否显示自己发送出去的信息,改下一行
SELF_MES = False
PUSH_REGID = '删掉此段文字,替换为你在手机上得到的推送特征码'
# 0 for mi , 1 for oppo 2 for huawei 4 for tencent
PHONE_TYPE = 4 // 4 使用即腾讯推送,基本上全部手机都支持,只不过非系统级推送,可能需要给予 FarPush 一直在后台运行的权限
BLOCK_NAME = [] // 此处填入群或用户的昵称可屏蔽接受对应对话的消息
PHONE_TYPE = 4 // 如果使用腾讯推送可能需要给予 FarPush 一直在后台运行的权限
BLOCK_NAME = [] // 此处填入群名称或用户名可屏蔽接受对应的通知
# through message if you want reply mes just set it for 1
MES_THROUGH = 1 // 改为 1 可使用通知栏快捷回复信息
```

View File

@ -0,0 +1,7 @@
---
title: 在 Chrome OS 上为 linux 虚拟机开启动态磁盘大小
created: 2022-10-22 23:54
updated: 2022-10-22
tags: ['Chrome OS', 'Linux', '小教程']
summary: '没开始写'
---

View File

@ -1,18 +1,20 @@
---
title: '搭建一个自己的博客'
created: 2022-03-05 19:01:48
updated:
tags: ['技术', '博客', 'GitHub', '域名', 'DNS']
updated: 2022-10-22
image: /posts/搭建一个自己的博客/banner.jpg
tags: ['技术', '博客']
summary: '使用 Hexo 后端与 GitHub Pages 服务'
---
你好!这里是 Hubert ,欢迎来我的博客看文章!
## 如何搭建自己的博客
# 如何搭建自己的博客
搭建博客并没有那么困难,大部分的时候只需要跟着步骤走就行,当然有时候碰见 bug 会是不可避免的事,这就得看运气了 ~~我是属于运气差的那一类人。~~
本文里使用的博客框架为 [Hexo](https://github.com/hexojs/hexo) ,服务器使用 [GitHub Pages](github.io)。域名可使用 Github Pages 默认域名或自定义
### 那么就正式开始吧,毕竟我也不会写太多介绍
#### 搭建博客需要准备的东西:
## 那么就正式开始吧,毕竟我也不会写太多介绍
### 搭建博客需要准备的东西:
```
1. 可正常使用且没有被限制的 GitHub 账户
2. 搭载 Windows、Linux 或 Android 的设备
@ -21,12 +23,12 @@ tags: ['技术', '博客', 'GitHub', '域名', 'DNS']
首先创建 GitHub 账户,因为我们搭建博客要用到 GitHub Pages ,注册过程我就不多阐述了,看不懂可以打开浏览器的翻译功能,也可以在搜索引擎寻找对应的教程。
创建完了 GitHub 账户需要创建一个仓库Repositories用于存放博客文件和启用 GitHub Pages 。
登录到 GitHub 网页版后,可以看见左上角的 **Recent Repositories** 旁有个 **New** 按钮,点击它来新建仓库![](/images/post/05/github202203051935.png)
如果是使用手机来访问,可以进入 `https://github.com/<你的github用户名>?tab=repositories` 就能看见那个New按钮了 ![](/images/post/05/github202203051951.png)
登录到 GitHub 网页版后,可以看见左上角的 **Recent Repositories** 旁有个 **New** 按钮,点击它来新建仓库![](/posts/搭建一个自己的博客/github202203051935.png)
如果是使用手机来访问,可以进入 `https://github.com/<你的 GitHub 用户名>?tab=repositories` 就能看见那个New按钮了 ![](/posts/搭建一个自己的博客/github202203051951.png)
创建仓库需要设定仓库名与仓库类型(公开或私密),如果你希望使用 Github Pages 给的二级域名,你需要把仓库名设为 `<你的GitHub用户名>.github.io` ,否则你的 Github Pages 网页会变成 `<你的GitHub用户名>.github.io/<创建的仓库名>`,但如果你使用自定义域名的话随便设置都没问题,仓库类型推荐使用公开,因为似乎只有 Github 付费用户才能在私密的仓库中开启 Github Pages 功能。
创建仓库需要设定仓库名与仓库类型(公开或私密),如果你希望使用 Github Pages 给的二级域名,你需要把仓库名设为 `<你的 GitHub 用户名>.github.io` ,否则你的 Github Pages 网页会变成 `<你的 GitHub 用户名>.github.io/<创建的仓库名>`,但如果你使用自定义域名的话随便设置都没问题,仓库类型推荐使用公开,因为似乎只有 Github 付费用户才能在私密的仓库中开启 Github Pages 功能。
到这里 Github 的设置基本就完成了,接下来就应该开始配置 hexo 客户端了
到这里 GitHub 的设置基本就完成了,接下来就应该开始配置 Hexo 客户端了
## 配置 Hexo 客户端
@ -34,7 +36,7 @@ tags: ['技术', '博客', 'GitHub', '域名', 'DNS']
------------
### 在 Windows 设备上配置 Hexo 客户端
## 在 Windows 设备上配置 Hexo 客户端
首先要安装 Windows 版 [Node.js](https://nodejs.org/en/download/) ,选择 **Windows Installer**
@ -54,28 +56,28 @@ hexo version # 检查 hexo 是否正常
然后还需要安装一下 Git , 方法有两个。
1. 进入 [Git官网](https://git-scm.com/) 下载常规安装包
2. 使用winget `winget install --id Git.Git -e --source winget`
1. 进入 [Git 官网](https://git-scm.com/) 下载常规安装包
2. 使用 winget `winget install --id Git.Git -e --source winget`
这时候就可以部署 Hexo 了,创建一个放博客的文件夹比较好,推荐在用户文件夹下创建一个 hexo 文件夹给它当然如果你已经在其他平台配置过了也可以cd到那个文件夹直接进去继续操作。
这时候就可以部署 Hexo 了,创建一个放博客的文件夹比较好,推荐在用户文件夹下创建一个 hexo 文件夹给它,当然如果你已经在其他平台配置过了,也可以 cd 到那个文件夹直接进去继续操作。
```
cd C:/Users/<你的用户名>/hexo/
cd /d <目录> # CMD用户使用这条命令来切换目录
cd /d <目录> # CMD 用户使用这条命令来切换目录
hexo init
```
到这里的 Windwos上的 hexo 已经部署完成了
------------
### 在 Linux 设备上配置 Hexo 客户端
## 在 Linux 设备上配置 Hexo 客户端
相比于 Windows Linux 上的 Hexo 安装更为简单,只用在命令行运行几个命令
```
$ sudo apt update
$ sudo apt install nodejs
$ sudo apt install git # 如果已经安装了git可以跳过这一步
$ sudo apt install git # 如果已经安装了 git 可以跳过这一步
$ sudo npm install -g hexo-cli
$ hexo version
```
@ -85,23 +87,23 @@ $ hexo version
```
$ mkdir hexo
$ cd hexo
$ hexo init # 此步如果有报错请使用sudo执行或清空部署文件夹
$ hexo init # 此步如果有报错,请使用 sudo 执行或清空部署文件夹
```
完成
------------
### 在 Android 设备上配置 Hexo 客户端
## 在 Android 设备上配置 Hexo 客户端
#### 由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令
### 由于考虑到一些手机品牌的不可获取 root 性,本文章使用 Termux 来运行命令
#### 但由于 Termux 的默认用户文件夹是在 `/data/data/com.ternux/files/home/` 下,没有 root 权限可能无法读取和写入文件,用户可能要慎重考虑一下,博客可以部署到 GitHub Pages 上,但后端控制文件可能得找其他办法传输出来。
##### 不然也可以尝试在手机上安装完整 Linux 虚拟机
#### 安装 Termux
### 安装 Termux
下载链接 [~~Play Store~~](https://play.google.com/store/apps/details?id=com.termux) 不推荐,已经很久没更新了 | [F-Droid](https://f-droid.org/repo/com.termux_118.apk) | [Hubert's Box](https://t5d.trle5.tk/Apk/com.termux_118_f-droid.apk) 下载速度有点堪忧
@ -113,7 +115,7 @@ $ hexo init # 此步如果有报错请使用sudo执行或清空部署文件
```
$ pkg update
$ pkg upgrade
# 如果以上命令不可用可以试试把pkg改成apt即 apt update
# 如果以上命令不可用,可以试试把 pkg 改成 apt即 apt update
```
upgrade 中途可能有选择停顿,可根据个人喜好选择
@ -128,7 +130,7 @@ $ pkg install proot # 手机没有 root 权限选择这个
切换到 root
```
$ tsu # tsu使用这条命令执行后会向手机索要root权限
$ tsu # tsu 使用这条命令,执行后会向手机索要 root 权限
$ termux-chroot # proot 使用这条命令,运行后 ~$ 没有变化 ,但权限有变
```
@ -136,8 +138,8 @@ $ termux-chroot # proot 使用这条命令,运行后 ~$ 没有变化 ,但权
```
$ pkg install nodejs
$ node -v && npm -v # 查看nodejs与npm的版本
$ pkg install git # 已安装git可以忽略此行
$ node -v && npm -v # 查看 nodejs npm 的版本
$ pkg install git # 已安装 git 可以忽略此行
$ npm install -g hexo-cli
$ hexo version
```
@ -156,7 +158,7 @@ $ hexo init
## 在三个平台的部署都完成了,接下来要尝试让它在本地服务器上运行
#### 下面的 `hexo generate` `hexo server` 和后面要讲的 `hexo deploy`,都可以使用 `hexo g` `hexo s` `hexo d`来代替,作用是一样的,也就是 **g**enerate **s**erver **d**eploy 三个单词的首字母。
### 下面的 `hexo generate` `hexo server` 和后面要讲的 `hexo deploy`,都可以使用 `hexo g` `hexo s` `hexo d`来代替,作用是一样的,也就是 **g**enerate **s**erver **d**eploy 三个单词的首字母。
```
hexo generate # 初始化博客并生成初始页面,后期每写一篇新文章也需要再执行一次
hexo server # 运行本地服务器,一般用来测试和在推送前检查是否有问题
@ -184,11 +186,11 @@ url: http://example.com # 网站链接,影响到点击主副标题的跳转,
# https://hexo.io/docs/one-command-deployment 查看 hexo 部署帮助文档
deploy: # 此处不用填写,留空
type: git # 填 git 或 heroku ,根据你的部署位置来
repository: https://github.com/</username>/<username>.github.io # 也可以填你名下的其他仓库,正确即可
repository: https://github.com/<username>/<username>.github.io # 也可以填你名下的其他仓库,正确即可
branch: main # 或 master根据分支来例如我的就是 hexo
```
### 这下就可以部署到 Github Pages 了,不过还得设定一些东西
## 这下就可以部署到 Github Pages 了,不过还得设定一些东西
确保你的终端里配置有 git然后设置一下用户信息
@ -198,17 +200,17 @@ deploy: # 此处不用填写,留空
git config --global user.name "<username>"
git config --global user.mail "<username@github.com>"
# 可能需要使用 root 权限执行
# 可以不用加 "" 号只是因为用户名有空格的话可能会造成git只记录下前一半
# 可以不用加 "" 号,只是因为用户名有空格的话可能会造成 git 只记录下前一半
```
### 关于 git config 中的邮箱设定
## 关于 git config 中的邮箱设定
git config 中的邮箱地址不能直接填写注册 GitHub 的邮箱(其实我也不太清楚能不能,因为我设定的是邮箱不公开),不然并不会算到你的贡献里,当然不在乎的话也可以随便填
前往 [邮箱设定](https://github.com/settings/emails) ,找到你的邮箱地址,旁边会有一个提示符号 ,把鼠标放上去或点击它,就会显示一段话和一个格式为 `<number>+<username>@users.noreply.github.com` 的邮箱地址,复制它然后粘贴到终端里即可![](/images/post/05/github2022-07-19_19.10.08.jpg)
前往 [邮箱设定](https://github.com/settings/emails) ,找到你的邮箱地址,旁边会有一个提示符号 ,把鼠标放上去或点击它,就会显示一段话和一个格式为 `<number>+<username>@users.noreply.github.com` 的邮箱地址,复制它然后粘贴到终端里即可![](/posts/搭建一个自己的博客/github2022-07-19_19.10.08.jpg)
呃,还得安装一下hexo提供的一键部署工具
呃,还得安装一下 Hexo 提供的一键部署工具
```
cd hexo # 需要在博客文件夹里执行
@ -244,7 +246,7 @@ Password for 'https://<username>@github.com':<yourpasswd>
如果需要自定义域名,请在 hexo 的 `public``.deploy_git` 文件夹里都新建一个 `CNAME` 文件,用文本编辑器打开,里面填上你希望使用的域名,也可以在 GitHub 项目的设置里找到 Pages ,再找到 Custom domain ,填入域名,但你不在 hexo 里放的话,每更新 `(hexo d)` 一次你就得重新进这个页面设置一次,很麻烦
### 自定义域名的 DNS 设置
## 自定义域名的 DNS 设置
这个我也摸索了很久,但现在碰壁多了也就会了
@ -296,5 +298,4 @@ name: www
参考文章:
[从零开始搭建个人博客(超详细)](https://zhuanlan.zhihu.com/p/102592286)
[Termux 高级终端安装使用配置教程](https://www.sqlsec.com/2018/05/termux.html)
[Termux 高级终端安装使用配置教程](https://www.sqlsec.com/2018/05/termux.html)

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

View File

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -1,8 +1,9 @@
---
title: '闲谈杂聊'
created: 2022-04-07 08:06:21
updated:
image: /talk/Page4/hero.png
tags: ['闲聊']
summary: '四月不知过的怎么样'
---
你好,欢迎来我的博客看文章,祝愿你天天开心
@ -43,9 +44,9 @@ tags: ['闲聊']
说到五一,五一就到明日方舟三周年了,但从这个学期开始真的很少很少玩了,好像当初停止玩是因为 BOSS 太难打不过去(当时查攻略的话应该是没问题的)
![](/images/post/06/hero.png)
![](/talk/Page4/hero.png)
Lineage OS 在 26 号的时候正式更新了 [Lineage OS 19](https://lineageos.org/Changelog-26),不知道 [Linux4](https://github.com/Linux4) 大佬什么时候让我的 s10e 吃上 Official Lineage OS 🤤
近几年半导体的东西价格都在涨,显卡 内存 硬盘 以及本来是打着廉价开发板的树莓派,现在都涨了,想整块 zero 2 w 当随身 Linux 主机的 😢
近几年半导体的东西价格都在涨,显卡 内存 硬盘 以及本来是打着廉价开发板名号的树莓派,现在都涨了,想整块 zero 2w 当随身 Linux 主机的 😢
这篇文章就写到这吧,~~摸到月底发还能算月更博客~~ 🥴

View File

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

View File

@ -1,14 +0,0 @@
---
title: '这是一个测试页面'
image: '/images/post/02/test.png'
created: 2022-01-26
tags: ['测试']
---
<u>测试下划线</u>
`测试等宽abc`
[测试链接](https://github.com/)
test netease music
<iframe border="0" marginwidth="0" marginheight="0" src="//music.163.com/outchain/player?type=2&amp;id=1300697588&amp;auto=0&amp;height=66" width="330" height="86" frameborder="no"></iframe>