Skip to content

Commit bb46be0

Browse files
cfortunaclaude
andcommitted
Improve SEO: add site description, robots.txt, and structured data
- Add site description meta tag for search results - Create robots.txt template with sitemap reference - Add JSON-LD structured data (ResearchOrganization schema) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 629fd8f commit bb46be0

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

hugo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ copyright = "SensorLab"
2424

2525
[params]
2626
author = "SensorLab"
27+
description = "SensorLab at Jozef Stefan Institute - Research in artificial intelligence, communications and computing."
2728
github = "https://github.com/sensorlab"
2829

2930
inlineCSS = false

layouts/partials/seo.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,28 @@
7171
{{ template "_internal/opengraph.html" . }}
7272
{{ template "_internal/twitter_cards.html" . }}
7373

74+
{{/* JSON-LD structured data for better SEO */}}
75+
{{ if .IsHome }}
76+
<script type="application/ld+json">
77+
{
78+
"@context": "https://schema.org",
79+
"@type": "ResearchOrganization",
80+
"name": "SensorLab",
81+
"url": "{{ .Site.BaseURL }}",
82+
"logo": "{{ "images/sensorlab-color.min.svg" | absURL }}",
83+
"description": "{{ .Site.Params.description }}",
84+
"parentOrganization": {
85+
"@type": "ResearchOrganization",
86+
"name": "Jozef Stefan Institute",
87+
"url": "https://www.ijs.si"
88+
},
89+
"sameAs": [
90+
"{{ .Site.Params.github }}"
91+
]
92+
}
93+
</script>
94+
{{ end }}
95+
7496
<title>
7597
{{- if not hugo.IsProduction }}[DEV] {{ end -}}
7698
{{- if not .IsHome }}{{ .Params.name | default .Title }} &mdash; {{ end -}}

layouts/robots.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Allow: /
3+
4+
Sitemap: {{ "sitemap.xml" | absURL }}

0 commit comments

Comments
 (0)