blob: 801c62c520a694bedbc12e73e788e721011bf5ab (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# My note
## Commands
Generate the site.
```
$ make gen
```
Create a new post.
```
$ mkdir -p content/posts/$(date +'%Y-%m-%d')
$ touch content/posts/$(date +'%Y-%m-%d')/[TITLE].md
```
## TODO
* [x] Add /posts/ page
* [x] Stylesheets
* [x] Syntax highlight
* [ ] Add / page
* [ ] Add /about/ page
* [ ] Add navigation bar
* Site name
* Posts
* Tags
* About
* [ ] Paging
* /posts/
* /posts/?p=1 => /posts/
* [ ] RSS feed
* /posts/feed.xml
* /tags/<tag>/feed.xml
* [ ] Redirect
* [x] Old URLs
* [ ] /posts/?p=1
=> /posts/
=> /posts/_page/1.html
* [ ] /posts/?p=2
=> /posts/_page/2.html
* [ ] /
=> /posts/
* [ ] Sitemap
* https://www.sitemaps.org/protocol.html
* https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap?hl=ja
## 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
```
## References
* https://docs.asciidoctor.org/asciidoctor/latest/
|