Skip to content

Commit

Permalink
sitemap: remove /buy/ and /pcengines/buy/
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Król <[email protected]>
  • Loading branch information
pietrushnic committed Mar 14, 2024
1 parent 5dc227e commit e46e1be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions themes/dasharo/layouts/_default/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
{{ if not (strings.HasSuffix .Permalink "/events/chat/") }}
{{- if not (strings.HasSuffix .Permalink "/events/") -}}
{{ if not (strings.HasSuffix .Permalink "/categories/") }}
{{- if not (strings.HasSuffix .Permalink "/tags/") -}}<url>
{{- if not (strings.HasSuffix .Permalink "/tags/") -}}
{{- if not (strings.HasSuffix .Permalink "/buy/") -}}
{{- if not (strings.HasSuffix .Permalink "/pcengines/buy/") -}}<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
<lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
Expand All @@ -21,5 +23,5 @@
hreflang="{{ .Language.LanguageCode }}"
href="{{ .Permalink }}"
/>{{ end }}
</url>{{ end }}{{- end -}}{{ end }}{{- end -}}{{ end }}{{- end -}}
</url>{{ end }}{{- end -}}{{ end }}{{- end -}}{{ end }}{{- end -}}{{ end }}{{- end -}}
</urlset>

0 comments on commit e46e1be

Please sign in to comment.