From 2653beec5cf223c5563d86dc31b24431626c9de2 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 8 Aug 2024 14:28:50 +0100 Subject: [PATCH] More tweaks --- content/data-lab/global-business-growth.md | 3 ++- hugo.toml | 2 ++ layouts/partials/chart.html | 10 ++++++---- layouts/partials/header.html | 23 +++++++++++++++------- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/content/data-lab/global-business-growth.md b/content/data-lab/global-business-growth.md index 125fb3a..67c9278 100644 --- a/content/data-lab/global-business-growth.md +++ b/content/data-lab/global-business-growth.md @@ -9,7 +9,8 @@ summary: "Growth of bitcoin businesses based on OSM data" The following table shows bitcoin business growth around the world for the selected period in the dropdown. The chart displays yearly cumulative number of bitcoin businesses for the countries selected in the table. Data is obtained from Openstreetmaps and is updated roughly every 2 hours. - +
+
Select growth period: {{< dropdown-filter id=cumulative_period_type select="365 day,28 day,7 day,1 day" >}} {{< chart src="/js/bitcoin-business-growth-chart.js" >}} {{< table src="/js/bitcoin-business-growth-table.js" >}} diff --git a/hugo.toml b/hugo.toml index 8e94ca5..8930644 100644 --- a/hugo.toml +++ b/hugo.toml @@ -19,3 +19,5 @@ title = 'baseddata.io' ordered = false startLevel = 2 +[markup.goldmark.renderer] + unsafe = true diff --git a/layouts/partials/chart.html b/layouts/partials/chart.html index 7abab44..1655e08 100644 --- a/layouts/partials/chart.html +++ b/layouts/partials/chart.html @@ -1,6 +1,8 @@ -
- - -
+
+
+ + +
+
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8bc918c..f18aee9 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -5,18 +5,27 @@