Skip to content

Commit

Permalink
Header meta description: use same strategy as Hugo (google#2100)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Oct 17, 2024
1 parent 2357e40 commit 7478e1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
12 changes: 2 additions & 10 deletions layouts/partials/page-description.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
{{ with .Description | plainify -}}
{{ . -}}
{{ else -}}
{{ if .IsPage -}}
{{ .Summary | plainify | chomp -}}
{{ else -}}
{{ with .Site.Params.description | plainify -}}
{{ . -}}
{{ end -}}
{{ end -}}
{{ with or .Description .Summary site.Params.description | plainify | htmlUnescape -}}
{{ trim . "\n\r\t " -}}
{{ end -}}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@
"update:hugo": "npm install --save-exact -D hugo-extended@latest",
"update:pkgs": "npx npm-check-updates -u && npm run cd:docs update:pkgs"
},
"spelling": "cSpell:ignore docsy hugo fortawesome fontawesome onedark twbs pkgs userguide ",
"dependencies": {
"@fortawesome/fontawesome-free": "6.6.0",
"bootstrap": "5.3.3"
},
"devDependencies": {
"cpy-cli": "^5.0.0",
"hugo-extended": "0.133.1",
"hugo-extended": "0.136.1",
"markdown-link-check": "^3.12.2",
"mkdirp": "^3.0.1",
"prettier": "^3.3.3"
},
"optionalDependencies": {
"netlify-cli": "^17.36.4",
"npm-check-updates": "^17.1.3"
"netlify-cli": "^17.37.0",
"npm-check-updates": "^17.1.4"
},
"engines": {
"node": ">=20"
}
},
"spelling": "cSpell:ignore docsy hugo fortawesome fontawesome onedark twbs netlify pkgs userguide -"
}

0 comments on commit 7478e1a

Please sign in to comment.