aboutsummaryrefslogtreecommitdiffhomepage
path: root/NOTE.md
blob: 88c5e5517f3ed13b2e7d44f07b523e86f4cf29b0 (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
75
76
77
78
79
80
81
82
83
84
# 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].adoc
```

## TODO

* [x] Add /posts/ page
* [x] Stylesheets
* [x] Syntax highlight
* [ ] Add /tags/ page
* [ ] Add / page
* [ ] Add /about/ page
* [ ] Add slide page
* [ ] Add /slides/ 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
* [ ] Admonitions
* [x] Stylesheet cache busting
* [x] templates
    * Define custom converter using ERB
* [ ] Allow users to access old revisions
    * [ ] Redirect from /posts/foo/ to /posts/foo/?v=1



## 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/