{{- /* og:description - a one to two sentence description of your object, maybe it only needs at most 300 bytes */ -}} {{if .OpenGraphTitle}} {{end}} {{if .OpenGraphDescription}} {{end}} {{if .OpenGraphURL}} {{end}} {{if .OpenGraphImageURL}} {{if .OpenGraphImageWidth}} {{end}} {{if .OpenGraphImageHeight}} {{end}} {{if .OpenGraphImageAltText}} {{end}} {{end}} {{if .PageIsUserProfile}} {{if .ContextUser.Description}} {{end}} {{else if .Repository}} {{if .Issue}} {{if .Issue.Content}} {{end}} {{else if or .PageIsDiff .IsViewFile}} {{if and .PageIsDiff .Commit}} {{- $commitMessageParts := StringUtils.Cut .Commit.Message "\n" -}} {{- $commitMessageBody := index $commitMessageParts 1 -}} {{- if $commitMessageBody -}} {{- end -}} {{end}} {{else if .Pages}} {{if .Repository.Description}} {{end}} {{else}} {{if not .OpenGraphTitle}} {{end}} {{if not .OpenGraphURL}} {{end}} {{if and (.Repository.Description) (not .OpenGraphDescription)}} {{end}} {{end}} {{if and (not .Issue) (not .OpenGraphImageURL)}} {{if (.Repository.AvatarLink ctx)}} {{else}} {{end}} {{end}} {{else}} {{end}}