Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change #508

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
41 changes: 41 additions & 0 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # 触发推送到 main 分支时执行工作流

jobs:
build:
runs-on: ubuntu-24.04 # 使用 Ubuntu 24.04 系统

steps:
- name: Checkout repository
uses: actions/checkout@v2 # 检出代码

- name: Set up Ruby (如果需要的话)
uses: ruby/setup-ruby@v1 # 根据需要设置 Ruby 环境

- name: Build site (例如使用 Jekyll 或 Hugo 构建)
run: |
# 这里写上你的构建命令
echo "Building site" # 根据你的需求添加构建命令,例如 `jekyll build`

- name: Upload build artifact for GitHub Pages
uses: actions/upload-artifact@v3
with:
name: github-pages-${{ github.run_id }} # 使用唯一的构件名称
path: ./_site # 这里是你的构建输出目录,比如 Jekyll 输出的是 `_site`

deploy:
runs-on: ubuntu-24.04 # 使用 Ubuntu 24.04 系统
needs: build # 确保在构建完成后再部署

steps:
- name: Checkout repository
uses: actions/checkout@v2 # 检出代码

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
artifact_name: github-pages-${{ github.run_id }} # 引用唯一的构件名称
184 changes: 184 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 13 additions & 14 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# Site settings
title: Hux Blog
SEOTitle: 黄玄的博客 | Hux Blog
title: Hai Blog
SEOTitle: 王海的博客 | Hai Blog
header-img: img/home-bg.jpg
email: huxpro@gmail.com
description: "这里是 @Hux黄玄 的个人博客,与你一起发现更大的世界 | 要做一个有 swag 的程序员"
keyword: "黄玄, Hux黄玄, Hux, 鬼栈, huxpro, @huxpro, 黄玄的博客, Hux Blog, 博客, 个人网站, 互联网, Web, JavaScript, React, React Native, 前端, 设计"
url: "https://huangxuan.me" # your host, for absolute URL
description: "这里是王海 Nachuan 的个人博客,与你一起发现更大的世界 | 要做一个有 swag 的程序员"
keyword: "王海, Hai Wang, Nachuan, talent, science, @technology, 王海的博客, Hai Blog, Biorobotics"
url: "https://wangnachuanhai.github.io" # your host, for absolute URL
baseurl: "" # for example, '/blog' if your blog hosted on 'host/blog'

# Publish posts or collection documents with a future date.
future: true

# SNS settings
RSS: false
weibo_username: huxpro
zhihu_username: huxpro
github_username: huxpro
twitter_username: huxpro
#facebook_username: huxpro
#linkedin_username: firstname-lastname-idxxxx
weibo_username: haipro
zhihu_username: haipro
github_username: haipro
twitter_username: haipro


# Build settings
# from 2016, 'pygments' is unsupported on GitHub Pages. Use 'rouge' for highlighting instead.
Expand Down Expand Up @@ -59,7 +58,7 @@ kramdown:
start_line: 1

# Disqus settings
disqus_username: hux
disqus_username: hai

# Netease settings
netease_comment: false
Expand All @@ -74,7 +73,7 @@ ga_domain: huangxuan.me

# Sidebar settings
sidebar: true # whether or not using Sidebar.
sidebar-about-description: "要做一个有 swag 的程序员 <br> React Team @ Meta"
sidebar-about-description: "要做一个有 dream 的科学家 <br> React Team @ Meta"
sidebar-avatar: https://github.com/Huxpro.png # use absolute URL, seeing it's used in both `/` and `/about/`

# Featured Tags
Expand All @@ -91,7 +90,7 @@ page-mathjax: false
# Friends
friends:
[
{ title: "乱序(Midare)", href: "http://mida.re/" },
{ title: "Nachuan(Midare)", href: "http://mida.re/" },
{ title: "Ebn Zhang", href: "https://ebnbin.dev/" },
{ title: "Kun Qian", href: "http://kunq.me" },
{ title: "Sherry Woo", href: "https://sherrywoo.me/" },
Expand Down
4 changes: 2 additions & 2 deletions _posts/2014-01-29-hello-2015.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ tags:
> “Yeah It's on. ”


Hux 的 Blog 就这么开通了。
Hai 的 Blog 就这么开通了。

[跳过废话,直接看技术实现 ](#build)

2015 年,Hux 总算有个地方可以好好写点东西了。
2015 年,Hai 总算有个地方可以好好写点东西了。


作为一个程序员, Blog 这种轮子要是挂在大众博客程序上就太没意思了。一是觉得大部分 Blog 服务都太丑,二是觉得不能随便定制不好玩。之前因为太懒没有折腾,结果就一直连个写 Blog 的地儿都没有。
Expand Down
20 changes: 7 additions & 13 deletions _posts/2021-04-10-js-20yrs-preface.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
---
layout: post
title: "《JavaScript 二十年》推荐语"
author: "Hux"
header-style: text
catalog: true
tags:
- Web
- JavaScript
---
***

> 雪碧(doodlewind)邀请我给[《JavaScript 二十年》](https://zhuanlan.zhihu.com/p/373065151) 写的推荐序。
## layout: post title: "《JavaScript 二十年》推荐语" author: "Hai" header-style: text catalog: true tags: - Web - JavaScript

JavaScript 常常被戏称为一门偶然成功的玩具语言。而实际上,它出身名门,更是成长在聚光灯之下。纵观历史,有资格被标准化的编程语言甚少,它因此成为多方角力的战场,却也有幸同时得到业界与学界先驱的亲传。时至今日,我们甚至难言是它背负了太多妥协,还是这些妥协才成就了它呢。以史为鉴,或许你会有自己的答案。
> 我的一些思考\
> &#x20;写的推荐序。

— 黄玄,Facebook 软件工程师(编程语言、JS 引擎、前端基础设施)、中文前端社区活跃成员。
看着自己的科研水平 的不断进展,我知道我离实现自己的理想有更进了一步。[Watch this amazing video!](https://www.youtube.com/watch?v=a1XupPX51fk)

— 纳川,神经接口及生物机器人研究者。
Binary file modified img/home-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.