diff --git a/config/_default/params.toml b/config/_default/params.toml index 6f6e51e..407407b 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -1,4 +1,7 @@ # Aanvullende velden die we binnen de website gebruiken +# +# Voor Schema.org +organization_name = "NLUUG" description = "NLUUG website met de doelstellingen, laatste nieuws en evenementen van onze vereniging." # Fallback-auteur voor posts die geen echte auteur hebben diff --git a/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html b/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html index ce66cb7..a4b9196 100644 --- a/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html +++ b/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html @@ -5,7 +5,7 @@ {{- else if .IsPage -}} - {{ if or (in .Params.content_types "Person") }} + {{ if in .Params.content_types "person" }} {{ partial "schemas/schema_Person.html" . }} {{ end }} diff --git a/themes/nluug/layouts/partials/schemas/schema_Person.html b/themes/nluug/layouts/partials/schemas/schema_Person.html index 791e188..576d5df 100644 --- a/themes/nluug/layouts/partials/schemas/schema_Person.html +++ b/themes/nluug/layouts/partials/schemas/schema_Person.html @@ -1,5 +1,5 @@ -{{ if isset .Params "author" }} -{{ $author := index .Site.Data.team .Params.author }} +{{ if .Params.slug }} +{{ $author := index .Site.Data.personen .Params.slug }} {{ $location := index .Site.Data.location .Site.Params.primarylocation }} {{ end }} diff --git a/themes/nluug/layouts/partials/schemas/schema_Social.html b/themes/nluug/layouts/partials/schemas/schema_Social.html index aac2726..6a35a90 100644 --- a/themes/nluug/layouts/partials/schemas/schema_Social.html +++ b/themes/nluug/layouts/partials/schemas/schema_Social.html @@ -1,22 +1,7 @@ -{{ if .social }} -{{ if .social.twitter }}"https://twitter.com/{{ .social.twitter }}",{{ end }} -{{ if .social.pinterest }}"https://pinterest.com/{{ .social.pinterest }}",{{ end }} -{{ if .social.instagram }}"https://instagram.com/{{ .social.instagram }}",{{ end }} -{{ if .social.facebook }}"https://www.facebook.com/{{ .social.facebook }}",{{ end }} -{{ if .social.linkedin }}"https://ca.linkedin.com/in/{{ .social.linkedin }}/en",{{ end }} -{{ if .social.googleplus }}"https://plus.google.com/+{{ .social.googleplus }}",{{ end }} -{{ if .social.youtube }}"https://www.youtube.com/user/{{ .social.youtube }}",{{ end }} -{{ if .social.github }}"https://github.com/{{ .social.github }}",{{ end }} -{{ if .social.wordpress }}"https://profiles.wordpress.org/{{ .social.wordpress }}",{{ end }} -{{ if .social.angel }}"https://angel.co/{{ .social.angel }}",{{ end }} -{{ if .social.foursquare }}"https://www.foursquare.com/user/{{ .social.foursquare }}",{{ end }} -{{ if .social.yelp }}"https://{{ .social.yelp }}.yelp.ca",{{ end }} -{{ if .social.codepen }}"https://codepen.io/{{ .social.codepen }}/",{{ end }} -{{ if .social.stackoverflow }}"https://stackoverflow.com/users/{{ .social.stackoverflow }}",{{ end }} -{{ if .social.dribbble }}"https://dribbble.com/{{ .social.dribbble }}",{{ end }} -{{ if .social.deviantart }}"http://{{ .social.deviantart }}.deviantart.com/",{{ end }} -{{ if .social.behance }}"https://www.behance.net/{{ .social.behance }}",{{ end }} -{{ if .social.flickr }}"https://www.flickr.com/people/{{ .social.flickr }}/",{{ end }} -{{ if .social.medium }}"https://medium.com/@{{ .social.medium }}",{{ end }} -{{ if .social.website }}"{{ .social.website }}"{{ else }}"{{ .Site.Params.social.website }}"{{ end }} -{{ end }} +{{- if .social -}} +{{- if .social.twitter -}}"https://twitter.com/{{ .social.twitter }}",{{- end -}} +{{- if .social.facebook -}}"https://www.facebook.com/{{ .social.facebook }}",{{- end -}} +{{- if .social.linkedin -}}"{{ .social.linkedin }}",{{- end -}} +{{- if .social.github -}}"https://github.com/{{ .social.github }}",{{- end -}} +{{- if .social.website -}}"{{ .social.website }}"{{ else }}"{{ .Site.Params.social.website }}"{{- end -}} +{{- end -}}