Merge pull request #38 from liwenyip/fix-og-description
Use .Summary instead of .Content for og:description and twitter:description
This commit is contained in:
commit
018a170672
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@
|
|||
{{ else if .Params.subtitle }}
|
||||
<meta property="og:description" content="{{ .Params.subtitle }}">
|
||||
{{ else }}
|
||||
<meta property="og:description" content="{{ .Content | plainify | htmlEscape | truncate 200 }}">
|
||||
<meta property="og:description" content="{{ .Summary }}">
|
||||
{{ end }}
|
||||
|
||||
<meta property="og:type" content="website" />
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
{{ else if .Params.subtitle }}
|
||||
<meta name="twitter:description" content="{{ .Params.subtitle }}">
|
||||
{{ else }}
|
||||
<meta name="twitter:description" content="{{ .Content | plainify | htmlEscape | truncate 200 }}">
|
||||
<meta name="twitter:description" content="{{ .Summary }}">
|
||||
{{ end }}
|
||||
|
||||
{{ if .Params.share_img }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue