0
0
Fork 0

add link to author pages

This commit is contained in:
Gibheer 2015-11-04 06:18:55 +01:00
parent bcce0819ec
commit 7b9fb5b995
2 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,9 @@
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
</header>
<aside>
<span class="author">{{ .Params.author }}</span>
{{ if .Params.author }}
<a class="author" href="{{ .Site.BaseURL }}author/{{ lower .Params.author }}">{{ .Params.author }}</a>
{{ end }}
<span class="date">{{ dateFormat "2006-01-02 15:04" .Date }}</span>
</aside>
<section>

View File

@ -6,7 +6,7 @@
{{ if .Truncated }}<a class="more" href="{{ .Permalink }}">read more</a>{{ end }}
</nav>
<aside>
<span class="author">{{ .Params.author }}</span>
<a class="author" href="{{ .Site.BaseURL }}author/{{ lower .Params.author }}">{{ .Params.author }}</a>
<span class="date">{{ dateFormat "2006-01-02 15:04" .Date }}</span>
</aside>
<section class="summary">