aboutsummaryrefslogtreecommitdiffhomepage
path: root/NOTE.md
blob: 12fec6a2d216578d39864d9b339750939ceca4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# My note

## Commands

Generate the site.

```
$ ./nuldoc
```

Create a new post.

```
$ mkdir -p content/posts/$(date +'%Y-%m-%d')
$ touch content/posts/$(date +'%Y-%m-%d')/[TITLE].xml
```

```
$ curl -o static/pdf.min.js https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.min.js
$ curl -o static/pdf.worker.min.js https://unpkg.com/pdfjs-dist@3.4.120/build/pdf.worker.min.js
```


## Structure

```
public
├── sitemap.xml
├── 404.html
├── posts
│   ├── 2021-03-05
│   │   └── my-first-post
│   │       └── index.html
│   ├── feed.xml
│   ├── _page
│   │   ├── 1.html
│   │   └── 2.html
└── tags
    ├── index.html
    └── vim
        ├── feed.xml
        └── index.html
```