From ce3e72bee9920b533fef383c9100d9514c0a442a Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Tue, 1 Nov 2016 02:12:58 +0100 Subject: [PATCH] Simplify scripts and add versioning variable to JS and CSS --- website/_layout.jade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/website/_layout.jade b/website/_layout.jade index a515d2287..b04c4b5f3 100644 --- a/website/_layout.jade +++ b/website/_layout.jade @@ -37,10 +37,10 @@ html(lang="en") link(rel="icon" type="image/x-icon" href="/assets/img/favicon.ico") 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 - link(href="/assets/css/style.css?v1" rel="stylesheet") + link(href="/assets/css/style.css?v#{V_CSS}" rel="stylesheet") body include _includes/_navigation @@ -52,8 +52,8 @@ html(lang="en") main!=yield include _includes/_footer - each script in SCRIPTS - script(src="/assets/js/" + script + ".js?v1", type="text/javascript") + script(src="/assets/js/main.js?v#{V_JS}", type="text/javascript") + script(src="/assets/js/prism.js", type="text/javascript") if environment == "deploy" script