Commit 67ac20f5 authored by Rieks Joosten's avatar Rieks Joosten

Merge branch 'TEv1-glossary-enhancements' of...

Merge branch 'TEv1-glossary-enhancements' of https://gitlab.grnet.gr/essif-lab/framework into TEv1-glossary-enhancements
parents e7395c57 bfa2621e
Pipeline #17200 passed with stage
in 2 minutes and 17 seconds
......@@ -122,7 +122,7 @@ async function getGlossaryTerms(files) {
//gather all metadata
let { metadata } = parseMD(content)
//keep only the required keys
if (metadata.title) {
if (metadata.title && (metadata.type == "concept" || metadata.type == "term")) {
let glossaryContent = metadata.glossaryText;
if (glossaryContent) {
......@@ -163,6 +163,8 @@ async function getGlossaryTerms(files) {
glossaryText: glossaryContent,
filepath: filepath.slice(1,-3),
});
} else {
console.log(metadata.type);
}
}
return arr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment