mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
Simplify scripts and add versioning variable to JS and CSS
This commit is contained in:
parent
2a3cc16b25
commit
ce3e72bee9
|
@ -37,10 +37,10 @@ html(lang="en")
|
||||||
link(rel="icon" type="image/x-icon" href="/assets/img/favicon.ico")
|
link(rel="icon" type="image/x-icon" href="/assets/img/favicon.ico")
|
||||||
|
|
||||||
if SUBSECTION == "usage"
|
if SUBSECTION == "usage"
|
||||||
link(href="/assets/css/style_red.css?v1" rel="stylesheet")
|
link(href="/assets/css/style_red.css?v#{V_CSS}" rel="stylesheet")
|
||||||
|
|
||||||
else
|
else
|
||||||
link(href="/assets/css/style.css?v1" rel="stylesheet")
|
link(href="/assets/css/style.css?v#{V_CSS}" rel="stylesheet")
|
||||||
|
|
||||||
body
|
body
|
||||||
include _includes/_navigation
|
include _includes/_navigation
|
||||||
|
@ -52,8 +52,8 @@ html(lang="en")
|
||||||
main!=yield
|
main!=yield
|
||||||
include _includes/_footer
|
include _includes/_footer
|
||||||
|
|
||||||
each script in SCRIPTS
|
script(src="/assets/js/main.js?v#{V_JS}", type="text/javascript")
|
||||||
script(src="/assets/js/" + script + ".js?v1", type="text/javascript")
|
script(src="/assets/js/prism.js", type="text/javascript")
|
||||||
|
|
||||||
if environment == "deploy"
|
if environment == "deploy"
|
||||||
script
|
script
|
||||||
|
|
Loading…
Reference in New Issue
Block a user