Skip to content

Commit

Permalink
fix(base): do not truncate the page description
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Mar 5, 2024
1 parent b9005a4 commit 6c9c01e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions modules/base/layouts/partials/seo/modules/base/index.html
@@ -1,9 +1,5 @@
{{/* Generate the description meta tag. */}}
{{- $desc := default .Title (default (.Summary | plainify) .Description) }}
{{- $descMaxLen := 160 }}
{{- if gt (len $desc) $descMaxLen }}
{{- $desc = substr $desc 0 $descMaxLen }}
{{- end }}
<meta name="description" content="{{ $desc }}" />
{{/* Generate the noindex meta tag. */}}
{{- if .Params.noindex }}
Expand Down

0 comments on commit 6c9c01e

Please sign in to comment.