Prototype links page

This commit is contained in:
jultty 2024-06-05 14:28:29 -03:00
commit 2061680593
7 changed files with 61 additions and 8 deletions

View file

@ -4,7 +4,7 @@ const userLang = navigator.language || navigator.userLanguage
let lang = userLang.includes('pt') ? 'pt' : 'en'
function populate_posts() {
data[lang].posts.forEach(post => {
data.posts[lang].forEach(post => {
const posts = document.getElementById('nav-posts')
posts.innerHTML = ''
const item = document.createElement('li')