You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-If you're using MacOS and [Homebrew](https://brew.sh/), you can install Hugo using the following command:
12
12
13
-
If you're using MacOS and [Homebrew](https://brew.sh/), you can install Hugo using the following command:
13
+
```bash
14
+
brew install hugo
15
+
```
14
16
15
-
```bash
16
-
brew install hugo
17
-
```
17
+
- If you're using a different operating system, you can find the installation instructions on the [Hugo website](https://gohugo.io/getting-started/installing/).
18
+
- The minimum version of Hugo required is available in [config.toml](config.toml) under `[module.hugoVersion]` key.
Copy file name to clipboardExpand all lines: config.toml
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -6,20 +6,22 @@ enableRobotsTXT = false
6
6
[module]
7
7
[module.hugoVersion]
8
8
extended = true
9
-
min = "0.55.0"
9
+
min = "0.139.5"
10
10
11
11
[sitemap]
12
-
changefreq = 'daily'
13
-
filename = 'sitemap.xml'
12
+
changefreq = "daily"
13
+
filename = "sitemap.xml"
14
14
priority = 0.5
15
15
16
16
[params]
17
-
# In most cases you will only want to set the google_analytics_id OR the google_tag_manager_id. If you have Google Analytics included in your GTM tags don't put your GA ID here. Otherwise your data might be useless.
17
+
# In most cases you will only want to set the google_analytics_id OR the google_tag_manager_id.
18
+
# If you have Google Analytics included in your GTM tags don't put your GA ID here.
19
+
# Otherwise your data might be useless.
18
20
google_analytics_id = "G-LWW22W6FQM"
19
21
google_tag_manager_id = "GT-WBLRZ4P"
20
22
21
23
[params.homepage]
22
-
show_contact_box = true# show / hide the contaxt box on the homepage
24
+
show_contact_box = true# show / hide the contact box on the homepage
23
25
show_contact_button = false
24
26
show_services_button = false# show / hide the "view all services" button
25
27
@@ -28,11 +30,11 @@ enableRobotsTXT = false
28
30
mobile_height = "32px"
29
31
desktop = "images/logo/infraspec-logo.svg"
30
32
desktop_height = "28px"
31
-
alt = "Infraspec - Cloud Native Infrastructure Simplified"
33
+
alt = "Infraspec - Your Infrastructure and Reliability partner"
32
34
33
35
[params.fonts]
34
-
#sets the google font link in layouts/partials/google-fonts.html
{{- if and (not .Site.IsServer) hugo.IsProduction -}}
2
-
{{ with getenv "HUGO_GTM_ID" | default .Site.Params.google_tag_manager_id }}
3
-
<!-- Google Tag Manager (noscript) --><noscript><iframesrc="https://www.googletagmanager.com/ns.html?id={{ . }}" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><!-- End Google Tag Manager (noscript) -->
4
-
{{ end }}
5
-
{{ end }}
1
+
{{- if and (not .hugo.IsServer) hugo.IsProduction -}} {{ with getenv
{{- if and (not .Site.IsServer) hugo.IsProduction -}}
2
-
{{ with getenv "HUGO_GTM_ID" | default .Site.Params.google_tag_manager_id }}
3
-
<!-- Google Tag Manager --><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','{{ . }}');</script><!-- End Google Tag Manager -->
4
-
{{ end }}
5
-
{{ end }}
1
+
{{- if hugo.IsProduction -}} {{ with getenv "HUGO_GTM_ID" | default .Site.Params.google_tag_manager_id }}
0 commit comments