@ -1,10 +1,9 @@
{{- /* <!-- Breadcrumbs --> */}}
{{- /* <!-- Breadcrumbs --> */}}
{{- $visiblePage := .}}
{{- $breadcrumbs := slice }}
{{- $breadcrumbs := slice }}
{{- $path := "" }}
{{- $path := "" }}
{{- if or (eq .Kind "taxonomy") (or (eq .Kind "term") (eq .Kind "404")) }}
{{- if or (eq .Kind "taxonomy") (or (eq .Kind "term") (or ( eq .Kind "404") (.File) )) }}
{{- $path = .RelPermalink }}
{{- $path = .RelPermalink }}
{{- else if .File }}
{{- $path = string .File }}
{{- else if .IsHome }}
{{- else if .IsHome }}
{{- $path = "" }}
{{- $path = "" }}
{{- else }}
{{- else }}
@ -22,8 +21,8 @@
{{- $breadcrumbs = $breadcrumbs | append (dict "name" "Not Found" "url" (printf "%s%s" $.Site.BaseURL (strings.TrimLeft "/" $currentPath))) }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" "Not Found" "url" (printf "%s%s" $.Site.BaseURL (strings.TrimLeft "/" $currentPath))) }}
{{- else }}
{{- else }}
{{- $title := $page.Title }}
{{- $title := $page.Title }}
{{- if eq $page $ }}
{{- if eq (trim $currentPath "/") $path }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $title "url" $p age.Permalink) }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $visiblePage.Title "url" $visibleP age.Permalink) }}
{{- else }}
{{- else }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $title "url" $page.Permalink) }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $title "url" $page.Permalink) }}
{{- end }}
{{- end }}
@ -39,11 +38,11 @@
{
{
"@type": "Person",
"@type": "Person",
"@id": "{{ $.Site.BaseURL }}#website_founder",
"@id": "{{ $.Site.BaseURL }}#website_founder",
"name": {{ $.Site.A uthor.name | safeHTML }},
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
{{- with $.Site.A uthor.email }}
{{- with $.Site.Params.a uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.A uthor.image }}
{{- with $.Site.Params.a uthor.image }}
{{- $img := resources.Get . }}
{{- $img := resources.Get . }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
"image": {
"image": {
@ -57,7 +56,7 @@
},
},
{
{
"@type": "Organization",
"@type": "Organization",
"name": {{ $.Site.A uthor.name | safeHTML }},
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
"slogan": {{$.Site.Params.HomeSubtitle | safeHTML }},
"slogan": {{$.Site.Params.HomeSubtitle | safeHTML }},
{{- with $socials := .Site.Params.social }}
{{- with $socials := .Site.Params.social }}
"sameAs": [
"sameAs": [
@ -66,10 +65,10 @@
{{- end }}
{{- end }}
],
],
{{- end }}
{{- end }}
{{- with $.Site.A uthor.email }}
{{- with $.Site.Params.a uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.A uthor.image }}
{{- with $.Site.Params.a uthor.image }}
{{- $img := resources.Get . }}
{{- $img := resources.Get . }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
"logo": {
"logo": {
@ -108,15 +107,15 @@
{{- with .Site.Copyright }}
{{- with .Site.Copyright }}
"license": {{ . | safeHTML }},
"license": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- if .Site.A uthor.name }}
{{- if .Site.Params.a uthor.name }}
{{- range slice "publisher" "author" }}
{{- range slice "publisher" "author" }}
{{ . }}: {
{{ . }}: {
"@type": "Person",
"@type": "Person",
"name": {{ $.Site.A uthor.name | safeHTML }},
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
{{- with $.Site.A uthor.email }}
{{- with $.Site.Params.a uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.A uthor.image }}
{{- with $.Site.Params.a uthor.image }}
{{- $img := resources.Get . }}
{{- $img := resources.Get . }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
"image": {
"image": {
@ -187,15 +186,15 @@
{{- with .Site.Copyright }}
{{- with .Site.Copyright }}
"license": {{ . | safeHTML }},
"license": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- if .Site.A uthor.name }}
{{- if .Site.Params.a uthor.name }}
{{- range slice "publisher" "author" }}
{{- range slice "publisher" "author" }}
{{ . }}: {
{{ . }}: {
"@type": "Person",
"@type": "Person",
"name": {{ $.Site.A uthor.name | safeHTML }},
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
{{- with $.Site.A uthor.email }}
{{- with $.Site.Params.a uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.A uthor.image }}
{{- with $.Site.Params.a uthor.image }}
{{- $img := resources.Get . }}
{{- $img := resources.Get . }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
"image": {
"image": {
@ -258,15 +257,15 @@
{{- with .Site.Copyright }}
{{- with .Site.Copyright }}
"license": {{ . | safeHTML }},
"license": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- if .Site.A uthor.name }}
{{- if .Site.Params.a uthor.name }}
{{- range slice "publisher" "author" }}
{{- range slice "publisher" "author" }}
{{ . }}: {
{{ . }}: {
"@type": "Person",
"@type": "Person",
"name": {{ $.Site.A uthor.name | safeHTML }},
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
{{- with $.Site.A uthor.email }}
{{- with $.Site.Params.a uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.A uthor.image }}
{{- with $.Site.Params.a uthor.image }}
{{- $img := resources.Get . }}
{{- $img := resources.Get . }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
{{- $img = $img.Resize (printf "%dx%d png" $img.Width $img.Height) }}
"image": {
"image": {