HUGO

Academic: add custom code when switching between light and dark

For example, I wanted to add one liner as follows:

window.REMARK42.changeTheme('light');

Is that possible without editing Academic’s own code?

Many thanks!

Hi there. I’m afraid I don’t have a solution. I saw your issue in GitHub too and just wanted to ask you how did you manage to integrate remark42 with Hugo Academic, as I don’t want to use Disqus but if possible would prefer a free solution.

Thanks in advance!

@alcarazr I have a blog post here if you are interested in integrating remark42 with Hugo site.

Hope it’s helpful!

Thanks @davxiao I’ll take a look :wink: