summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-10-10 16:05:26 +0300
committerYuval Adam <_@yuv.al>2017-10-10 16:05:26 +0300
commitf5738d71ef39eb665b51882eda5d4eb6739209cb (patch)
tree2e1314d9139b6cf0a219d93c5c4f1d2e4efc0276 /templates
parentf8da64516051c5607ad9d0dfe710c6870b142ee0 (diff)
Basic vue structure
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html36
1 files changed, 19 insertions, 17 deletions
diff --git a/templates/index.html b/templates/index.html
index 052b318..f197769 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,24 +1,26 @@
<!DOCTYPE html>
<html>
<head>
- <meta charset='utf-8' />
- <title>geshem.space</title>
- <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-71416554-1', 'auto');
- ga('send', 'pageview');
- </script>
+ <meta charset='utf-8' />
+ <title>geshem.space</title>
+ <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
+ {% if not debug %}
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+ ga('create', 'UA-71416554-1', 'auto');
+ ga('send', 'pageview');
+ </script>
+ {% endif %}
+ <script src="{{ url_for('static', filename='js/vue' + ('.min' if debug else '') + '.js') }}"></script>
</head>
<body>
- <div id='root'></div>
- <script>
- window.imgs = {{ imgs|safe }};
- </script>
- <script src='/static/js/bundle.js'></script>
+ <script>window.imgs = {{ imgs|safe }};</script>
+ <div id="app">
+ <root></root>
+ </div>
+ <script src="{{ url_for('static', filename='js/app.js') }}"></script>
</body>
</html>