chore: resize writing area, add name to navbar
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
export const pad = n => (n < 10 ? "0" : "") + n;
|
||||
export const pad = n => (n < 10 ? "0" : "") + n
|
||||
|
||||
export const todayUrl = (date = new Date()) =>
|
||||
`/${date.getFullYear()}/${pad(date.getMonth() + 1)}/${pad(date.getDate())}/`;
|
||||
`/${date.getFullYear()}/${pad(date.getMonth() + 1)}/${pad(date.getDate())}/`
|
||||
|
||||
export const yearUrl = (date = new Date()) => `/${date.getFullYear()}/`;
|
||||
export const yearUrl = (date = new Date()) => `/${date.getFullYear()}/`
|
||||
|
||||
export const months = {
|
||||
long: Array.from({ length: 12 }, (x, index) =>
|
||||
new Date(0, index).toLocaleDateString("en-US", { month: "long" })
|
||||
)
|
||||
};
|
||||
),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user