fix tailing comma in keyword generation
This commit is contained in:
parent
39bb38be32
commit
a6af6494ff
@ -21,14 +21,17 @@ Add automatically generated Search Engine Optimization to your Website
|
|||||||
<!-- Meta Keywords/Tags for Users to search for in Search Engines -->
|
<!-- Meta Keywords/Tags for Users to search for in Search Engines -->
|
||||||
<meta name="keywords" content="
|
<meta name="keywords" content="
|
||||||
{{- with .Params.tags }}
|
{{- with .Params.tags }}
|
||||||
{{- range . -}}
|
{{- range $key, $item := . -}}
|
||||||
|
{{- if ne $key 0 -}}
|
||||||
|
,
|
||||||
|
{{- end -}}
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" "tags" . ) }}
|
{{ with $.Site.GetPage (printf "/%s/%s" "tags" . ) }}
|
||||||
{{- .Title -}},
|
{{- .Title -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
Tutorials, Tips, Linux, Bash, Docker
|
Default, Keywords, That, Describe, Your, Page
|
||||||
{{- end }}" />
|
{{- end }}" />
|
||||||
|
|
||||||
<!-- Canonical URLs -->
|
<!-- Canonical URLs -->
|
||||||
<link rel="canonical" href="{{ .Permalink }}" />
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
|
@ -12,14 +12,17 @@
|
|||||||
<!-- Meta Keywords/Tags for Users to search for in Search Engines -->
|
<!-- Meta Keywords/Tags for Users to search for in Search Engines -->
|
||||||
<meta name="keywords" content="
|
<meta name="keywords" content="
|
||||||
{{- with .Params.tags }}
|
{{- with .Params.tags }}
|
||||||
{{- range . -}}
|
{{- range $key, $item := . -}}
|
||||||
|
{{- if ne $key 0 -}}
|
||||||
|
,
|
||||||
|
{{- end -}}
|
||||||
{{ with $.Site.GetPage (printf "/%s/%s" "tags" . ) }}
|
{{ with $.Site.GetPage (printf "/%s/%s" "tags" . ) }}
|
||||||
{{- .Title -}},
|
{{- .Title -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
Tutorials, Tips, Linux, Bash, Docker
|
Default, Keywords, That, Describe, Your, Page
|
||||||
{{- end }}" />
|
{{- end }}" />
|
||||||
|
|
||||||
<!-- Canonical URLs -->
|
<!-- Canonical URLs -->
|
||||||
<link rel="canonical" href="{{ .Permalink }}" />
|
<link rel="canonical" href="{{ .Permalink }}" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user