Skip to content

Commit

Permalink
Merge pull request #17 from ana-cozma/analytics
Browse files Browse the repository at this point in the history
Add analytics only for prod
  • Loading branch information
ana-cozma authored Aug 25, 2024
2 parents 8bc0bfb + e10c58f commit b6504ad
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
1 change: 0 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: Cloudy Caffeine with Ana
theme: blowfish
enableRobotsTXT: true
paginate: 10
googleAnalytics: G-PD4F67ZWJD
menu:
main:
- name: Home
Expand Down
67 changes: 67 additions & 0 deletions config/production/hugo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# -- Site Configuration --
# Refer to the theme docs for more details about each of these parameters.
# https://blowfish.page/docs/getting-started/

theme = "blowfish" # UNCOMMENT THIS LINE
# baseURL = "https://your_domain.com/"
defaultContentLanguage = "en"

# pluralizeListTitles = "true" # hugo function useful for non-english languages, find out more in https://gohugo.io/getting-started/configuration/#pluralizelisttitles

enableRobotsTXT = true
paginate = 10
summaryLength = 0

buildDrafts = false
buildFuture = false

enableEmoji = true

googleAnalytics = "G-PD4F67ZWJD"

[imaging]
anchor = 'Center'

[taxonomies]
tag = "tags"
category = "categories"
author = "authors"
series = "series"

[sitemap]
changefreq = 'daily'
filename = 'sitemap.xml'
priority = 0.5

[outputs]
home = ["HTML", "RSS", "JSON"]

[related]
threshold = 0
toLower = false

[[related.indices]]
name = "tags"
weight = 100

[[related.indices]]
name = "categories"
weight = 100

[[related.indices]]
name = "series"
weight = 50

[[related.indices]]
name = "authors"
weight = 20

[[related.indices]]
name = "date"
weight = 10

[[related.indices]]
applyFilter = false
name = 'fragmentrefs'
type = 'fragments'
weight = 10

0 comments on commit b6504ad

Please sign in to comment.