Add class for internal link

This commit is contained in:
Ole Eskild Steensen 2022-02-23 16:14:38 +01:00
parent 0a69c2ee81
commit ebb4746426

View File

@ -32,7 +32,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addFilter('link', function(str) {
return str && str.replace(/\[\[(.*?)\]\]/g, '<a href="/notes/$1">$1</a>');
return str && str.replace(/\[\[(.*?)\]\]/g, '<a class="internal-link" href="/notes/$1">$1</a>');
})
eleventyConfig.addPlugin(eleventyPluginSyntaxHighlighter, {