-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.js
More file actions
29 lines (27 loc) · 962 Bytes
/
site.js
File metadata and controls
29 lines (27 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = () => {
const today = new Date();
const month = today.getMonth();
const day = today.getDate();
const nextCssNakedDay = new Date(`${today.getFullYear()}-04-09 00:00:00`);
if (nextCssNakedDay < today) {
nextCssNakedDay.setFullYear(nextCssNakedDay.getFullYear() + 1);
}
return {
name: "Luke Bonaccorsi",
description:
"Hi, I'm Luke! I'm a self-taught web developer/software engineer with expertise in building scalable, performant websites using HTML, CSS and JavaScript",
domain: "lukeb.co.uk",
url: "https://lukeb.co.uk",
authorName: "Luke Bonaccorsi",
authorEmail: "luke@lukeb.co.uk",
maxPostsPerPage: 10,
webmentionToken: "pDjIX81PRC-fGTpGYOXOMQ",
isCssNakedDay: month === 3 && day === 9,
timezone: "Europe/London",
publishTime: "10:30",
rebuildDates: [
nextCssNakedDay,
new Date(`${today.getFullYear() + 1}-01-01 00:00:00`), // New Year's Day
],
};
};