Skip to content

Commit

Permalink
netlify: Bump to Hugo 0.91.1
Browse files Browse the repository at this point in the history
Also remove the usage of getenv in the example site.
  • Loading branch information
bep committed Dec 23, 2021
1 parent a09822e commit 38f1359
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 22 deletions.
12 changes: 0 additions & 12 deletions exampleSite/layouts/partials/hook_head_end.html
Original file line number Diff line number Diff line change
@@ -1,12 +0,0 @@
{{ with getenv "ADD_GA" }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-52478213-11', 'auto');
ga('send', 'pageview');

</script>
{{ end }}
7 changes: 0 additions & 7 deletions exampleSite/layouts/partials/hook_left_sidebar_end.html
Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
{{ if getenv "REPOSITORY_URL" -}}
<div style="margin-left: 20px; margin-top: 20px">
<a href="https://www.netlify.com">
<img src="https://www.netlify.com/img/global/badges/netlify-dark.svg"/>
</a>
</div>
{{ end }}
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ publish = "exampleSite/public"
command = "hugo --gc -s exampleSite --minify"

[context.production.environment]
HUGO_VERSION = "0.88.1"
HUGO_VERSION = "0.91.1"

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

[context.deploy-preview.environment]
HUGO_VERSION = "0.88.1"
HUGO_VERSION = "0.91.1"

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

[context.branch-deploy.environment]
HUGO_VERSION = "0.88.1"
HUGO_VERSION = "0.91.1"


0 comments on commit 38f1359

Please sign in to comment.