Skip to content

Commit

Permalink
Fix Hugo Deprecated Feature
Browse files Browse the repository at this point in the history
Recent version of Hugo deprecated some old features so updating syntax to be ready to switch to newer version.
  • Loading branch information
coliff committed Feb 21, 2024
1 parent 160cc32 commit d3ae33b
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 27 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@
"Rumbridge",
"safelist",
"Salai",
"SAMEORIGIN",
"sandboxing",
"Sanyo",
"sbyte",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/azure-static-web-apps-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.119.0"
hugo-version: "0.122.0"
extended: true

- run: npm i
Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/analytics.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if not .Site.IsServer -}}
<script async src="https://www.googletagmanager.com/gtag/js?id={{ .Site.GoogleAnalytics }}" fetchpriority="low"></script>
{{- if not hugo.IsServer -}}
<script async src="https://www.googletagmanager.com/gtag/js?id={{- .Site.GoogleAnalytics -}}" fetchpriority="low"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
{{- end -}}

<!-- Show custom 'LOC' favicon for serving locally -->
{{- if .Site.IsServer -}}
{{- if hugo.IsServer -}}
{{ $favicon := resources.Get "/static/favicon-loc.ico" }}
<link rel="icon" href="{{ $favicon.RelPermalink }}" sizes="any">
{{ else }}
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint-markdown": "npx markdownlint content/**/*.md",
"lint-spellcheck": "npx cspell \"content/**/*.md\" --no-progress",
"prettier": "prettier --write \"assets/**/*.*s\"",
"serve": "npx hugo serve --port 4000 --disableFastRender --navigateToChanged",
"serve": "npx hugo serve --port 4000 --disableFastRender --navigateToChanged --logLevel info",
"svgo": "npx svgo -f static/img/icons/development-practices/",
"test": "npm-run-all lint-css && npm run lint-html && npm run lint-js && npx hugo"
},
Expand All @@ -40,14 +40,14 @@
"eslint-config-google": "0.14.0",
"eslint-config-prettier": "9.1.0",
"htmlhint": "1.1.4",
"hugo-bin": "0.118.1",
"hugo-bin": "0.119.0",
"jquery": "3.7.1",
"npm-run-all": "4.1.5",
"popper.js": "1.16.1",
"postcss": "8.4.33",
"postcss": "8.4.35",
"postcss-cli": "11.0.0",
"prettier": "3.2.4",
"stylelint": "16.2.0",
"prettier": "3.2.5",
"stylelint": "16.2.1",
"stylelint-config-standard-scss": "13.0.0"
},
"hugo-bin": {
Expand Down
3 changes: 1 addition & 2 deletions static/site.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
"type": "image/png"
}
],
"start_url": "/?utm_source=a2hs",
"url": "https://devguide.trimble.com"
"start_url": "/?utm_source=a2hs"
}

0 comments on commit d3ae33b

Please sign in to comment.