Add author info section in post footer

This commit is contained in:
Keichi Takahashi 2015-02-05 02:33:31 +09:00
parent 525171d440
commit 9acf1a71c5
2 changed files with 18 additions and 3 deletions

View File

@ -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">&larr;</span> Older</a></li>

View File

@ -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" . }}