Skip to content

Commit

Permalink
rework layout to use structured tags (#191)
Browse files Browse the repository at this point in the history
* wip

* touchups
  • Loading branch information
StefanVukovic99 authored Jan 17, 2025
1 parent 1bff1a2 commit 20a5ad2
Show file tree
Hide file tree
Showing 34 changed files with 7,197 additions and 6,700 deletions.
10 changes: 5 additions & 5 deletions 3-tidy-up.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ function getGlossTree(sensesWithoutInflectionGlosses) {
curr = new Map();
temp.set(levelGloss, curr);
}
if (levelIndex === 0) {
const branch = /** @type {GlossBranch} */ (curr);
const filteredTags = curr.get('_tags') ? tags.filter(value => branch.get('_tags')?.includes(value)) : tags;
branch.set('_tags', filteredTags);
}

const branch = /** @type {GlossBranch} */ (curr);
const filteredTags = curr.get('_tags') ? tags.filter(value => branch.get('_tags')?.includes(value)) : tags;
branch.set('_tags', filteredTags);

if(levelIndex === glossesArray.length - 1) {
curr.set('_examples', examples);
}
Expand Down
Loading

0 comments on commit 20a5ad2

Please sign in to comment.