diff --git a/config.toml b/config.toml index db74c74b..ce6efc25 100644 --- a/config.toml +++ b/config.toml @@ -88,6 +88,7 @@ disableHugoGeneratorInject = false # Default theme "light" or "dark" defaultTheme = "dark" themeColor = "#252627" + homegrownAnalytics = "https://functions.duncanmackenzie.net/api/event?code=Z2iNU1ncqSCA9CMwMSVhgQfcQAOuqwtyDkpKKfeqqB0oAzFudj2C3g%3D%3D" [params.logo] diff --git a/themes/hello-friend-ng/assets/scss/galleries/_styles.scss b/themes/hello-friend-ng/assets/scss/galleries/_styles.scss index 6a5051a3..bc69c7f3 100644 --- a/themes/hello-friend-ng/assets/scss/galleries/_styles.scss +++ b/themes/hello-friend-ng/assets/scss/galleries/_styles.scss @@ -243,10 +243,19 @@ section.featured .card { } } + body.showBuyButtons .gallery-item span.clickToBuy { display: inline; } +body.noJS .gallery-item span.clickToBuy { + display: none; +} + +body.noJS div.availableForPurchase { + display: none; +} + div.availableForPurchase { font-size: small; font-style: italic; diff --git a/themes/hello-friend-ng/layouts/partials/homegrown-analytics.html b/themes/hello-friend-ng/layouts/partials/homegrown-analytics.html new file mode 100644 index 00000000..0934db41 --- /dev/null +++ b/themes/hello-friend-ng/layouts/partials/homegrown-analytics.html @@ -0,0 +1,17 @@ +{{- $rootPath := .Site.Params.homegrownAnalytics }} + +