@ -1,9 +1,10 @@
{{- /* <!-- Breadcrumbs --> */}}
{{- /* <!-- Breadcrumbs --> */}}
{{- $visiblePage := .}}
{{- $breadcrumbs := slice }}
{{- $breadcrumbs := slice }}
{{- $path := "" }}
{{- $path := "" }}
{{- if or (eq .Kind "taxonomy") (or (eq .Kind "term") (or ( eq .Kind "404") (.File) )) }}
{{- if or (eq .Kind "taxonomy") (or (eq .Kind "term") (eq .Kind "404")) }}
{{- $path = .RelPermalink }}
{{- $path = .RelPermalink }}
{{- else if .File }}
{{- $path = string .File }}
{{- else if .IsHome }}
{{- else if .IsHome }}
{{- $path = "" }}
{{- $path = "" }}
{{- else }}
{{- else }}
@ -21,8 +22,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 (trim $currentPath "/") $path }}
{{- if eq $page $ }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $visiblePage.Title "url" $visibleP age.Permalink) }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $title "url" $p age.Permalink) }}
{{- else }}
{{- else }}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $title "url" $page.Permalink)}}
{{- $breadcrumbs = $breadcrumbs | append (dict "name" $title "url" $page.Permalink)}}
{{- end }}
{{- end }}
@ -38,11 +39,11 @@
{
{
"@type": "Person",
"@type": "Person",
"@id": "{{ $.Site.BaseURL }}#website_founder",
"@id": "{{ $.Site.BaseURL }}#website_founder",
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
"name": {{ $.Site.A uthor.name | safeHTML }},
{{- with $.Site.Params.a uthor.email }}
{{- with $.Site.A uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.Params.a uthor.image }}
{{- with $.Site.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": {
@ -56,7 +57,7 @@
},
},
{
{
"@type": "Organization",
"@type": "Organization",
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
"name": {{ $.Site.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": [
@ -65,10 +66,10 @@
{{- end }}
{{- end }}
],
],
{{- end }}
{{- end }}
{{- with $.Site.Params.a uthor.email }}
{{- with $.Site.A uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.Params.a uthor.image }}
{{- with $.Site.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": {
@ -107,15 +108,15 @@
{{- with .Site.Copyright }}
{{- with .Site.Copyright }}
"license": {{ . | safeHTML }},
"license": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- if .Site.Params.a uthor.name }}
{{- if .Site.A uthor.name }}
{{- range slice "publisher" "author" }}
{{- range slice "publisher" "author" }}
{{ . }}: {
{{ . }}: {
"@type": "Person",
"@type": "Person",
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
"name": {{ $.Site.A uthor.name | safeHTML }},
{{- with $.Site.Params.a uthor.email }}
{{- with $.Site.A uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.Params.a uthor.image }}
{{- with $.Site.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": {
@ -186,15 +187,15 @@
{{- with .Site.Copyright }}
{{- with .Site.Copyright }}
"license": {{ . | safeHTML }},
"license": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- if .Site.Params.a uthor.name }}
{{- if .Site.A uthor.name }}
{{- range slice "publisher" "author" }}
{{- range slice "publisher" "author" }}
{{ . }}: {
{{ . }}: {
"@type": "Person",
"@type": "Person",
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
"name": {{ $.Site.A uthor.name | safeHTML }},
{{- with $.Site.Params.a uthor.email }}
{{- with $.Site.A uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.Params.a uthor.image }}
{{- with $.Site.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": {
@ -257,15 +258,15 @@
{{- with .Site.Copyright }}
{{- with .Site.Copyright }}
"license": {{ . | safeHTML }},
"license": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- if .Site.Params.a uthor.name }}
{{- if .Site.A uthor.name }}
{{- range slice "publisher" "author" }}
{{- range slice "publisher" "author" }}
{{ . }}: {
{{ . }}: {
"@type": "Person",
"@type": "Person",
"name": {{ $.Site.Params.a uthor.name | safeHTML }},
"name": {{ $.Site.A uthor.name | safeHTML }},
{{- with $.Site.Params.a uthor.email }}
{{- with $.Site.A uthor.email }}
"email": {{ . | safeHTML }},
"email": {{ . | safeHTML }},
{{- end }}
{{- end }}
{{- with $.Site.Params.a uthor.image }}
{{- with $.Site.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": {