diff --git a/.eleventy.js b/.eleventy.js index 7d00e41..a9639c5 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -16,6 +16,11 @@ eleventyConfig.addNunjucksFilter("alternateLanguages", function(collection, post })) }); + eleventyConfig.addFilter("absoluteUrl", function(path) { + const base = "https://adrianvic.github.io"; + return base + path; + }); + eleventyConfig.addNunjucksFilter("smartTitle", function(str) { if (!str) return ""; const smallWords = ["a","an","and","at","but","by","for","in","nor","of","on","or","so","the","to","up","yet", diff --git a/_data/i18n.js b/_data/i18n.js index 115d4b7..a44d88f 100644 --- a/_data/i18n.js +++ b/_data/i18n.js @@ -55,7 +55,8 @@ module.exports = { back: "back", hideBackground: "Hide background", options: "Options", - alsoAvailableAsVideo: "Also available as video" + alsoAvailableAsVideo: "Also available as video", + websiteDescription: "Personal website/blog of Adrian Victor." }, pt: { language: "português", @@ -98,6 +99,7 @@ module.exports = { back: "voltar", hideBackground: "Esconder imagem de fundo", options: "Opções", - alsoAvailableAsVideo: "Também disponível em vídeo" + alsoAvailableAsVideo: "Também disponível em vídeo", + websiteDescription: "Website/blog pessoal de Adrian Victor." } }; diff --git a/_includes/base.njk b/_includes/base.njk index 9312988..d008577 100644 --- a/_includes/base.njk +++ b/_includes/base.njk @@ -12,6 +12,11 @@ + + + + +
- + {% include "header.njk" %}
{{ content | safe }}