Use eleventy's url function to apply pathPrefix.
All checks were successful
Build Eleventy Forgero / build (24.x) (push) Successful in 37s
All checks were successful
Build Eleventy Forgero / build (24.x) (push) Successful in 37s
This commit is contained in:
parent
ec25c348e8
commit
6b8635defe
11 changed files with 172 additions and 102 deletions
|
|
@ -40,9 +40,10 @@ module.exports = function(eleventyConfig) {
|
|||
}))
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("absoluteUrl", function(path) {
|
||||
eleventyConfig.addFilter("absoluteUrl", function(url) {
|
||||
const base = "https://adrianvic.github.io";
|
||||
return base + path;
|
||||
const prefix = "/tenkuma/web";
|
||||
return base + prefix + url;
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter("postDate", (dateObj) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue