mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Move scripts to own file
This commit is contained in:
parent
134e115d9c
commit
78e54b375f
23
website/_includes/_scripts.jade
Normal file
23
website/_includes/_scripts.jade
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
//- 💫 INCLUDES > SCRIPTS
|
||||||
|
|
||||||
|
script(src="/assets/js/main.js?v#{V_JS}", type="text/javascript")
|
||||||
|
script(src="/assets/js/prism.js", type="text/javascript")
|
||||||
|
|
||||||
|
if SECTION == "docs"
|
||||||
|
script.
|
||||||
|
((window.gitter = {}).chat = {}).options = {
|
||||||
|
useStyles: false,
|
||||||
|
activationElement: '.js-gitter-button',
|
||||||
|
targetElement: '.js-gitter',
|
||||||
|
room: '!{SOCIAL.gitter}'
|
||||||
|
};
|
||||||
|
|
||||||
|
script(src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer)
|
||||||
|
|
||||||
|
if environment == "deploy"
|
||||||
|
script
|
||||||
|
| window.ga=window.ga||function(){
|
||||||
|
| (ga.q=ga.q||[]).push(arguments)}; ga.l=+new Date;
|
||||||
|
| ga('create', '#{ANALYTICS}', 'auto'); ga('send', 'pageview');
|
||||||
|
|
||||||
|
script(async src="https://www.google-analytics.com/analytics.js")
|
|
@ -52,13 +52,4 @@ html(lang="en")
|
||||||
main!=yield
|
main!=yield
|
||||||
include _includes/_footer
|
include _includes/_footer
|
||||||
|
|
||||||
script(src="/assets/js/main.js?v#{V_JS}", type="text/javascript")
|
include _includes/_scripts
|
||||||
script(src="/assets/js/prism.js", type="text/javascript")
|
|
||||||
|
|
||||||
if environment == "deploy"
|
|
||||||
script
|
|
||||||
| window.ga=window.ga||function(){
|
|
||||||
| (ga.q=ga.q||[]).push(arguments)}; ga.l=+new Date;
|
|
||||||
| ga('create', '#{ANALYTICS}', 'auto'); ga('send', 'pageview');
|
|
||||||
|
|
||||||
script(async src="https://www.google-analytics.com/analytics.js")
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user