diff --git a/assets/js/post-l10n.js b/assets/js/post-l10n.js index 895007c..f69b4ed 100644 --- a/assets/js/post-l10n.js +++ b/assets/js/post-l10n.js @@ -1,9 +1,13 @@ const userLang = navigator.language || navigator.userLanguage let lang = userLang.includes('pt') ? 'pt' : 'en' -console.log('loaded post-l10n.js', lang) -if (lang != 'pt') { +console.log('post-l10n.js loaded:', lang) + +if (lang == 'pt') { const footer_back = document.getElementById('footer-back-link') - console.log(footer_back) - footer_back.innerText = 'Back' + const author_pre = document.getElementById('author-pre-text') + const date_pre = document.getElementById('date-pre-text') + footer_back.innerText = 'Voltar' + author_pre.innerText = 'Postado por' + date_pre.innerText = 'em' } diff --git a/posts/scripts-em-ocaml.html b/posts/scripts-em-ocaml.html index aa59f1b..af9a1fe 100644 --- a/posts/scripts-em-ocaml.html +++ b/posts/scripts-em-ocaml.html @@ -130,10 +130,12 @@ CSS Theme diff --git a/posts/template.html b/posts/template.html index a21bac6..6be5f83 100644 --- a/posts/template.html +++ b/posts/template.html @@ -66,13 +66,15 @@ $endfor$