You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
Netlify authentication for their CMS requires a JS script loaded in <head> of homepage. add-on.js gets loaded in footer, so currently need to override header partial, which may cause downstream problems later.
Solution
Add distinct options for <head> and <body> js files in config.toml.
Alternatives
Could also have a headless CMS provider in config.toml, with several popular options to automatically set up.
Additional comments
I have realised that Netlify itself offers snippet injections, which could solve for this specific use case. Might still be a useful feature in general, so postprocessing or layout tampering isn't needed.
Also, I really like this theme, thank you for your work on it.
Edit: factual corrections, additional comments
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem?
Netlify authentication for their CMS requires a JS script loaded in
<head>
of homepage.add-on.js
gets loaded in footer, so currently need to override header partial, which may cause downstream problems later.Solution
Add distinct options for
<head>
and<body>
js files inconfig.toml
.Alternatives
Could also have a headless CMS provider in
config.toml
, with several popular options to automatically set up.Additional comments
I have realised that Netlify itself offers snippet injections, which could solve for this specific use case. Might still be a useful feature in general, so postprocessing or layout tampering isn't needed.
Also, I really like this theme, thank you for your work on it.
Edit: factual corrections, additional comments
The text was updated successfully, but these errors were encountered: