Skip to content

Commit 589504b

Browse files
committed
Improve html description
1 parent 4f8a7a3 commit 589504b

File tree

1 file changed

+1
-1
lines changed
  • themes/opentermsarchive/layouts/partials

1 file changed

+1
-1
lines changed

themes/opentermsarchive/layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<head>
22
<meta charset="utf-8" />
33
<title>{{ with .Param "html_title" }}{{ . }}{{ else }}{{ .Title }}{{ end }}</title>
4-
<meta name="description" content="{{ .Description }}" />
4+
<meta name="description" content="{{ with .Param "html_description"}}{{ . }}{{ else }}{{ .Summary | truncate 160 }}{{ end }}">
55
<meta name="viewport" content="width=device-width,initial-scale=1" />
66
{{ $styles := resources.Get "css/loader.css" | toCSS | postCSS (dict "config" "./assets/css/postcss.config.js" "inlineImports" true) }}
77
{{ if hugo.IsProduction }}{{ $styles = $styles | minify | fingerprint | resources.PostProcess }}{{ end }}

0 commit comments

Comments
 (0)