-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch to
@11ty/eleventy-plugin-rss
, bump `eleventy-plugin-ve…
…nto` and `@11ty/eleventy` (#260)
- Loading branch information
Showing
12 changed files
with
157 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import site from '../site.config.js'; | ||
|
||
export default (path, base) => { | ||
export function toAbsoluteUrl(path, base) { | ||
if (!base) base = new URL(site.url); | ||
return new URL(path, base).href; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
diff --git a/esm/src/errors.js b/esm/src/errors.js | ||
index 15ebe973ec2f98600798968cb4f782fa9d7aae02..34610c230a9011c5217b067e1c499f1eec1574a8 100644 | ||
--- a/esm/src/errors.js | ||
+++ b/esm/src/errors.js | ||
@@ -11,6 +11,9 @@ export class TemplateError extends VentoBaseError { | ||
this.path = path; | ||
this.source = source; | ||
this.position = position; | ||
+ if (cause) { | ||
+ this.message += `(via ${cause.name})\n`; | ||
+ } | ||
} | ||
} | ||
export class TransformError extends VentoBaseError { |
Oops, something went wrong.