mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-11 02:06:03 +00:00
seo/geo
This commit is contained in:
5
layouts/partials/utils/clean-structured-label.html
Normal file
5
layouts/partials/utils/clean-structured-label.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{- $label := . | default "" -}}
|
||||
{{- $label = $label | markdownify | plainify | htmlUnescape | replaceRE "\\s+" " " | chomp -}}
|
||||
{{- $label = replaceRE `^[0-9]+(?:\s*[.,::、))-]\s*|\s+)` "" $label -}}
|
||||
{{- $label = replaceRE `^[A-Za-z](?:\s*[.)]\s*|\s+)` "" $label -}}
|
||||
{{- return $label -}}
|
||||
Reference in New Issue
Block a user