@ -1,29 +1,34 @@
{{ - / * og : description - a one to two sentence description of your object , maybe it only needs at most 3 0 0 bytes * / - }}
{{ if .PageIsUserProfile }}
<meta property="og:title" content=" {{ .ContextUser .DisplayName }} ">
<meta property="og:type" content="profile">
<meta property="og:image" content=" {{ .ContextUser .AvatarLink ctx }} ">
<meta property="og:url" content=" {{ .ContextUser .HTMLURL }} ">
{{ if .ContextUser .Description }}
<meta property="og:description" content=" {{ .ContextUser .Description }} ">
<meta property="og:description" content=" {{ StringUtils .EllipsisString .ContextUser .Description 3 0 0 }} ">
{{ end }}
{{ else if .Repository }}
{{ if .Issue }}
<meta property="og:title" content=" {{ .Issue .Title }} ">
<meta property="og:url" content=" {{ .Issue .HTMLURL }} ">
{{ if .Issue .Content }}
<meta property="og:description" content=" {{ .Issue .Content }} ">
<meta property="og:description" content=" {{ StringUtils .EllipsisString .Issue .Content 3 0 0 }} ">
{{ end }}
{{ else if or .PageIsDiff .IsViewFile }}
<meta property="og:title" content=" {{ .Title }} ">
<meta property="og:url" content=" {{ AppUrl }} {{ .Link }} ">
{{ if and .PageIsDiff ( IsMultilineCommitMessage .Commit .Message ) }}
<meta property="og:description" content=" {{ RenderCommitBody $ .Context .Commit .Message $ .RepoLink $ .Repository .ComposeMetas }} ">
{{ if .PageIsDiff }}
{{ - $ commitMessageParts : = StringUtils .Cut .Commit .Message "\n" - }}
{{ - $ commitMessageBody : = in dex $ commitMessageParts 1 - }}
{{ - if $ commitMessageBody - }}
<meta property="og:description" content=" {{ StringUtils .EllipsisString $ commitMessageBody 3 0 0 }} ">
{{ - end - }}
{{ end }}
{{ else }}
<meta property="og:title" content=" {{ .Repository .Name }} ">
<meta property="og:url" content=" {{ .Repository .HTMLURL }} ">
{{ if .Repository .Description }}
<meta property="og:description" content=" {{ .Repository .Description }} ">
<meta property="og:description" content=" {{ StringUtils .EllipsisString .Repository .Description 3 0 0 }} ">
{{ end }}
{{ end }}
<meta property="og:type" content="object">