Skip to content

Commit 38f1359

Browse files
committed
netlify: Bump to Hugo 0.91.1
Also remove the usage of getenv in the example site.
1 parent a09822e commit 38f1359

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +0,0 @@
1-
{{ with getenv "ADD_GA" }}
2-
<script>
3-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7-
8-
ga('create', 'UA-52478213-11', 'auto');
9-
ga('send', 'pageview');
10-
11-
</script>
12-
{{ end }}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
{{ if getenv "REPOSITORY_URL" -}}
2-
<div style="margin-left: 20px; margin-top: 20px">
3-
<a href="https://www.netlify.com">
4-
<img src="https://www.netlify.com/img/global/badges/netlify-dark.svg"/>
5-
</a>
6-
</div>
7-
{{ end }}

netlify.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ publish = "exampleSite/public"
33
command = "hugo --gc -s exampleSite --minify"
44

55
[context.production.environment]
6-
HUGO_VERSION = "0.88.1"
6+
HUGO_VERSION = "0.91.1"
77

88
[context.deploy-preview]
99
command = "hugo -s exampleSite --minify -D -F -b $DEPLOY_PRIME_URL"
1010

1111
[context.deploy-preview.environment]
12-
HUGO_VERSION = "0.88.1"
12+
HUGO_VERSION = "0.91.1"
1313

1414
[context.branch-deploy]
1515
command = "hugo -s exampleSite --minify --gc -b $DEPLOY_PRIME_URL"
1616

1717
[context.branch-deploy.environment]
18-
HUGO_VERSION = "0.88.1"
18+
HUGO_VERSION = "0.91.1"
1919

2020

0 commit comments

Comments
 (0)