Add support for link preview.
This commit is contained in:
parent
6197930c8f
commit
e932940df7
3 changed files with 15 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue