Add a simple byline

This commit is contained in:
Bjørn Erik Pedersen
2018-02-07 09:52:01 +01:00
parent c5342b5e51
commit 653ad5bcde
2 changed files with 6 additions and 2 deletions
+1
View File
@@ -3,6 +3,7 @@ title: Forestry.io
date: 2017-10-13T12:00:00-05:00
siteURL: https://forestry.io/
siteSource: https://github.com/forestryio
byline: "[Some Person](https://example.com), CEO of Some Company"
---
@@ -37,12 +37,15 @@ Showcase: {{ .Title }}
{{ with $img }}
{{ $img := .Resize "940x" }}
<img src="{{ $img.RelPermalink }}" alt="{{ $img.Title }}" width="{{ $img.Width }}" class="mw-100 b--light-gray ba">
{{ end }}
<div class="mid-gray nested-copy-line-height nested-img nested-links">
{{with .Params.byline }}
<div style="margin-top: 20px; font-style: italic;">By {{ . | markdownify -}}</div>
{{ end }}
{{with .Content}}
<div class="mid-gray nested-copy-line-height nested-img nested-links">
{{- . -}}
</div>
{{end}}
</div>
{{end}}
{{define "details"}}