Skip to content

Commit

Permalink
Merge pull request #12 from photogabble/release/v1.0.4
Browse files Browse the repository at this point in the history
Release 1.0.4
  • Loading branch information
carbontwelve authored Jan 13, 2024
2 parents 2efc033 + 9daaeed commit 7c15657
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.4]

- Bugfix template `content` variable not being set when rendering embed (#10)
- Bugfix incorrect alias lookup when only embedded as alias (#11)

## [1.0.3]

- Updated npm dependencies
Expand All @@ -29,3 +34,4 @@ First release
[1.0.1]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.1
[1.0.2]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.2
[1.0.3]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.3
[1.0.4]: https://github.com/photogabble/eleventy-plugin-font-subsetting/releases/tag/v1.0.4
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = function (eleventyConfig, options = {}) {
: `{% layout "${layout}" %} {% block content %} ${frontMatter.content} {% endblock %}`;

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

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

const aliases = (page.aliases ?? []).reduce(function(set, alias){
const aliases = (page.data.aliases ?? []).reduce(function(set, alias){
set.add(opts.slugifyFn(alias));
return set;
}, new Set());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@photogabble/eleventy-plugin-interlinker",
"version": "1.0.3",
"version": "1.0.4",
"description": "Obsidian WikiLinks, BackLinks and Embed support for 11ty",
"keywords": [
"11ty",
Expand Down

0 comments on commit 7c15657

Please sign in to comment.