From 8aee2418d9ea730ec0ed5770be6b1918a072e17c Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 19 Mar 2023 00:50:44 +0900 Subject: feat(nuldoc): change text of "Posted on" to "投稿" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuldoc-src/pages/post_list.ts | 5 +++-- nuldoc-src/pages/slide_list.ts | 5 +++-- nuldoc-src/pages/tag.ts | 5 +++-- public/posts/index.html | 40 +++++++++++++++++------------------ public/slides/index.html | 8 +++---- public/tags/conference/index.html | 8 +++---- public/tags/cpp/index.html | 2 +- public/tags/cpp17/index.html | 2 +- public/tags/note-to-self/index.html | 2 +- public/tags/php/index.html | 24 ++++++++++----------- public/tags/phpcon/index.html | 2 +- public/tags/phperkaigi/index.html | 14 ++++++------ public/tags/phpstudy-tokyo/index.html | 6 +++--- public/tags/python/index.html | 2 +- public/tags/python3/index.html | 2 +- public/tags/ruby/index.html | 4 ++-- public/tags/ruby3/index.html | 2 +- public/tags/rust/index.html | 2 +- public/tags/vim/index.html | 4 ++-- 19 files changed, 71 insertions(+), 68 deletions(-) diff --git a/nuldoc-src/pages/post_list.ts b/nuldoc-src/pages/post_list.ts index ce26645..767b42b 100644 --- a/nuldoc-src/pages/post_list.ts +++ b/nuldoc-src/pages/post_list.ts @@ -56,19 +56,20 @@ export async function generatePostListPage( el( "footer", [["class", "entry-footer"]], - text("Posted on "), el( "time", [["datetime", getPostCreatedDate(post)]], text(getPostCreatedDate(post)), ), + text(" 投稿"), ...(post.revisions.length > 1 ? [ - text(", updated on "), + text("、"), el("time", [[ "datetime", getPostUpdatedDate(post), ]], text(getPostUpdatedDate(post))), + text(" 更新"), ] : []), ), diff --git a/nuldoc-src/pages/slide_list.ts b/nuldoc-src/pages/slide_list.ts index fbb5778..9c375f3 100644 --- a/nuldoc-src/pages/slide_list.ts +++ b/nuldoc-src/pages/slide_list.ts @@ -57,19 +57,20 @@ export async function generateSlideListPage( el( "footer", [["class", "entry-footer"]], - text("Posted on "), el( "time", [["datetime", getPostCreatedDate(slide)]], text(getPostCreatedDate(slide)), ), + text(" 登壇"), ...(slide.revisions.length > 1 ? [ - text(", updated on "), + text("、"), el("time", [[ "datetime", getPostUpdatedDate(slide), ]], text(getPostUpdatedDate(slide))), + text(" 更新"), ] : []), ), diff --git a/nuldoc-src/pages/tag.ts b/nuldoc-src/pages/tag.ts index 3c1421f..cb518b3 100644 --- a/nuldoc-src/pages/tag.ts +++ b/nuldoc-src/pages/tag.ts @@ -57,19 +57,20 @@ export async function generateTagPage( el( "footer", [["class", "entry-footer"]], - text("Posted on "), el( "time", [["datetime", getPostCreatedDate(page)]], text(getPostCreatedDate(page)), ), + text("event" in page ? " 登壇" : " 投稿"), ...(page.revisions.length > 1 ? [ - text(", updated on "), + text("、"), el("time", [[ "datetime", getPostUpdatedDate(page), ]], text(getPostUpdatedDate(page))), + text(" 更新"), ] : []), ), diff --git a/public/posts/index.html b/public/posts/index.html index 75fd8d3..ad0842d 100644 --- a/public/posts/index.html +++ b/public/posts/index.html @@ -46,7 +46,7 @@

@@ -60,7 +60,7 @@

@@ -74,7 +74,7 @@

@@ -88,7 +88,7 @@

@@ -102,7 +102,7 @@

@@ -116,7 +116,7 @@

@@ -130,7 +130,7 @@

@@ -144,7 +144,7 @@

@@ -158,7 +158,7 @@

@@ -172,7 +172,7 @@

@@ -186,7 +186,7 @@

@@ -200,7 +200,7 @@

@@ -214,7 +214,7 @@

@@ -228,7 +228,7 @@

@@ -242,7 +242,7 @@

@@ -256,7 +256,7 @@

@@ -270,7 +270,7 @@

@@ -284,7 +284,7 @@

@@ -298,7 +298,7 @@

@@ -312,7 +312,7 @@

diff --git a/public/slides/index.html b/public/slides/index.html index 79d76f9..3c2366f 100644 --- a/public/slides/index.html +++ b/public/slides/index.html @@ -46,7 +46,7 @@

@@ -60,7 +60,7 @@

@@ -74,7 +74,7 @@

@@ -88,7 +88,7 @@

diff --git a/public/tags/conference/index.html b/public/tags/conference/index.html index 1521ce9..7bc9555 100644 --- a/public/tags/conference/index.html +++ b/public/tags/conference/index.html @@ -47,7 +47,7 @@

@@ -61,7 +61,7 @@

@@ -75,7 +75,7 @@

@@ -89,7 +89,7 @@

diff --git a/public/tags/cpp/index.html b/public/tags/cpp/index.html index 5d766d7..4da4048 100644 --- a/public/tags/cpp/index.html +++ b/public/tags/cpp/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/cpp17/index.html b/public/tags/cpp17/index.html index e9d0dc2..b3fe576 100644 --- a/public/tags/cpp17/index.html +++ b/public/tags/cpp17/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/note-to-self/index.html b/public/tags/note-to-self/index.html index c305137..e745895 100644 --- a/public/tags/note-to-self/index.html +++ b/public/tags/note-to-self/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/php/index.html b/public/tags/php/index.html index 7409968..5bf2767 100644 --- a/public/tags/php/index.html +++ b/public/tags/php/index.html @@ -47,7 +47,7 @@

@@ -61,7 +61,7 @@

@@ -75,7 +75,7 @@

@@ -89,7 +89,7 @@

@@ -103,7 +103,7 @@

@@ -117,7 +117,7 @@

@@ -131,7 +131,7 @@

@@ -145,7 +145,7 @@

@@ -159,7 +159,7 @@

@@ -173,7 +173,7 @@

@@ -187,7 +187,7 @@

@@ -201,7 +201,7 @@

diff --git a/public/tags/phpcon/index.html b/public/tags/phpcon/index.html index cfa9588..55535a5 100644 --- a/public/tags/phpcon/index.html +++ b/public/tags/phpcon/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/phperkaigi/index.html b/public/tags/phperkaigi/index.html index 3a73be3..13002e3 100644 --- a/public/tags/phperkaigi/index.html +++ b/public/tags/phperkaigi/index.html @@ -47,7 +47,7 @@

@@ -61,7 +61,7 @@

@@ -75,7 +75,7 @@

@@ -89,7 +89,7 @@

@@ -103,7 +103,7 @@

@@ -117,7 +117,7 @@

@@ -131,7 +131,7 @@

diff --git a/public/tags/phpstudy-tokyo/index.html b/public/tags/phpstudy-tokyo/index.html index 8feb838..954c65f 100644 --- a/public/tags/phpstudy-tokyo/index.html +++ b/public/tags/phpstudy-tokyo/index.html @@ -47,7 +47,7 @@

@@ -61,7 +61,7 @@

@@ -75,7 +75,7 @@

diff --git a/public/tags/python/index.html b/public/tags/python/index.html index 60559e3..8eae202 100644 --- a/public/tags/python/index.html +++ b/public/tags/python/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/python3/index.html b/public/tags/python3/index.html index 9c7eb59..fbedf31 100644 --- a/public/tags/python3/index.html +++ b/public/tags/python3/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/ruby/index.html b/public/tags/ruby/index.html index e7364a3..bdbf9a8 100644 --- a/public/tags/ruby/index.html +++ b/public/tags/ruby/index.html @@ -47,7 +47,7 @@

@@ -61,7 +61,7 @@

diff --git a/public/tags/ruby3/index.html b/public/tags/ruby3/index.html index 8eef911..c8d8bc8 100644 --- a/public/tags/ruby3/index.html +++ b/public/tags/ruby3/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/rust/index.html b/public/tags/rust/index.html index 49476db..ebd82a8 100644 --- a/public/tags/rust/index.html +++ b/public/tags/rust/index.html @@ -47,7 +47,7 @@

diff --git a/public/tags/vim/index.html b/public/tags/vim/index.html index f047bb7..6472f87 100644 --- a/public/tags/vim/index.html +++ b/public/tags/vim/index.html @@ -47,7 +47,7 @@

@@ -61,7 +61,7 @@

-- cgit v1.2.3-70-g09d2