htdocs/template.js

17 lines
395 B
JavaScript
Raw Normal View History

2023-12-11 23:04:12 +01:00
let div = document.getElementById('main');
2023-12-11 23:45:30 +01:00
let divText = div.innerHTML;
2023-12-11 23:04:12 +01:00
2024-01-03 02:05:55 +01:00
divText += `Here you can read my latest blog: <a href='/blog/blogs/${blogs.length - 1}.html'>Latest blog</a>`
2023-12-11 23:04:12 +01:00
console.log(divText);
let newPageHTML = `${pageTop}${divText}${pageBottom}`
2023-12-11 23:04:12 +01:00
document.body.innerHTML = newPageHTML
2023-12-29 23:24:45 +01:00
function goToLink(link) {
window.location.href = link
}
console.log(lastupdated)