linkear bien a la carpeta
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
a6db520c17
commit
eabab27df5
1 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,8 @@ const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
|
|||
const automaticNoopener = require("eleventy-plugin-automatic-noopener");
|
||||
const markdownItWikilinks = require("markdown-it-wikilinks")({
|
||||
uriSuffix: "",
|
||||
postProcessPagePath: (path) => path + "/",
|
||||
generatePagePathFromLabel: (label) => `${label}/`,
|
||||
postProcessPagePath: (path) => path,
|
||||
postProcessLabel: (path) => basename(path).match(/^(?:(?:\d{4})-(?:\d{2})-(?:\d{2})-)?(.+)$/)[1],
|
||||
relativeBaseURL: "../",
|
||||
});
|
||||
|
@ -35,7 +36,7 @@ module.exports = function config(eleventyConfig) {
|
|||
|
||||
eleventyConfig.addShortcode(
|
||||
"dateToISO",
|
||||
/** @param {Date} date */ (date) => date.toISOString().slice(0, 10)
|
||||
/** @param {Date} date */ (date) => date.toISOString().slice(0, 10),
|
||||
);
|
||||
eleventyConfig.addShortcode("formatDate", formatDate);
|
||||
eleventyConfig.addShortcode("relativeLink", (link, baseUrl) => new URL(link, baseUrl).toString());
|
||||
|
|
Reference in a new issue