plainwhite-jekyll icon indicating copy to clipboard operation
plainwhite-jekyll copied to clipboard

Custom scripts in head section

Open mikasjp opened this issue 5 years ago • 4 comments

Users should be able to include their own JS and CSS scripts in the head section.

mikasjp avatar Apr 30 '20 21:04 mikasjp

I don't see the point of this. If you want to include your own JS, CSS just add them to your fork. What do you suggest?

samarsault avatar May 15 '20 07:05 samarsault

Imagine this situation. For example, the user wants to install the Hotjar service on their website. To achieve this, he must embed an external JS script in the head section. This is currently not possible. Some services also require CSS scripts.

mikasjp avatar May 15 '20 07:05 mikasjp

Imagine this situation. For example, the user wants to install the Hotjar service on their website. To achieve this, he must embed an external JS script in the head section. This is currently not possible. Some services also require CSS scripts.

You can always fork this repo and make changes to head.html partial anyway you like, then push to your own repo. After you push your source files, github will build the site with files you uploaded instead of default theme files.

DotIN13 avatar May 15 '20 07:05 DotIN13

Yes, I agree with @DotIN13. See this as an example.

samarsault avatar May 17 '20 08:05 samarsault