mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-22 17:30:00 +00:00
💅
This commit is contained in:
parent
e0eca4c9fe
commit
3cfa04d36e
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user