Skip to content

Commit 869115f

Browse files
committed
Add clone info to footer
1 parent fd257f2 commit 869115f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

generate.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ cacheOrFetch('https://techcrunch.com/', 'index.html', process.env.NODE_ENV !== '
6666
timeAndDate, monthAndDay,
6767
featured,
6868
posts,
69-
events
69+
events,
70+
now: Date.now()
7071
}).then(html => fs.promises.writeFile(path.join('static', 'index.html'), html));
7172

7273
}).catch(console.error)

templates/index.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
</ul>
175175
</nav>
176176

177-
<span>© 2022 Yahoo. All rights reserved. Powered by <a href="https://wpvip.com/">WordPress VIP</a>.</span>
177+
<span>Statically cloned from <a href="https://github.com/RascalTwo/TechCrunchClone">https://github.com/RascalTwo/TechCrunchClone</a> at <%- new Date(now).toLocaleString() %>.</span>
178178
</footer>
179179
</body>
180180

0 commit comments

Comments
 (0)