diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-03-29 01:22:53 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-03-29 01:22:53 +0900 |
| commit | c01083ef9e8d2e30eac2e44855d5e08b8e775eab (patch) | |
| tree | 45921ed63426d33f15e3ffab66556c51e13460f1 | |
| parent | 7d7d1affd2e96fb90c452758d3d6c7be27937028 (diff) | |
| download | blog.nsfisis.dev-c01083ef9e8d2e30eac2e44855d5e08b8e775eab.tar.gz blog.nsfisis.dev-c01083ef9e8d2e30eac2e44855d5e08b8e775eab.tar.zst blog.nsfisis.dev-c01083ef9e8d2e30eac2e44855d5e08b8e775eab.zip | |
feat(nuldoc): sort slides in about page
| -rw-r--r-- | nuldoc-src/pages/about.ts | 8 | ||||
| -rw-r--r-- | public/about/index.html | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/nuldoc-src/pages/about.ts b/nuldoc-src/pages/about.ts index 459b88c..3306006 100644 --- a/nuldoc-src/pages/about.ts +++ b/nuldoc-src/pages/about.ts @@ -117,7 +117,13 @@ export async function generateAboutPage( el( "ul", [], - ...slides.map((slide) => + ...Array.from(slides).sort((a, b) => { + const ta = dateToString(getPostCreatedDate(a)); + const tb = dateToString(getPostCreatedDate(b)); + if (ta > tb) return -1; + if (ta < tb) return 1; + return 0; + }).map((slide) => el( "li", [], diff --git a/public/about/index.html b/public/about/index.html index a238a4c..efbef3f 100644 --- a/public/about/index.html +++ b/public/about/index.html @@ -67,19 +67,19 @@ <h2>登壇</h2> <ul> <li> - <a href="/slides/2023-01-18/phpstudy-tokyo-148/">2023-01-18: PHP 勉強会@東京 第148 回 (LT)</a> + <a href="/slides/2023-03-25/phperkaigi-2023-tokens/">2023-03-25: PHPerKaigi 2023 (トークン解説セッション)</a> </li> <li> - <a href="/slides/2023-02-15/phpstudy-tokyo-149/">2023-02-15: PHP 勉強会@東京 第149 回 (LT)</a> + <a href="/slides/2023-03-24/phperkaigi-2023/">2023-03-24: PHPerKaigi 2023 (レギュラートーク)</a> </li> <li> <a href="/slides/2023-03-15/phpstudy-tokyo-150/">2023-03-15: PHP 勉強会@東京 第150 回 (LT)</a> </li> <li> - <a href="/slides/2023-03-24/phperkaigi-2023/">2023-03-24: PHPerKaigi 2023 (レギュラートーク)</a> + <a href="/slides/2023-02-15/phpstudy-tokyo-149/">2023-02-15: PHP 勉強会@東京 第149 回 (LT)</a> </li> <li> - <a href="/slides/2023-03-25/phperkaigi-2023-tokens/">2023-03-25: PHPerKaigi 2023 (トークン解説セッション)</a> + <a href="/slides/2023-01-18/phpstudy-tokyo-148/">2023-01-18: PHP 勉強会@東京 第148 回 (LT)</a> </li> </ul> </section> |
