Skip to content

Commit 28cc755

Browse files
committed
update min hugo requirement and partials
1 parent be1beeb commit 28cc755

File tree

5 files changed

+61
-37
lines changed

5 files changed

+61
-37
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88

99
To run this website locally, you will need to have the following software installed on your computer:
1010

11-
- [Hugo](https://gohugo.io/getting-started/installing/)
11+
- If you're using MacOS and [Homebrew](https://brew.sh/), you can install Hugo using the following command:
1212

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+
```
1416

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.
1819
1920
### Running the website locally
2021

config.toml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@ enableRobotsTXT = false
66
[module]
77
[module.hugoVersion]
88
extended = true
9-
min = "0.55.0"
9+
min = "0.139.5"
1010

1111
[sitemap]
12-
changefreq = 'daily'
13-
filename = 'sitemap.xml'
12+
changefreq = "daily"
13+
filename = "sitemap.xml"
1414
priority = 0.5
1515

1616
[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.
1820
google_analytics_id = "G-LWW22W6FQM"
1921
google_tag_manager_id = "GT-WBLRZ4P"
2022

2123
[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
2325
show_contact_button = false
2426
show_services_button = false # show / hide the "view all services" button
2527

@@ -28,11 +30,11 @@ enableRobotsTXT = false
2830
mobile_height = "32px"
2931
desktop = "images/logo/infraspec-logo.svg"
3032
desktop_height = "28px"
31-
alt = "Infraspec - Cloud Native Infrastructure Simplified"
33+
alt = "Infraspec - Your Infrastructure and Reliability partner"
3234

3335
[params.fonts]
34-
# sets the google font link in layouts/partials/google-fonts.html
35-
google_fonts = 'https://fonts.googleapis.com/css2?family=Outfit:wght@400&family=Titillium+Web:wght@400;700&display=swap'
36+
# Sets the google font link in layouts/partials/google-fonts.html
37+
google_fonts = "https://fonts.googleapis.com/css2?family=Outfit:wght@400&family=Titillium+Web:wght@400;700&display=swap"
3638
heading = "Outfit"
3739
base = "Noto Sans"
3840

@@ -51,13 +53,13 @@ enableRobotsTXT = false
5153
meta_keywords = "Cloud native infrastructure, SRE consulting, Kubernetes consulting, Microservices, DevOps, Infrastructure as code, Cloud migration, Technology consulting in Bengaluru, infraspec, infraspec dev, Infraspec Bengaluru, Infraspec Consulting Company"
5254

5355
[params.services]
54-
summary_truncate = 120 # How many characters to include in the summary of the team bios (large layout) before truncating
56+
summary_truncate = 120 # How many characters to include in the summary of the service descriptions before truncating
5557

5658
[params.team]
57-
summary_large_truncate = 120 # How many characters to include in the summary of the team bios (large layout) before truncating
59+
summary_large_truncate = 120 # How many characters to include in the summary of the team bios before truncating
5860

5961
[params.footer]
60-
copyright_text = '© 2025 Infraspec - Delivering high impact transformational work'
62+
copyright_text = "© 2025 Infraspec - Your Infrastructure and Reliability partner"
6163

6264
[menu]
6365
# Main Menu
@@ -66,6 +68,7 @@ enableRobotsTXT = false
6668
url = "/blog/"
6769
weight = 1
6870
paginate = 6
71+
6972
[[menu.main]]
7073
name = "Team"
7174
url = "/team/"
Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
{{- if and (not .Site.IsServer) hugo.IsProduction -}}
2-
{{ with getenv "HUGO_GOOGLE_ANALYTICS_ID" | default .Site.Params.google_analytics_id }}
1+
{{- if hugo.IsProduction -}} {{ with getenv "HUGO_GOOGLE_ANALYTICS_ID" | default .Site.Params.google_analytics_id }}
32
<!-- Global site tag (gtag.js) - Google Analytics -->
4-
<script async src="https://www.googletagmanager.com/gtag/js?id={{- . -}}"></script>
3+
<script
4+
async
5+
src="https://www.googletagmanager.com/gtag/js?id={{- . -}}"
6+
></script>
57
<script>
6-
window.dataLayer = window.dataLayer || [];
8+
window.dataLayer = window.dataLayer || [];
79

8-
function gtag() {
9-
dataLayer.push(arguments);
10-
}
11-
gtag('js', new Date());
12-
gtag('config', '{{ . }}');
10+
function gtag() {
11+
dataLayer.push(arguments);
12+
}
13+
gtag("js", new Date());
14+
gtag("config", "{{ . }}");
1315
</script>
14-
{{ end }}
15-
{{ end }}
16+
{{ end }} {{ end }}
Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
{{- 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><iframe src="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
2+
"HUGO_GTM_ID" | default .Site.Params.google_tag_manager_id }}
3+
<!-- Google Tag Manager (noscript) -->
4+
<noscript
5+
><iframe
6+
src="https://www.googletagmanager.com/ns.html?id={{ . }}"
7+
height="0"
8+
width="0"
9+
style="display: none; visibility: hidden"
10+
></iframe
11+
></noscript>
12+
<!-- End Google Tag Manager (noscript) -->
13+
{{ end }} {{ end }}
Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
{{- 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': new Date().getTime(),event:'gtm.js'});var f=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 }}
2+
<!-- Google Tag Manager -->
3+
<script>
4+
(function (w, d, s, l, i) {
5+
w[l] = w[l] || [];
6+
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
7+
var f = d.getElementsByTagName(s)[0],
8+
j = d.createElement(s),
9+
dl = l != "dataLayer" ? "&l=" + l : "";
10+
j.async = true;
11+
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
12+
f.parentNode.insertBefore(j, f);
13+
})(window, document, "script", "dataLayer", "{{ . }}");
14+
</script>
15+
<!-- End Google Tag Manager -->
16+
{{ end }} {{ end }}

0 commit comments

Comments
 (0)