Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/VVelox/hugo-dusky-neon-potato.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZane C. Bowers-Hadley <vvelox@vvelox.net>2019-01-22 12:21:19 +0300
committerZane C. Bowers-Hadley <vvelox@vvelox.net>2019-01-22 12:21:19 +0300
commitca2903a6b982db4af851fc88093267cf45a9d21e (patch)
treeed4b25d7e0960987c749c228ad3924b6649e00b3
parent18b37e990d6c91979fa940586af7d003287dc536 (diff)
add complex chart generation
-rw-r--r--layouts/shortcodes/chart-complex-start.html3
-rw-r--r--layouts/shortcodes/chart-complex-stop.html2
2 files changed, 5 insertions, 0 deletions
diff --git a/layouts/shortcodes/chart-complex-start.html b/layouts/shortcodes/chart-complex-start.html
new file mode 100644
index 0000000..e38793d
--- /dev/null
+++ b/layouts/shortcodes/chart-complex-start.html
@@ -0,0 +1,3 @@
+<script>
+var chart = c3.generate({
+ bindto: '#{{ .Get "chart" }}',
diff --git a/layouts/shortcodes/chart-complex-stop.html b/layouts/shortcodes/chart-complex-stop.html
new file mode 100644
index 0000000..5b1a705
--- /dev/null
+++ b/layouts/shortcodes/chart-complex-stop.html
@@ -0,0 +1,2 @@
+});
+</script>