mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
build demo
This commit is contained in:
1
_config-demo.yml
Normal file
1
_config-demo.yml
Normal file
@@ -0,0 +1 @@
|
||||
analytics: true
|
||||
@@ -7,11 +7,13 @@
|
||||
"start": "npm-run-all clean css-main js-compile-standalone --parallel browsersync watch",
|
||||
"start-incremental": "npm-run-all clean css-main js-compile-standalone --parallel browsersync watch-incremental",
|
||||
"build": "BUNDLE=true npm-run-all clean-build html-build css-build js-compile-bundle js-libs-bundle images-copy-build assets-copy-build",
|
||||
"build-demo": "BUNDLE=true npm-run-all clean-build html-build-demo css-build js-compile-bundle js-libs-bundle images-copy-build assets-copy-build",
|
||||
"bundlesize": "bundlesize",
|
||||
"browsersync": "node build/browsersync.js",
|
||||
"images-copy-build": "cp -R img/* dist/img/",
|
||||
"assets-copy-build": "mkdir -p demo/dist && cp -R dist/* demo/dist/ && mkdir -p demo/static && cp -R static/* demo/static/",
|
||||
"html-build": "JEKYLL_ENV=production bundle exec jekyll build --destination demo",
|
||||
"html-build-demo": "JEKYLL_ENV=production bundle exec jekyll build --destination demo --config _config.yml,_config-demo.yml",
|
||||
"lint": "npm-run-all --parallel js-lint css-lint",
|
||||
"clean": "rm -rf tmp-dist && mkdir tmp-dist && mkdir tmp-dist/css && mkdir tmp-dist/js",
|
||||
"clean-build": "rm -rf dist && mkdir dist && mkdir dist/css && mkdir dist/js && mkdir dist/img",
|
||||
|
||||
8
pages/_includes/layout/analytics.html
Normal file
8
pages/_includes/layout/analytics.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-113467793-4"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-113467793-4');
|
||||
</script>
|
||||
@@ -23,6 +23,9 @@
|
||||
<link rel="icon" href="{{ site.base }}/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="shortcut icon" href="{{ site.base }}/favicon.ico" type="image/x-icon"/>
|
||||
|
||||
{% if site.analytics %}
|
||||
{% include layout/analytics.html %}
|
||||
{% endif %}
|
||||
|
||||
{% if page.description %}
|
||||
<meta name="description" content="{{ page.description | escape }}"/>
|
||||
|
||||
Reference in New Issue
Block a user