Add a simple byline

This commit is contained in:
Bjørn Erik Pedersen committed 2018-02-08 09:14:57 +01:00
1 parent c5342b5e51
commit 653ad5bcde
2 files changed
+6 -2

No files matched your search

+1
View File
@@ -3,6 +3,7 @@ title: Forestry.io
date: 2017-10-13T12:00:00-05:00 date: 2017-10-13T12:00:00-05:00
siteURL: https://forestry.io/ siteURL: https://forestry.io/
siteSource: https://github.com/forestryio siteSource: https://github.com/forestryio
byline: "[Some Person](https://example.com), CEO of Some Company"
--- ---
@@ -37,12 +37,15 @@ Showcase: {{ .Title }}
{{ with $img }} {{ with $img }}
{{ $img := .Resize "940x" }} {{ $img := .Resize "940x" }}
<img src="{{ $img.RelPermalink }}" alt="{{ $img.Title }}" width="{{ $img.Width }}" class="mw-100 b--light-gray ba"> <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 }} {{ end }}
{{with .Content}} {{with .Content}}
<div class="mid-gray nested-copy-line-height nested-img nested-links">
{{- . -}} {{- . -}}
</div>
{{end}} {{end}}
</div>
{{end}} {{end}}
{{define "details"}} {{define "details"}}