We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 003e492 commit ce7797aCopy full SHA for ce7797a
1 file changed
layouts/partials/head.html
@@ -69,7 +69,22 @@
69
});
70
</script>
71
{{ end }}
72
-
+ {{ "<!-- ENTERING LDJSON for events -->" | safeHTML }}
73
+ {{ if .IsPage }}
74
+ {{ if eq .Type "events" }}
75
+ <script type="application/ld+json">
76
+ {
77
+ "@context": "https://schema.org",
78
+ "@type": "Event",
79
+ "name": "{{ .Params.Title }}",
80
+ "startDate": "{{ .Params.date.Format "2006-01-02T15:04:05JST" }}",
81
+ "url": "{{ .Params.youtubeLink }}",
82
+ "image": "{{ .Params.image | absURL }}",
83
+ }
84
+ </script>
85
+ {{ end }}
86
87
+ {{ "<!-- LEAVING LDJSON for events -->" | safeHTML }}
88
{{ "<!-- Mastodon verification code -->" | safeHTML }}
89
<link href="https://fosstodon.org/@innersource" rel="me">
90
0 commit comments