Skip to content

Commit ca17656

Browse files
committed
init website
1 parent 0e30833 commit ca17656

File tree

152 files changed

+15840
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+15840
-1
lines changed

.github/workflows/pages.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master # default branch
7+
8+
jobs:
9+
pages:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js 18.x
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: "18"
19+
- name: Cache NPM dependencies
20+
uses: actions/cache@v2
21+
with:
22+
path: node_modules
23+
key: ${{ runner.OS }}-npm-cache
24+
restore-keys: |
25+
${{ runner.OS }}-npm-cache
26+
- name: Install Dependencies
27+
run: npm install
28+
- name: Build
29+
run: npm run build
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./public

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.idea
2+
.DS_Store
3+
Thumbs.db
4+
db.json
5+
*.log
6+
node_modules/
7+
public/
8+
.deploy*/
9+
unuse/
10+
sftp.json
11+
sftp-config.json
12+
13+
14+
.vscode

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/aircloud"]
2+
path = themes/aircloud
3+
url = https://github.com/aircloud/hexo-theme-aircloud

README-EN.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Hexo-Aircloud-Blog: A DEMO For [Hexo-Theme-AirCloud](https://github.com/aircloud/hexo-theme-aircloud)
2+
3+
> [中文文档](./README.md) | [LIVE PRIVIEW](http://niexiaotao.cn/)
4+
5+
## Usage
6+
7+
Need to install hexo globally before
8+
9+
```
10+
git clone https://github.com/aircloud/hexo-theme-aircloud.git
11+
cd hexo-theme-aircloud
12+
npm install
13+
hexo serve
14+
```
15+
16+
Then visit http://localhost:4000/
17+
18+
## Configuration
19+
20+
Directly update _config.yml. If you have some problems, please create an issue [there](https://github.com/aircloud/hexo-aircloud-blog/issues)
21+
22+
> Continuous updating

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Hexo-Aircloud-Blog: A DEMO For [Hexo-Theme-AirCloud](https://github.com/aircloud/hexo-theme-aircloud)
2+
3+
> [English Document](./README-EN.md) | [预览地址](http://niexiaotao.cn/)
4+
5+
## 使用方式
6+
7+
需要提前全局安装 hexo
8+
9+
```
10+
git clone https://github.com/aircloud/hexo-aircloud-blog.git --recursive
11+
cd hexo-aircloud-blog
12+
npm install
13+
hexo serve
14+
```
15+
16+
然后打开 http://localhost:4000/ 即可。
17+
18+
## 配置
19+
20+
可以直接修改 _config.yml 进行自定义配置。如果在配置过程中存在疑问,可以在[这里](https://github.com/aircloud/hexo-aircloud-blog/issues)进行提出
21+
22+
> 本主题持续更新中
23+
24+
## 问题处理
25+
26+
1. hexo gen 之后产生的 html 空白
27+
28+
原因可能是使用的 hexo 版本过于陈旧,目前我使用 14.17.4 的 node 搭配 5.0+ 的 hexo 是可以的。

_config.yml

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
# Hexo Configuration
2+
## Docs: https://hexo.io/docs/configuration.html
3+
## Source: https://github.com/hexojs/hexo/
4+
5+
# Site
6+
title: Yaniv Nizry Blogs
7+
subtitle:
8+
author: Yaniv Nizry
9+
language: en
10+
timezone: CET
11+
12+
# URL
13+
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
14+
# url: https://yaniv-git.github.io/
15+
url: http://localhost:4000/
16+
root: /
17+
permalink: :year/:month/:day/:title/
18+
permalink_defaults:
19+
20+
#Custom Setting Start
21+
22+
# Site settings
23+
# 网站综合内容设置:
24+
SEOTitle: YNizry
25+
email:
26+
description: "Security research blog"
27+
keyword: "security,research,vulnerability,blog,vulnerabilites"
28+
29+
# SNS settings
30+
# 一些社交平台地址,支持以下几种:
31+
weibo_username:
32+
zhihu_username:
33+
github_username: yaniv-git
34+
twitter_username: YNizry
35+
facebook_username:
36+
linkedin_username: yaniv-n-8b4a76193
37+
38+
# Build settings
39+
anchorjs: true # if you want to customize anchor. check out line:181 of `post.html`
40+
41+
sidebar-avatar: img/avatar.webp # use absolute URL, seeing it's used in both `/` and `/about/`
42+
avatar_style:
43+
radius: true
44+
# Friends
45+
# 友情链接
46+
friends: #[
47+
# {
48+
# title: "10000H",
49+
# href: "https://www.10000h.top"
50+
# },{
51+
# title: "Xiaotao's Page",
52+
# href: "https://niexiaotao.com"
53+
# },{
54+
# title: "It helps SEO",
55+
# href: "#"
56+
# },{
57+
# title: "浙ICP备16035324号-1",
58+
# href: "https://beian.miit.gov.cn/"
59+
# }
60+
#]
61+
62+
comment:
63+
# type: giscus
64+
# script: |
65+
# <script src="https://giscus.app/client.js"
66+
# data-repo="aircloud/hexo-aircloud-blog"
67+
# data-repo-id="MDEwOlJlcG9zaXRvcnkxMjkwNDgyNjg="
68+
# data-category="Announcements"
69+
# data-category-id="DIC_kwDOB7EezM4COhKJ"
70+
# data-mapping="title"
71+
# data-reactions-enabled="1"
72+
# data-emit-metadata="0"
73+
# data-input-position="bottom"
74+
# data-theme="light"
75+
# data-lang="zh-CN"
76+
# crossorigin="anonymous"
77+
# async>
78+
# </script>
79+
80+
#comment:
81+
# type: gitment
82+
# id: your-id-created-by-https://github.com/settings/applications/new
83+
# secret: your-secret-created-by-https://github.com/settings/applications/new
84+
# owner: aircloud
85+
# repo: hexo-aircloud-blog
86+
87+
# comment:
88+
# type: disqus
89+
# script: 'https://airclouds-blog.disqus.com/embed.js'
90+
91+
# donate:
92+
# img: img/donate.jpg
93+
# content: 感谢鼓励
94+
95+
# The following content is not recommended to modify
96+
# 搜索数据文件路径设置,不建议改动:
97+
search:
98+
path: search.json
99+
field: post
100+
101+
analytics:
102+
google:
103+
# https://search.google.com
104+
site_verification:
105+
# https://analytics.google.com
106+
gtag_id: G-SCK9223GY8
107+
# 文章样式(是否首行缩进):
108+
post_style:
109+
indent: 0
110+
111+
# Custom Setting End
112+
# Directory
113+
source_dir: source
114+
public_dir: public
115+
tag_dir: tags
116+
advisories_dir: advisories
117+
archive_dir: archive
118+
category_dir: categories
119+
code_dir: downloads/code
120+
i18n_dir: :lang
121+
skip_render:
122+
123+
# Writing
124+
new_post_name: :title.md # File name of new posts
125+
default_layout: post
126+
titlecase: false # Transform title into titlecase
127+
external_link: true # Open external links in new tab
128+
filename_case: 0
129+
render_drafts: false
130+
post_asset_folder: true
131+
relative_link: false
132+
future: true
133+
highlight:
134+
enable: true
135+
line_number: true
136+
auto_detect: true
137+
tab_replace:
138+
139+
# Category & Tag
140+
default_category: uncategorized
141+
category_map:
142+
tag_map:
143+
144+
# Date / Time format
145+
## Hexo uses Moment.js to parse and display date
146+
## You can customize the date format as defined in
147+
## http://momentjs.com/docs/#/displaying/format/
148+
date_format: YYYY-MM-DD
149+
time_format: HH:mm:ss
150+
151+
# Pagination
152+
## Set per_page to 0 to disable pagination
153+
per_page: 10
154+
pagination_dir: page
155+
156+
# Extensions
157+
## Plugins: https://hexo.io/plugins/
158+
## Themes: https://hexo.io/themes/
159+
theme: aircloud
160+
161+
# Deployment
162+
## Docs: https://hexo.io/docs/deployment.html
163+
#deploy:
164+
# type: git
165+
# repo: your repo url
166+
# branch: master
167+

index.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)