japanese sentences: don't show certain tags
This commit is contained in:
parent
3209612ec3
commit
b6495e3daa
|
@ -94,11 +94,12 @@ Thu Oct 20 02:37:35 PM UTC 2022
|
||||||
const header = document.querySelector("header");
|
const header = document.querySelector("header");
|
||||||
if (!header) return;
|
if (!header) return;
|
||||||
const split = `{{Focus}} {{Tags}}`.split(" ");
|
const split = `{{Focus}} {{Tags}}`.split(" ");
|
||||||
|
const dont_show = ['imageonfront', 'tolearn', 'marked', ];
|
||||||
|
|
||||||
header.innerHTML = "";
|
header.innerHTML = "";
|
||||||
|
|
||||||
for (const tag of split) {
|
for (const tag of split) {
|
||||||
if (tag.length < 1) continue;
|
if (tag.length < 1 || dont_show.includes(tag)) continue;
|
||||||
const tag_elem = document.createElement("div");
|
const tag_elem = document.createElement("div");
|
||||||
tag_elem.className = "tags";
|
tag_elem.className = "tags";
|
||||||
tag_elem.innerText = tag;
|
tag_elem.innerText = tag;
|
||||||
|
|
Loading…
Reference in a new issue