Skip to content

Commit

Permalink
fixup! Add ability to filter by tags in kiwix serve
Browse files Browse the repository at this point in the history
  • Loading branch information
juuz0 committed Jun 25, 2022
1 parent b0e8f18 commit ca23b02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions static/skin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@
const langCode = getInnerHtml(book, 'language');
const language = languages[langCode];
const tags = getInnerHtml(book, 'tags');
const tagList = tags.split(';').filter(tag => {return !(tag.split(':')[0].startsWith('_'))})
.map((tag) => {return tag.charAt(0).toUpperCase() + tag.slice(1)});
const tagList = tags.split(';').filter(tag => {return !(tag.startsWith('_'))});
const tagFilterLinks = tagList.map((tagValue) => generateTagLink(tagValue));
const tagHtml = tagFilterLinks.join(' | ');
let downloadLink;
Expand Down

0 comments on commit ca23b02

Please sign in to comment.