Skip to content

Commit

Permalink
Fix homepage not being included
Browse files Browse the repository at this point in the history
  • Loading branch information
martimpassos committed Oct 8, 2024
1 parent 5957b84 commit 16b26d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tropiiify",
"productName": "tropiiify",
"version": "0.3.5-beta",
"version": "0.3.3",
"description": "A Tropy plugin for exporting IIIF collections",
"icon": "icon.svg",
"main": "index.js",
Expand Down
13 changes: 7 additions & 6 deletions src/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,13 @@ class Resource {
],
}, //Remove eventual leading whitespace
});
manifest.setHomepage({
id: this.homepageValue,
type: "Text",
label: { none: [this.options.homepageLabel] }, //Falls back to default
format: "text/html",
});
this.homepageId &&
manifest.setHomepage({
id: this.homepageId,
type: "Text",
label: { none: [this.options.homepageLabel] }, //Falls back to default
format: "text/html",
});
//props.latitude && props.longitude && manifest.addNavPlace(latitude, longitude)
manifest.addThumbnail({
id: `${this.baseId}/${this.photo[0].checksum}/full/${thumbWidth},${thumbHeight}/0/default.jpg`,
Expand Down

0 comments on commit 16b26d4

Please sign in to comment.