Skip to content

Commit c8e11a1

Browse files
committed
first commit
0 parents  commit c8e11a1

File tree

12 files changed

+1739
-0
lines changed

12 files changed

+1739
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 20

.github/workflows/pages.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master # default branch
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
submodules: recursive
16+
- name: Use Node.js 20
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20"
20+
- name: Cache NPM dependencies
21+
uses: actions/cache@v4
22+
with:
23+
path: node_modules
24+
key: ${{ runner.OS }}-npm-cache
25+
restore-keys: |
26+
${{ runner.OS }}-npm-cache
27+
- name: Install Dependencies
28+
run: npm install
29+
- name: Build
30+
run: npm run build
31+
- name: Upload Pages artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: ./public
35+
deploy:
36+
needs: build
37+
permissions:
38+
pages: write
39+
id-token: write
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
id: deployment
47+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
Thumbs.db
3+
db.json
4+
*.log
5+
node_modules/
6+
public/
7+
.deploy*/
8+
_multiconfig.yml

_config.landscape.yml

Whitespace-only changes.

_config.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# Hexo Configuration
2+
## Docs: https://hexo.io/docs/configuration.html
3+
## Source: https://github.com/hexojs/hexo/
4+
5+
# Site
6+
title: Hexo
7+
subtitle: ''
8+
description: ''
9+
keywords:
10+
author: John Doe
11+
language: en
12+
timezone: ''
13+
14+
# URL
15+
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
16+
url: http://example.com
17+
permalink: :year/:month/:day/:title/
18+
permalink_defaults:
19+
pretty_urls:
20+
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
21+
trailing_html: true # Set to false to remove trailing '.html' from permalinks
22+
23+
# Directory
24+
source_dir: source
25+
public_dir: public
26+
tag_dir: tags
27+
archive_dir: archives
28+
category_dir: categories
29+
code_dir: downloads/code
30+
i18n_dir: :lang
31+
skip_render:
32+
33+
# Writing
34+
new_post_name: :title.md # File name of new posts
35+
default_layout: post
36+
titlecase: false # Transform title into titlecase
37+
external_link:
38+
enable: true # Open external links in new tab
39+
field: site # Apply to the whole site
40+
exclude: ''
41+
filename_case: 0
42+
render_drafts: false
43+
post_asset_folder: false
44+
relative_link: false
45+
future: true
46+
syntax_highlighter: highlight.js
47+
highlight:
48+
line_number: true
49+
auto_detect: false
50+
tab_replace: ''
51+
wrap: true
52+
hljs: false
53+
prismjs:
54+
preprocess: true
55+
line_number: true
56+
tab_replace: ''
57+
58+
# Home page setting
59+
# path: Root path for your blogs index page. (default = '')
60+
# per_page: Posts displayed per page. (0 = disable pagination)
61+
# order_by: Posts order. (Order by date descending by default)
62+
index_generator:
63+
path: ''
64+
per_page: 10
65+
order_by: -date
66+
67+
# Category & Tag
68+
default_category: uncategorized
69+
category_map:
70+
tag_map:
71+
72+
# Metadata elements
73+
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
74+
meta_generator: true
75+
76+
# Date / Time format
77+
## Hexo uses Moment.js to parse and display date
78+
## You can customize the date format as defined in
79+
## http://momentjs.com/docs/#/displaying/format/
80+
date_format: YYYY-MM-DD
81+
time_format: HH:mm:ss
82+
## updated_option supports 'mtime', 'date', 'empty'
83+
updated_option: 'mtime'
84+
85+
# Pagination
86+
## Set per_page to 0 to disable pagination
87+
per_page: 10
88+
pagination_dir: page
89+
90+
# Include / Exclude file(s)
91+
## include:/exclude: options only apply to the 'source/' folder
92+
include:
93+
exclude:
94+
ignore:
95+
96+
# Extensions
97+
## Plugins: https://hexo.io/plugins/
98+
## Themes: https://hexo.io/themes/
99+
theme: landscape
100+
101+
# Deployment
102+
## Docs: https://hexo.io/docs/one-command-deployment
103+
deploy:
104+
type: ''

package.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "hexo-site",
3+
"version": "0.0.0",
4+
"private": true,
5+
"scripts": {
6+
"build": "hexo generate",
7+
"clean": "hexo clean",
8+
"deploy": "hexo deploy",
9+
"server": "hexo server"
10+
},
11+
"hexo": {
12+
"version": ""
13+
},
14+
"dependencies": {
15+
"hexo": "^7.3.0",
16+
"hexo-generator-archive": "^2.0.0",
17+
"hexo-generator-category": "^2.0.0",
18+
"hexo-generator-index": "^4.0.0",
19+
"hexo-generator-tag": "^2.0.0",
20+
"hexo-renderer-ejs": "^2.0.0",
21+
"hexo-renderer-marked": "^6.3.0",
22+
"hexo-renderer-stylus": "^3.0.1",
23+
"hexo-server": "^3.0.0",
24+
"hexo-theme-landscape": "^1.0.0"
25+
}
26+
}

scaffolds/draft.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
tags:
4+
---

scaffolds/page.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
---

scaffolds/post.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: {{ title }}
3+
date: {{ date }}
4+
tags:
5+
---

source/_posts/hello-world.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Hello World
3+
---
4+
Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).
5+
6+
## Quick Start
7+
8+
### Create a new post
9+
10+
``` bash
11+
$ hexo new "My New Post"
12+
```
13+
14+
More info: [Writing](https://hexo.io/docs/writing.html)
15+
16+
### Run server
17+
18+
``` bash
19+
$ hexo server
20+
```
21+
22+
More info: [Server](https://hexo.io/docs/server.html)
23+
24+
### Generate static files
25+
26+
``` bash
27+
$ hexo generate
28+
```
29+
30+
More info: [Generating](https://hexo.io/docs/generating.html)
31+
32+
### Deploy to remote sites
33+
34+
``` bash
35+
$ hexo deploy
36+
```
37+
38+
More info: [Deployment](https://hexo.io/docs/one-command-deployment.html)

0 commit comments

Comments
 (0)