+
+
+ {{if .BlogPost.Repo}} +
+ {{if .BlogPost.Repo.RelAvatarLink ctx}} + + {{else if .BlogPost.Repo.Owner}} + + {{end}} + {{if .BlogPost.Repo.DisplayTitle}}{{.BlogPost.Repo.DisplayTitle}}{{else}}{{.BlogPost.Repo.FullName}}{{end}} + / + {{ctx.Locale.Tr "repo.blog"}} +
+ {{end}} + + {{if .BlogPost.FeaturedImage}} +
+ {{.BlogPost.Title}} +
+ {{end}} + +
+
+

{{.BlogPost.Title}}

+ {{if .BlogPost.Subtitle}} +

{{.BlogPost.Subtitle}}

+ {{end}} +
+ {{if .BlogPost.Author}} + {{.BlogPost.Author.Name}} + {{if not .BlogPost.Author.KeepEmailPrivate}} + {{.BlogPost.Author.DisplayName}} + {{else}} + {{.BlogPost.Author.DisplayName}} + {{end}} + · + {{end}} + {{if .BlogPost.PublishedUnix}} + {{DateUtils.TimeSince .BlogPost.PublishedUnix}} + {{else}} + {{DateUtils.TimeSince .BlogPost.CreatedUnix}} + {{end}} +
+ {{if .BlogTags}} +
+ {{range .BlogTags}} + {{.}} + {{end}} +
+ {{end}} +
+ +
+
+ +
+ {{.BlogPost.RenderedContent | SafeHTML}} +
+
+ + {{if .IsWriter}} +
+ + {{svg "octicon-pencil" 16}} {{ctx.Locale.Tr "repo.blog.edit"}} + + + {{.CsrfTokenHtml}} + + +
+ {{end}} + + +
+ + + {{if .IsWriter}} + {{ctx.Locale.Tr "repo.blog.reactions.admin_hint"}} + {{end}} +
+ + + {{if .BlogPost.AllowComments}} +
+

+ {{svg "octicon-comment" 20}} + {{ctx.Locale.Tr "repo.blog.comments"}} + {{if .CommentCount}}{{.CommentCount}}{{end}} +

+ + {{if .BlogComments}} +
+ {{range .BlogComments}} +
+
+ {{if and (not .IsGuest) .User}} + {{.User.Name}} + {{.User.DisplayName}} + {{else}} +
{{svg "octicon-person" 16}}
+ {{.DisplayName}} + {{ctx.Locale.Tr "repo.blog.comment.guest"}} + {{end}} + {{DateUtils.TimeSince .CreatedUnix}} +
+
{{.Content}}
+
+ + {{if or $.IsWriter (and $.IsSigned (eq .UserID $.SignedUserID))}} +
+ {{$.CsrfTokenHtml}} + +
+ {{end}} +
+ + + {{if .Replies}} +
+ {{range .Replies}} +
+
+ {{if and (not .IsGuest) .User}} + {{.User.Name}} + {{.User.DisplayName}} + {{else}} +
{{svg "octicon-person" 12}}
+ {{.DisplayName}} + {{ctx.Locale.Tr "repo.blog.comment.guest"}} + {{end}} + {{DateUtils.TimeSince .CreatedUnix}} +
+
{{.Content}}
+ {{if or $.IsWriter (and $.IsSigned (eq .UserID $.SignedUserID))}} +
+
+ {{$.CsrfTokenHtml}} + +
+
+ {{end}} +
+ {{end}} +
+ {{end}} + + +
+
+ {{$.CsrfTokenHtml}} + + +
+ + +
+
+
+
+ {{end}} +
+ {{else}} +

{{ctx.Locale.Tr "repo.blog.comments.empty"}}

+ {{end}} + + +
+ {{if .IsSigned}} +

{{ctx.Locale.Tr "repo.blog.comment.leave"}}

+
+ {{.CsrfTokenHtml}} + + +
+ +
+
+ {{else}} +

{{ctx.Locale.Tr "repo.blog.comment.leave"}}

+ {{if .GuestToken}} + +

{{ctx.Locale.Tr "repo.blog.comment.guest_commenting_as" .GuestToken.Name}}

+
+ {{.CsrfTokenHtml}} + + +
+ +
+
+ {{else}} + +
+

{{ctx.Locale.Tr "repo.blog.comment.guest_intro"}}

+
+ + + +
+
+
+

{{ctx.Locale.Tr "repo.blog.comment.guest_enter_code"}}

+
+ + +
+
+ {{end}} + {{end}} +
+
+ {{end}} +
+
+