luizdepra / hugo-coder

A minimalist blog theme for hugo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add an option to disable JavaScript

Igetin opened this issue · comments

commented

Describe the enhancement

There should be a configuration option to disable JavaScript altogether. When the value of this setting is true, no <script> tags or <link> tags pointing to JS resources should be included on any page. This should also imply disabling any of the theme features that depend on JavaScript (like the light/dark toggle button).

Currently one needs to override the baseof.html template in order to remove coder.js from the pages.