Skip to content

Commit

Permalink
Add and set locales for date
Browse files Browse the repository at this point in the history
  • Loading branch information
RickCogley committed Oct 28, 2024
1 parent b8c2f57 commit 2544b1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import lume from "lume/mod.ts";
import attributes from "lume/plugins/attributes.ts";
import base_path from "lume/plugins/base_path.ts";
import date from "lume/plugins/date.ts";
import { enUS } from "npm:date-fns/locale/en-US";
import { ja } from "npm:date-fns/locale/ja";
// import favicon from "lume/plugins/favicon.ts";
import feed from "lume/plugins/feed.ts";
import filter_pages from "lume/plugins/filter_pages.ts";
Expand All @@ -27,7 +29,7 @@ const site = lume(

site.use(attributes());
site.use(base_path());
site.use(date());
site.use(date({ locales: { enUS, ja } }));
// site.use(favicon());
site.use(feed());
site.use(filter_pages());
Expand Down
1 change: 1 addition & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/about.vto
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ priority: 0.9
得意種目は平泳ぎで、横浜市の水泳大会に出場した経験があります。持久力には自信があります!</span>


<p class="f6 i black-50"><time timestamp="{{ date |> date("DATETIME") }}">更新: {{ date |> date("HUMAN_DATETIME", ja) }}</time></p>
<p class="f6 i black-50"><time timestamp="{{ date |> date("DATETIME") }}">更新: {{ date |> date("HUMAN_DATETIME", "ja") }}</time></p>
</div>
<section class="fl w-100">
<div class="fl w-100 w-50-m w-25-l pa3-m pa4-l">
Expand Down

0 comments on commit 2544b1d

Please sign in to comment.