-
I'm trying to implement the https://trilium.rocks theme.
I have the css part working but not the javascript parts. What is the "Embedded Javascript" referred to in the guide? I don't see this in any of the option pages for TriliumNext (v0.91.2-beta)
cc @zerebos |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Admittedly I've not been following TriliumNext development as close as I would have liked for a huge number of reasons honestly. But I can explain from my previous knowledge (this will be similar to what I posted in Discord). Embedded JavaScript is a templating language that Trilium (and TriliumNext) use for generating share pages. It was part of the code note types that had to be enabled in settings at least for Trilium not sure if that has been removed in TriliumNext. But there should be a list of code "languages" you can enable in settings to add to the code note dropdown. |
Beta Was this translation helpful? Give feedback.
-
For anyone coming across this thread later, start with https://github.com/perfectra1n/trilium.rocks/releases/tag/1.0.0 from @perfectra1n and you don't need to do the npm parts described in the guide, and will sidestep the mistake I made by not putting the page.ejs content in the right note. For the step Template Notes section, 'Embedded Javascript' is one of the file types listed under Options >> Code Notes. |
Beta Was this translation helpful? Give feedback.
-
Fwiw, I've got TR theme working on my site and have started down what will proabably be a long and winding path to adapting it to my tastes. Thanks @zerebos and @perfectra1n for getting me off the starting block! Current state with a wee bit of explanation at https://www.maphew.com/share/trilium-share-theme-customization |
Beta Was this translation helpful? Give feedback.
For anyone coming across this thread later, start with https://github.com/perfectra1n/trilium.rocks/releases/tag/1.0.0 from @perfectra1n and you don't need to do the npm parts described in the guide, and will sidestep the mistake I made by not putting the page.ejs content in the right note.
For the step Template Notes section, 'Embedded Javascript' is one of the file types listed under Options >> Code Notes.