This commit is contained in:
Oscar 2019-11-17 22:30:46 +01:00
parent e0eca4c9fe
commit 3cfa04d36e

View File

@ -9,7 +9,7 @@ module.exports = function (config) {
const existingDefinition = findExistingDefinition(word, collection) const existingDefinition = findExistingDefinition(word, collection)
if (existingDefinition) { if (existingDefinition) {
return `<a href=${makeItemLink(existingDefinition.data.slug)}>${word}</a>` return `<a href="${makeItemLink(existingDefinition.data.slug)}">${word}</a>`
} }
return word return word
@ -19,7 +19,7 @@ module.exports = function (config) {
const existingDefinition = findExistingDefinition(subTermData.full_title, collection) const existingDefinition = findExistingDefinition(subTermData.full_title, collection)
if (existingDefinition) { if (existingDefinition) {
return `<a href=${makeItemLink(existingDefinition.data.slug)} aria-label="${subTermData.full_title}">${subTermData.text}</a>` return `<a href="${makeItemLink(existingDefinition.data.slug)}" aria-label="${subTermData.full_title}">${subTermData.text}</a>`
} }
return subTermData.text return subTermData.text
@ -32,7 +32,7 @@ module.exports = function (config) {
config.addPassthroughCopy({'_site/css/': 'assets/css/'}) config.addPassthroughCopy({'_site/css/': 'assets/css/'})
config.addShortcode("definitionFlag", (flag) => { config.addShortcode('definitionFlag', (flag) => {
const cleanText = new Map([ const cleanText = new Map([
['avoid', { ['avoid', {
class: 'avoid', class: 'avoid',