Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,22 @@
});
</script>
{{ end }}

{{ "<!-- ENTERING LDJSON for events -->" | safeHTML }}
{{ if .IsPage }}
{{ if eq .Type "events" }}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Event",
"name": "{{ .Params.Title }}",
"startDate": "{{ .Params.date.Format "2006-01-02T15:04:05JST" }}",
"url": "{{ .Params.youtubeLink }}",
"image": "{{ .Params.image | absURL }}",
Comment thread
andrea-kyurchiev marked this conversation as resolved.
Outdated
}
</script>
{{ end }}
{{ end }}
{{ "<!-- LEAVING LDJSON for events -->" | safeHTML }}
{{ "<!-- Mastodon verification code -->" | safeHTML }}
<link href="https://fosstodon.org/@innersource" rel="me">

Expand Down
Loading