30 lines
910 B
Plaintext
Executable File
30 lines
910 B
Plaintext
Executable File
{
|
|
"@context": "http://schema.org",
|
|
"@type": "Organization",
|
|
"name": "{{ .org.name }}",
|
|
"url": "{{ .ctx.Site.BaseURL }}",
|
|
"email": "{{ .org.email }}",
|
|
"telephone": {{ .org.telephone | jsonify }},
|
|
{{ if (ne .short true) }}
|
|
{{- with .org.faxNumber -}}
|
|
"faxNumber": {{ . | jsonify }}
|
|
{{- end -}},
|
|
"address": {{ partial "schema/address.jsonld" (dict "address" .org.address "ctx" .ctx)}},
|
|
"logo": {{ partial "schema/image.jsonld" (dict "url" "/img/logo.svg" "ctx" .ctx) }}
|
|
{{ with .org.social }}
|
|
{{- $social := slice -}}
|
|
{{- with .facebook }}
|
|
{{- $social = $social | append . }}
|
|
{{- end }}
|
|
{{- with .instagram }}
|
|
{{- $social = $social | append . }}
|
|
{{- end }}
|
|
{{- with .twitter }}
|
|
{{- $social = $social | append . }}
|
|
{{- end }}
|
|
,"sameAs: {{ jsonify $social }}
|
|
{{- end }}
|
|
{{- end }}
|
|
}
|
|
{{ .Site }}
|