Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more options to include script #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/templates/_head_includes.jade
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ if SITE.tokens.crisp_website_id

(function(){d=document;s=d.createElement("script");s.src="#{crisp_chatbox_url}";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();

each script_url in SITE.includes.scripts.urls
if script_url.url
script(src=script_url.url, defer=script_url.defer)
else
script(src="#{script_url}",defer)

each script_inline in SITE.includes.scripts.inline
script.
#{script_inline}

each script_url in SITE.includes.scripts.urls
script(
src="#{script_url}",
defer
)

each stylesheet_inline in SITE.includes.stylesheets.inline
style.
#{stylesheet_inline}
Expand Down