adding photo to h-card in p-author
This commit is contained in:
parent
1c53244439
commit
09aed165eb
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
<div class="header-profile">
|
<div class="header-profile">
|
||||||
{{ if .User.AvatarUrl }}
|
{{ if .User.AvatarUrl }}
|
||||||
<img class="u-logo avatar" src="{{ .User.AvatarUrl }}" alt="{{ .User.Config.Title }}" width="100" height="100" />
|
<img class="u-photo u-logo avatar" src="{{ .User.AvatarUrl }}" alt="{{ .User.Config.Title }}" width="100" height="100" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div style="float: right; list-style: none;">
|
<div style="float: right; list-style: none;">
|
||||||
{{ if .User.Config.TwitterHandle}}
|
{{ if .User.Config.TwitterHandle}}
|
||||||
|
|
|
@ -2,15 +2,20 @@
|
||||||
<hgroup>
|
<hgroup>
|
||||||
<h1 class="p-name">{{.Title}}</h1>
|
<h1 class="p-name">{{.Title}}</h1>
|
||||||
<small>
|
<small>
|
||||||
|
<a class="u-url" href="{{.Post.FullUrl}}">#</a>
|
||||||
Published:
|
Published:
|
||||||
<time class="dt-published" datetime="{{.Post.Meta.Date}}">
|
<time class="dt-published" datetime="{{.Post.Meta.Date}}">
|
||||||
{{.Post.Meta.FormattedDate}}
|
{{.Post.Meta.FormattedDate}}
|
||||||
</time>
|
</time>
|
||||||
{{ if .Post.User.Config.AuthorName }}
|
{{ if .Post.User.Config.AuthorName }}
|
||||||
by
|
by
|
||||||
<a class="p-author h-card" href="{{.Post.User.FullUrl}}">{{.Post.User.Config.AuthorName}}</a>
|
<a class="p-author h-card" href="{{.Post.User.FullUrl}}">
|
||||||
|
{{ if .Post.User.AvatarUrl }}
|
||||||
|
<img class="u-photo u-logo" style="height: 1em;" src="{{ .Post.User.AvatarUrl }}" alt="{{ .Post.User.Config.Title }}" />
|
||||||
|
{{ end }}
|
||||||
|
{{.Post.User.Config.AuthorName}}
|
||||||
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a class="u-url" href="{{.Post.FullUrl}}">#</a>
|
|
||||||
</small>
|
</small>
|
||||||
</hgroup>
|
</hgroup>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
Loading…
Reference in New Issue