mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
Add class for internal link
This commit is contained in:
parent
0a69c2ee81
commit
ebb4746426
@ -32,7 +32,7 @@ module.exports = function(eleventyConfig) {
|
|||||||
|
|
||||||
|
|
||||||
eleventyConfig.addFilter('link', function(str) {
|
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, {
|
eleventyConfig.addPlugin(eleventyPluginSyntaxHighlighter, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user