mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	layouts: use author partial in head and post_meta
This commit is contained in:
		| @@ -10,7 +10,7 @@ | ||||
| <meta name="description" content="{{- with .Description }}{{ . }}{{- else }}{{- if .IsPage}} | ||||
|     {{- .Summary | default (printf "%s - %s" .Title  .Site.Title) }}{{- else }} | ||||
|     {{- with .Site.Params.description }}{{ . }}{{- end }}{{- end }}{{- end -}}"> | ||||
| <meta name="author" content="{{ .Params.author | default .Site.Params.author }}"> | ||||
| <meta name="author" content="{{ (partial "author.html" . ) }}"> | ||||
| <link rel="canonical" href="{{ .Permalink }}" /> | ||||
| {{- if .Site.Params.analytics.google.SiteVerificationTag }} | ||||
| <meta name="google-site-verification" content="{{ .Site.Params.analytics.google.SiteVerificationTag }}" /> | ||||
|   | ||||
| @@ -8,9 +8,9 @@ | ||||
| {{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }} | ||||
| {{- end -}} | ||||
|  | ||||
| {{- if or .Params.author .Site.Params.author }} | ||||
| {{- $scratch.Add "meta" (slice (.Params.author | default .Site.Params.author)) }} | ||||
| {{- end -}} | ||||
| {{ with (partial "author.html" . ) }} | ||||
| {{ $scratch.Add "meta" (slice .)}} | ||||
| {{end}} | ||||
|  | ||||
| {{- with ($scratch.Get "meta")}} | ||||
| {{- delimit . " · "}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange