aboutsummaryrefslogtreecommitdiffhomepage
path: root/NOTE.md
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2022-11-19 14:23:32 +0900
committernsfisis <nsfisis@gmail.com>2022-11-19 14:25:59 +0900
commit6209453817da9922f28bac1bb1522c6d380630ab (patch)
tree19e0699e751af387d549d6720ca215c8065b3c0c /NOTE.md
parent0cafa073914b5e0b162b735a7f8445fb2aa8a604 (diff)
downloadblog.nsfisis.dev-6209453817da9922f28bac1bb1522c6d380630ab.tar.gz
blog.nsfisis.dev-6209453817da9922f28bac1bb1522c6d380630ab.tar.zst
blog.nsfisis.dev-6209453817da9922f28bac1bb1522c6d380630ab.zip
Hugo to Asciidoctor
Diffstat (limited to 'NOTE.md')
-rw-r--r--NOTE.md60
1 files changed, 56 insertions, 4 deletions
diff --git a/NOTE.md b/NOTE.md
index 727cc36..801c62c 100644
--- a/NOTE.md
+++ b/NOTE.md
@@ -5,18 +5,70 @@
Generate the site.
```
-$ hugo -d docs
+$ make gen
```
Create a new post.
```
-$ hugo new posts/$(date +'%Y-%m-%d')/[TITLE].md
+$ mkdir -p content/posts/$(date +'%Y-%m-%d')
+$ touch content/posts/$(date +'%Y-%m-%d')/[TITLE].md
```
+## TODO
-Update `highlight.min.js`.
+* [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
```
-$ curl -sL https://raw.githubusercontent.com/highlightjs/cdn-release/main/build/highlight.min.js >| themes/mypaper/static/highlight.min.js
+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/