Skip to content

Commit 52f0d21

Browse files
committed
add netlify config
1 parent e92ced2 commit 52f0d21

File tree

5 files changed

+35
-18
lines changed

5 files changed

+35
-18
lines changed

config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ enableRobotsTXT = false
4949
meta_twitter_site = "@infraspec_dev"
5050
meta_twitter_creator = "@infraspec_dev"
5151
meta_og_image = ""
52-
meta_description = "Infraspec is an engineering consulting company that provides expertise in distributed systems, infrastructure automation, SRE, platform engineering, and DevOps."
53-
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"
52+
meta_description = "Infraspec is an engineering consulting company that provides expertise in AI product engineering, Platform Engineering, Product Engineering, SRE Enablement and DevOps."
53+
meta_keywords = "Cloud native infrastructure, SRE consulting, Kubernetes consulting, AI Engineering, Platform Engineering, Product Engineering, SRE Enablement, DevOps, Infrastructure as code, Cloud migration, Technology consulting in Bengaluru, infraspec, infraspec dev, Infraspec Bengaluru, Infraspec Consulting Company"
5454

5555
[params.services]
5656
summary_truncate = 120 # How many characters to include in the summary of the service descriptions before truncating

data/features.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
},
77
{
88
"title": "Infrastructure Platform Engineering",
9-
"description": "Build incremental internal platforms that align your product teams",
9+
"description": "Build incremental internal platforms that align with your product teams",
1010
"image": "images/features/infrastructure-platform.svg"
1111
},
1212
{
13-
"title": "Backend Engineering",
14-
"description": "Build scalable and distributed backend systems.",
15-
"image": "images/features/backend-engineering.svg"
13+
"title": "Product Engineering",
14+
"description": "Build scalable, reliable and extensible products",
15+
"image": "images/features/product-engineering.svg"
1616
},
1717
{
1818
"title": "SRE Enablement",
@@ -21,7 +21,7 @@
2121
},
2222
{
2323
"title": "Modernize with Re-architecture",
24-
"description": "Re-architect your existing products to be more extensible and maintainable.",
24+
"description": "Re-architect your existing products to be more extensible and maintainable. ",
2525
"image": "images/features/rearchitecture.svg"
2626
},
2727
{

layouts/404.html

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1" />
99

1010
<!-- CSS-->
11-
{{ if .hugo.IsServer }} {{ $style := resources.Get "scss/style.scss" |
12-
resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath"
13-
"css/style.css" "enableSourceMap" true) }}
14-
<link rel="stylesheet" href="{{ ($style).RelPermalink }}" />
15-
{{ else }} {{ $style := resources.Get "scss/style.scss" |
16-
resources.ExecuteAsTemplate "style.scss" . | toCSS (dict "targetPath"
17-
"css/style.css" "enableSourceMap" false) }}
18-
<link
19-
rel="stylesheet"
20-
href="{{ ($style | minify | fingerprint).RelPermalink }}"
21-
/>
11+
{{ $css := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "style.scss" . }}
12+
{{ if eq hugo.Environment "development" }}
13+
{{ $options := (dict "targetPath" "css/style.css" "enableSourceMap" true) }}
14+
{{ $style := $css | toCSS $options }}
15+
<link rel="stylesheet" href="{{ ($style).RelPermalink }}" />
16+
{{ else }}
17+
{{ $options := (dict "targetPath" "css/style.css" "enableSourceMap" false) }}
18+
{{ $style := $css | toCSS $options }}
19+
<link rel="stylesheet" href="{{ ($style | minify | fingerprint).RelPermalink }}" />
2220
{{ end }}
2321
</head>
2422

netlify.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[build]
2+
publish = "public"
3+
command = "hugo --gc --minify"
4+
5+
[build.environment]
6+
HUGO_VERSION = "0.139.5"
7+
HUGO_ENV = "production"
8+
HUGO_ENABLEGITINFO = "true"
9+
10+
[context.deploy-preview]
11+
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
12+
13+
[context.branch-deploy]
14+
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
15+
16+
[[redirects]]
17+
from = "/*"
18+
to = "/404.html"
19+
status = 404

0 commit comments

Comments
 (0)