diff --git a/exampleSite/content/posts/how-to-use.md b/exampleSite/content/posts/how-to-use.md index 9a42809..d906248 100644 --- a/exampleSite/content/posts/how-to-use.md +++ b/exampleSite/content/posts/how-to-use.md @@ -119,7 +119,7 @@ enableGitInfo = true # (Optional, default true) Copy anchor url to clipboard on click. geekblogAnchorCopy = true - # (Optional, default none) Sites main author, used for the site author filed in Atom feeds. + # (Optional, default none) Sites main author. geekblogAuthor = "john-doe" # (Optional, default none) Adds a "Hosted on " line to the footer. @@ -230,7 +230,7 @@ params: # (Optional, default true) Copy anchor url to clipboard on click. geekblogAnchorCopy: true - # (Optional, default none) Sites main author, used for the site author filed in Atom feeds. + # (Optional, default none) Sites main author. geekblogAuthor: john-doe # (Optional, default none) Adds a "Hosted on " line to the footer. diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index f19e80d..7962d59 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -1,13 +1,15 @@ + {{ $description := default (default .Site.Title .Site.Params.description) (default .Summary .Description) }} {{ $keywords := default .Site.Params.Keywords .Keywords }} {{ $author := default (slice .Site.Params.GeekblogAuthor) .Params.authors }} + {{ with $description }} - + {{ end }} {{ with $keywords }} - + {{ end }} {{ with $author }} {{ $authors := slice }} diff --git a/layouts/partials/head/others.html b/layouts/partials/head/others.html index eeb89d8..fdbd78f 100644 --- a/layouts/partials/head/others.html +++ b/layouts/partials/head/others.html @@ -5,6 +5,4 @@ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end }} -{{ "" | safeHTML }} +{{ printf "" "Made with Geekblog theme https://github.com/xoxys/hugo-geekblog" | safeHTML }} diff --git a/layouts/partials/head/schema.html b/layouts/partials/head/schema.html index 83820dd..a255f72 100644 --- a/layouts/partials/head/schema.html +++ b/layouts/partials/head/schema.html @@ -8,13 +8,19 @@ {{- end }} "name": "{{ .Site.Title }}", "url": "{{ .Site.BaseURL }}", - "description": "{{ .Site.Params.description }}", - "thumbnailUrl": "{{ (default "brand.svg" .Site.Params.logo) | absURL }}"{{ with .Site.Params.GeekblogContentLicense }}, - "license": "{{ .name }}"{{ end }} + {{- with .Site.Params.description }} + "description": "{{ . }}", + {{- end }} + "thumbnailUrl": "{{ (default "brand.svg" .Site.Params.logo) | absURL }}" + {{- with .Site.Params.GeekblogContentLicense }}, + "license": "{{ .name }}" + {{- end }} } {{ else if .IsPage }} {{ $authors := default (slice .Site.Params.GeekblogAuthor) .Params.authors }} +{{ $images := default (slice (default "brand.svg" .Site.Params.logo)) .Params.images }} +{{ $description := default .Site.Params.description (default .Description .Summary) }} {{ $ac := 0 }} {{ $ac_max := default 0 (len $authors) }} {{ end }}