diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-09-30 11:59:17 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-09-30 11:59:17 -0400 |
| commit | a8fe14cbba8ff540bd2967b018fef7f43d2431d8 (patch) | |
| tree | daeaf5c386dbec851130f6d0088f4b249e9b6a7c /lume/src/blog.jsx | |
| parent | ac6a3df0d18cc73524c0096d954a57d24cad5669 (diff) | |
| download | xesite-a8fe14cbba8ff540bd2967b018fef7f43d2431d8.tar.xz xesite-a8fe14cbba8ff540bd2967b018fef7f43d2431d8.zip | |
lume/src: style fixes
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lume/src/blog.jsx')
| -rw-r--r-- | lume/src/blog.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lume/src/blog.jsx b/lume/src/blog.jsx index 2c5b0d2..014cb19 100644 --- a/lume/src/blog.jsx +++ b/lume/src/blog.jsx @@ -2,7 +2,7 @@ export const title = "Blog Articles"; export const layout = "base.njk"; export default ({ search }) => { - const dateOptions = { year: "numeric", month: "numeric", day: "numeric" }; + const dateOptions = { year: "numeric", month: "2-digit", day: "2-digit" }; return ( <> @@ -23,7 +23,7 @@ export default ({ search }) => { const url = post.data.redirect_to ? post.data.redirect_to : post.data.url; return ( <li> - {post.data.date.toLocaleDateString("en-US", dateOptions)} -{" "} + <span className="font-mono">{post.data.date.toLocaleDateString("en-US", dateOptions)}</span> -{" "} <a href={url}>{post.data.title}</a> </li> ); |
