Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
aishikrehman committed Dec 24, 2024
1 parent 6e1aa0d commit d9560d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
17 changes: 0 additions & 17 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,6 @@
}]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{{ range $index, $page := where .Site.RegularPages "Type" "posts" }}
{{- if $index -}},{{- end -}}
{
"@type": "ListItem",
"position": {{ add $index 1 }},
"item": "{{ .Permalink }}",
"name": "{{.Title}}"
}
{{- end -}}
]
}
</script>
{{ end }}

{{ define "main" }}
Expand Down
5 changes: 2 additions & 3 deletions layouts/partials/listitem.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"@type": "ItemList",
"itemListElement": [
{{ range $index, $page := .Paginator.Pages }}
{{- if $index -}},{{- end -}}
{
"@type": "ListItem",
"position": {{ add $index 1 }},
"item": "{{ .Permalink }}",
"name": "{{.Title}}"
"url": "{{ .Permalink }}"
}
{{- end -}}
]
Expand Down

0 comments on commit d9560d4

Please sign in to comment.