Browse Source

Import hexo, but not theme

blog
Nathan Bergey 5 years ago
parent
commit
8c91c327b5
  1. 9
      .gitignore
  2. 10
      Makefile
  3. 81
      _config.yml
  4. 3267
      package-lock.json
  5. 19
      package.json
  6. 4
      scaffolds/draft.md
  7. 4
      scaffolds/page.md
  8. 5
      scaffolds/post.md
  9. 38
      source/_posts/hello-world.md

9
.gitignore

@ -1,3 +1,12 @@
.DS_Store
Thumbs.db
_site/
.sass-cache/
favicon.ico
db.json
*.log
node_modules/
public/
.deploy*/

10
Makefile

@ -1,3 +1,5 @@
public:
npx hexo generate
favicon.ico: favicon.svg
rsvg-convert -w 16 -h 16 --background-color=none favicon.svg -o favicon-16.png
@ -6,8 +8,10 @@ favicon.ico: favicon.svg
convert favicon-16.png favicon-32.png favicon-64.png favicon.ico
rm favicon*.png
deploy:
scp -r _site/* natronics.org:/var/www
deploy: public
scp -r public/* natronics.org:/var/www
clean:
rm -rf public
.PHONY: deploy
.PHONY: deploy clean

81
_config.yml

@ -0,0 +1,81 @@
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: natronics.org
subtitle:
description:
keywords:
author: Nathan
language: en
timezone: America/New_York
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://natronics.org
root: /
permalink: :year/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: tufte
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type:

3267
package-lock.json
File diff suppressed because it is too large
View File

19
package.json

@ -0,0 +1,19 @@
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.9.0"
},
"dependencies": {
"hexo": "^3.9.0",
"hexo-generator-archive": "^0.1.5",
"hexo-generator-category": "^0.1.3",
"hexo-generator-index": "^0.2.1",
"hexo-generator-tag": "^0.2.0",
"hexo-renderer-ejs": "^0.3.1",
"hexo-renderer-stylus": "^0.3.3",
"hexo-renderer-marked": "^1.0.1",
"hexo-server": "^0.3.3"
}
}

4
scaffolds/draft.md

@ -0,0 +1,4 @@
---
title: {{ title }}
tags:
---

4
scaffolds/page.md

@ -0,0 +1,4 @@
---
title: {{ title }}
date: {{ date }}
---

5
scaffolds/post.md

@ -0,0 +1,5 @@
---
title: {{ title }}
date: {{ date }}
tags:
---

38
source/_posts/hello-world.md

@ -0,0 +1,38 @@
---
title: Hello World
---
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).
## Quick Start
### Create a new post
``` bash
$ hexo new "My New Post"
```
More info: [Writing](https://hexo.io/docs/writing.html)
### Run server
``` bash
$ hexo server
```
More info: [Server](https://hexo.io/docs/server.html)
### Generate static files
``` bash
$ hexo generate
```
More info: [Generating](https://hexo.io/docs/generating.html)
### Deploy to remote sites
``` bash
$ hexo deploy
```
More info: [Deployment](https://hexo.io/docs/deployment.html)
Loading…
Cancel
Save