mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-22 08:00:20 +00:00
seo/geo
This commit is contained in:
17
layouts/partials/utils/page-description.html
Normal file
17
layouts/partials/utils/page-description.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{{- $description := "" -}}
|
||||
{{- with .Description | plainify | htmlUnescape -}}
|
||||
{{- $description = . | chomp -}}
|
||||
{{- end -}}
|
||||
{{- if $description -}}
|
||||
{{- $description -}}
|
||||
{{- else -}}
|
||||
{{- if .IsHome -}}
|
||||
{{- with .Site.Params.description | plainify | htmlUnescape -}}
|
||||
{{ . | chomp -}}
|
||||
{{- end -}}
|
||||
{{- else if .IsSection -}}
|
||||
{{- partial "utils/section-description-fallback.html" . -}}
|
||||
{{- else -}}
|
||||
{{- .Summary | plainify | htmlUnescape | chomp -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user