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

Fetch upstream #2

Open
wants to merge 62 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
5d3d514
Add an end tag
JinsYin Nov 27, 2019
eccbb3d
Merge pull request #336 from JinsYin/patch-3
Huxpro Mar 22, 2020
3d03711
[v1.8.2] bugfixes
Huxpro Mar 22, 2020
5cc3783
Merge branch 'master' of github.com:Huxpro/huxpro.github.io
Huxpro Mar 22, 2020
e28cf2d
Experimental new PL chart
Huxpro May 4, 2020
2aaa36c
Link for now
Huxpro May 4, 2020
e409131
Fix typo
Huxpro May 4, 2020
f3a9d67
[self] testing
Huxpro May 6, 2020
e37daef
[self] quick fix
Huxpro May 6, 2020
95f5b60
[self] resizable
Huxpro May 6, 2020
0d34def
[self] bugfix
Huxpro May 6, 2020
87a2730
move script into footer to have $ access
Huxpro May 6, 2020
fa35e49
[self] *about
Huxpro May 6, 2020
7904f01
Bump websocket-extensions from 0.1.3 to 0.1.4
dependabot[bot] Jun 8, 2020
d83742d
fix: add a missing '</div>' tag in archive
Renovamen Mar 28, 2020
a57d203
[v1.9] merge with search PR
Huxpro Jun 20, 2020
71516db
[v1.9] using bundle exec in package.json
Huxpro Jun 20, 2020
90fd8fa
Merge branch 'fxm5547-add-search-feature'
Huxpro Jun 20, 2020
1ed1e44
[v1.9] Rearrange docs
Huxpro Jun 20, 2020
e96a90b
[doc]
Huxpro Jun 20, 2020
53ce25c
testing search
Huxpro Jun 20, 2020
6944dec
[v1.9] refactor css/search
Huxpro Jun 21, 2020
4c4eea7
[v1.9] drop search text
Huxpro Jun 21, 2020
c9acbc7
grunt
Huxpro Jun 21, 2020
a19be51
grunt & format
Huxpro Jun 21, 2020
83edb63
rename doc hopefully solve the build issue
Huxpro Jun 21, 2020
c5120cd
minor fix on search-input
Huxpro Jun 21, 2020
3e97c55
[v1.9] happy hacking...
Huxpro Jun 21, 2020
1ef4318
[v1.9] html decode ondemand
Huxpro Jun 21, 2020
49025e6
[v1.9] optimize search transition
Huxpro Jun 21, 2020
1726e58
disable fuzzy
Huxpro Jun 21, 2020
c6f63cd
[v1.9] make catalog default on
Huxpro Jun 21, 2020
be8798d
[post] datarep-int
Huxpro Jun 22, 2020
916a39f
[self]
Huxpro Jun 22, 2020
0ff205f
Add Rakefile for post creation
goplusgo Jun 2, 2020
c33fd80
Add rake in Gemfile
goplusgo Jun 20, 2020
e44afc5
Add user docs
goplusgo Jun 20, 2020
fbe549e
[self] post
Huxpro Jun 23, 2020
4806b17
[self] amend
Huxpro Jun 24, 2020
40a490e
*
Huxpro Jul 11, 2020
b1d823b
Update data-rep-float
Huxpro Oct 4, 2020
e462d51
[self] *
Huxpro Jan 11, 2021
e814ac2
[self] post
Huxpro Jan 19, 2021
cab4f7c
[self] *
Huxpro Jan 19, 2021
3d03106
[self]
Huxpro Jan 19, 2021
e984ef9
[self] *
Huxpro Jan 19, 2021
dea7c4f
*
Huxpro May 4, 2021
ebe9115
*
Huxpro May 7, 2021
390922f
*
Huxpro May 7, 2021
559a643
fix depedent bot
Huxpro May 7, 2021
974750e
Update README.md
Huxpro May 7, 2021
5bde343
Update README.md
Huxpro May 7, 2021
45b7e95
Update README
Huxpro Jul 10, 2021
b678da5
*
Huxpro Jul 10, 2021
9f52bae
use github avatar
Huxpro Oct 24, 2021
61b4369
npm audit fix
Huxpro Oct 24, 2021
34035f5
Add Webrick For Ruby3
Huxpro Aug 1, 2022
f69d56d
*
Huxpro Aug 1, 2022
f9ae805
clean up
Huxpro Aug 15, 2022
b8ca83e
Update zh.md
Huxpro Dec 1, 2023
2edda7a
Update zh.md
Huxpro Dec 1, 2023
6619d45
Update README.md
Huxpro Apr 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ _archive
node_modules
.vscode
*.log
*.lock
*.sh
.DS_Store
.jekyll-cache
*/.DS_Store
*/*/.DS_Store
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'
gem 'jekyll-paginate'

gem "jekyll", "~> 4.0"
gem "rake"

gem "webrick", "~> 1.7"
373 changes: 29 additions & 344 deletions README.md

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
require "rubygems"
require 'rake'
require 'yaml'
require 'time'

SOURCE = "."
CONFIG = {
'version' => "12.3.2",
'themes' => File.join(SOURCE, "_includes", "themes"),
'layouts' => File.join(SOURCE, "_layouts"),
'posts' => File.join(SOURCE, "_posts"),
'post_ext' => "md",
'theme_package_version' => "0.1.0"
}

# Usage: rake post title="A Title" subtitle="A sub title"
desc "Begin a new post in #{CONFIG['posts']}"
task :post do
abort("rake aborted: '#{CONFIG['posts']}' directory not found.") unless FileTest.directory?(CONFIG['posts'])
title = ENV["title"] || "new-post"
subtitle = ENV["subtitle"] || "This is a subtitle"
slug = title.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '')
begin
date = (ENV['date'] ? Time.parse(ENV['date']) : Time.now).strftime('%Y-%m-%d')
rescue Exception => e
puts "Error - date format must be YYYY-MM-DD, please check you typed it correctly!"
exit -1
end
filename = File.join(CONFIG['posts'], "#{date}-#{slug}.#{CONFIG['post_ext']}")
if File.exist?(filename)
abort("rake aborted!") if ask("#{filename} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
end

puts "Creating new post: #{filename}"
open(filename, 'w') do |post|
post.puts "---"
post.puts "layout: post"
post.puts "title: \"#{title.gsub(/-/,' ')}\""
post.puts "subtitle: \"#{subtitle.gsub(/-/,' ')}\""
post.puts "date: #{date}"
post.puts "author: \"Hux\""
post.puts "header-img: \"img/post-bg-2015.jpg\""
post.puts "tags: []"
post.puts "---"
end
end # task :post

desc "Launch preview environment"
task :preview do
system "jekyll --auto --server"
end # task :preview

#Load custom rake scripts
Dir['_rake/*.rake'].each { |r| load r }
110 changes: 38 additions & 72 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,134 +3,100 @@ title: Hux Blog
SEOTitle: 黄玄的博客 | Hux Blog
header-img: img/home-bg.jpg
email: huxpro@gmail.com
description: "关于程序与设计、黑客与画家 | 黄玄,Web & Mobile Lover,Software Engineer,UX Designer | 这里是 @Hux黄玄 的个人博客,与你一起发现更大的世界"
keyword: "黄玄, Hux黄玄, Hux, 鬼栈, huxpro, @huxpro, 黄玄的博客, Hux Blog, 博客, 个人网站, 互联网, Web, JavaScript, 前端, 设计"
url: "https://huangxuan.me" # your host, for absolute URL
baseurl: "" # for example, '/blog' if your blog hosted on 'host/blog'
description: "这里是 @Hux黄玄 的个人博客,与你一起发现更大的世界 | 要做一个有 swag 的程序员"
keyword: "黄玄, Hux黄玄, Hux, 鬼栈, huxpro, @huxpro, 黄玄的博客, Hux Blog, 博客, 个人网站, 互联网, Web, JavaScript, React, React Native, 前端, 设计"
url: "https://huangxuan.me" # 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
weibo_username: huxpro
zhihu_username: huxpro
github_username: huxpro
twitter_username: huxpro
#facebook_username: huxpro
#linkedin_username: firstname-lastname-idxxxx



# Build settings
# from 2016, 'pygments' is unsupported on GitHub Pages. Use 'rouge' for highlighting instead.
highlighter: rouge
permalink: pretty
paginate: 10
exclude: ["less","node_modules","Gruntfile.js","package.json","README.md","README.zh.md"]
anchorjs: true # if you want to customize anchor. check out line:181 of `post.html`
exclude:
[
"less",
"node_modules",
"Gruntfile.js",
"package.json",
"README.md",
"README.zh.md",
]
anchorjs: true # if you want to customize anchor. check out line:181 of `post.html`
# If you have timezone issue (e.g. #68) in China, uncomment to use this:
#timezone: CN


#timezone: CN

# Gems
# from PR#40, to support local preview for Jekyll 3.0
# make sure you have this gem installed
# `$ gem install jekyll-paginate`
plugins: [jekyll-paginate]



# Markdown settings
# replace redcarpet to kramdown,
# although redcarpet can auto highlight code, the lack of header-id make the catalog impossible, so I switch to kramdown
# document: http://jekyllrb.com/docs/configuration/#kramdown
markdown: kramdown
kramdown:
input: GFM # use Github Flavored Markdown !important
input: GFM # use Github Flavored Markdown !important
syntax_highlighter_opts:
span:
line_numbers: false
block:
line_numbers: true
start_line: 1



# Disqus settings
disqus_username: hux

# Netease settings
netease_comment: false



# Analytics settings
# Baidu Analytics
# Baidu Analytics
# ba_track_id: [your track id]

# Google Analytics
ga_track_id: 'UA-49627206-1' # Format: UA-xxxxxx-xx
ga_track_id: "UA-49627206-1" # Format: UA-xxxxxx-xx
ga_domain: huangxuan.me



# Sidebar settings
sidebar: true # whether or not using Sidebar.
sidebar-about-description: "For the next quantum leap<br>离开世界之前,一切都是过程"
sidebar-avatar: /img/avatar-hux-ny.jpg # use absolute URL, seeing it's used in both `/` and `/about/`


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

# Featured Tags
featured-tags: true # whether or not using Feature-Tags
featured-condition-size: 1 # A tag will be featured if the size of it is more than this condition value


featured-tags: true # whether or not using Feature-Tags
featured-condition-size: 1 # A tag will be featured if the size of it is more than this condition value

# Progressive Web Apps
chrome-tab-theme-color: "#000000"
service-worker: true



# MathJax rendering for layout:page (e.g. post preview)
page-mathjax: false



# Friends
friends: [
{
# title: "Su",
# href: "http://su.gallery/"
# },{
title: "乱序",
href: "http://mida.re/"
},{
title: "Sherry Wu",
href: "https://xuechundesign.github.io"
},{
title: "Luke 的自留地",
href: "http://hmqk1995.github.io"
},{
title: "Ebn's Blog",
href: "http://ebnbin.com/"
},{
title: "SmdCn's Blog",
href: "http://blog.smdcn.net"
},{
title: "JiyinYiyong",
href: "http://tiye.me/"
},{
title: "David's Game",
href: "https://www.ruoyaowu.com/"
},{
title: "DHong Say",
href: "http://dhong.co"
},{
title: "尹峰以为",
href: "http://ingf.github.io/"
}
]
friends:
[
{ title: "乱序(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/" },
{ title: "SmdCn", href: "http://blog.smdcn.net" },
{ title: "JiyinYiyong", href: "http://tiye.me/" },
{ title: "DHong Say", href: "http://dhong.co" },
{ title: "尹峰以为", href: "http://ingf.github.io/" },
]
Loading