mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-31 02:32:37 +00:00
Add a simple byline
This commit is contained in:
@@ -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"}}
|
||||
|
||||
Reference in New Issue
Block a user