blog/release/entry.html

30 lines
843 B
HTML

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>entry page</title>
<script src="marked.min.js"></script>
<script>
location.href = "https://codeberg.org/hyg/blog/src/branch/master/release/time/d."+datestr()+".md";
function datestr(diff = 0) {
var theDate = new Date();
theDate.setDate(theDate.getDate() + diff);
var year = theDate.getFullYear();
var month = theDate.getMonth() + 1 < 10 ? "0" + (theDate.getMonth() + 1) : theDate.getMonth() + 1;
var day = theDate.getDate() < 10 ? "0" + theDate.getDate() : theDate.getDate();
var dateStr = year + "" + month + "" + day;
return dateStr;
}
</script>
</head>
<body>
<div id="daylog"></div>
</body>
</html>