fix og description
This commit is contained in:
		
							parent
							
								
									1109a6bbf6
								
							
						
					
					
						commit
						931aa8e48f
					
				@ -14,15 +14,18 @@
 | 
			
		||||
 | 
			
		||||
  <meta property="og:title" content="{{.Params.Title}}">
 | 
			
		||||
 | 
			
		||||
  {{if isset .Params "tags"}}
 | 
			
		||||
  {{if or (isset .Params "tags") (isset .Params "topic") (isset .Params "series") }}
 | 
			
		||||
    <meta property="og:type" content="article">
 | 
			
		||||
  {{else}}
 | 
			
		||||
    <meta property="og:type" content="website">
 | 
			
		||||
  {{end}}
 | 
			
		||||
 | 
			
		||||
  {{if isset .Params "description"}}
 | 
			
		||||
  <meta property="og:description" content="{{.Params.description | safeHTML}}">
 | 
			
		||||
  <meta property="og:description" content="{{ .Params.description | safeHTML}}">
 | 
			
		||||
  {{else}}
 | 
			
		||||
  <meta property="og:description" content="{{ .Summary | safeHTML }}">
 | 
			
		||||
  {{end}}
 | 
			
		||||
 | 
			
		||||
  <meta property="og:url" content="{{.Permalink}}">
 | 
			
		||||
 | 
			
		||||
  <meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user