mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 00:16:45 +00:00
Add a simple byline
This commit is contained in:
2 files changed
+6
-2
No files matched your search
@@ -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"}}
|
||||||
|
|||||||
Reference in new issue
Block a user