Add author info section in post footer
This commit is contained in:
parent
525171d440
commit
9acf1a71c5
@ -2,7 +2,7 @@
|
||||
{{ $baseurl := .Site.BaseUrl }}
|
||||
<article>
|
||||
<header>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<h1 class="text-primary">{{ .Title }}</h1>
|
||||
<div class="post-meta clearfix">
|
||||
<div class="post-date pull-left">
|
||||
Posted on
|
||||
@ -21,6 +21,21 @@
|
||||
{{ .Content }}
|
||||
</section>
|
||||
<footer>
|
||||
<section class="author-info row">
|
||||
<div class="author-avatar col-md-2">
|
||||
{{ with .Site.Params.avatar }}
|
||||
<img src="{{ . }}" />
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="author-meta col-md-6">
|
||||
{{ with .Site.Params.author }}
|
||||
<h1 class="author-name text-primary">{{ . }}</h1>
|
||||
{{ end }}
|
||||
{{ with .Site.Params.bio }}
|
||||
<div class="author-bio">{{ . }}</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
<ul class="pager">
|
||||
{{ if .Prev }}
|
||||
<li class="previous"><a href="{{ .Prev.Permalink }}"><span aria-hidden="true">←</span> Older</a></li>
|
||||
|
@ -37,9 +37,9 @@
|
||||
<div class="header-img hidden-print"></div>
|
||||
<section class="header-text">
|
||||
<h1><a href="{{ .Site.BaseUrl }}">{{ .Site.Title }}</a></h1>
|
||||
{{ if isset .Site.Params "bio" }}
|
||||
{{ with .Site.Params.subtitle }}
|
||||
<div class="tag-line">
|
||||
{{ .Site.Params.bio }}
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ partial "link.html" . }}
|
||||
|
Loading…
Reference in New Issue
Block a user