Skip to content

Commit 7c15657

Browse files
authored
Merge pull request #12 from photogabble/release/v1.0.4
Release 1.0.4
2 parents 2efc033 + 9daaeed commit 7c15657

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.0.4]
11+
12+
- Bugfix template `content` variable not being set when rendering embed (#10)
13+
- Bugfix incorrect alias lookup when only embedded as alias (#11)
14+
1015
## [1.0.3]
1116

1217
- Updated npm dependencies
@@ -29,3 +34,4 @@ First release
2934
[1.0.1]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.1
3035
[1.0.2]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.2
3136
[1.0.3]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.3
37+
[1.0.4]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.4

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = function (eleventyConfig, options = {}) {
4949
: `{% layout "${layout}" %} {% block content %} ${frontMatter.content} {% endblock %}`;
5050

5151
const fn = await rm.compile(tpl, language, {templateConfig, extensionMap});
52-
const result = await fn(data.data);
52+
const result = await fn({content: frontMatter.content, ...data.data});
5353

5454
compiledEmbeds.set(data.inputPath, result);
5555
}
@@ -144,7 +144,7 @@ module.exports = function (eleventyConfig, options = {}) {
144144
const found = (page.fileSlug === link.slug || (page.data.title && opts.slugifyFn(page.data.title) === link.slug));
145145
if (found) return true;
146146

147-
const aliases = (page.aliases ?? []).reduce(function(set, alias){
147+
const aliases = (page.data.aliases ?? []).reduce(function(set, alias){
148148
set.add(opts.slugifyFn(alias));
149149
return set;
150150
}, new Set());

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@photogabble/eleventy-plugin-interlinker",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Obsidian WikiLinks, BackLinks and Embed support for 11ty",
55
"keywords": [
66
"11ty",

0 commit comments

Comments
 (0)