Skip to content

Commit 2ff2097

Browse files
committed
Fix blog author field, enable multiple authors
Partial implementation of https://moonbooth.com/hugo/authors/ without a bio section for each post though.
1 parent e7efea8 commit 2ff2097

File tree

12 files changed

+42
-9
lines changed

12 files changed

+42
-9
lines changed

config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ enableGitInfo = true
2020
[taxonomies]
2121
tag = "tags"
2222
category = "categories"
23+
author = "authors"
2324

2425
[params.taxonomy]
2526
# set taxonomyCloud = [] to hide taxonomy clouds
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
name: "Jeff McCune"
3+
bio: "Founder of Open Infrastructure Services"
4+
5+
---

content/en/blog/news/announcing-ois.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
date: 2015-09-20 18:33:10
33
title: "Announcing Open Infrastructure Services, LLC"
44
linkTitle: "Announcing Open Infrastructure Services, LLC"
5-
author: Jeff McCune ([[email protected]])
5+
authors: ["Jeff McCune"]
66
---
77

88
Hello, World!

content/en/blog/news/introducing-gary/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Welcome Gary Larizza"
33
date: 2017-10-21 12:06:00
44
description: "Gary Larizza joins Open Infrastructure Services"
5-
author: Jeff McCune ([[email protected]])
5+
authors: ["Jeff McCune"]
66
resources:
77
- src: "**gary*.jpg"
88
title: "Gary Larizza"

content/en/blog/news/introducing-nate/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Welcome Nate McCurdy"
33
date: 2018-12-03 12:00:00
44
description: "Nate McCurdy joins Open Infrastructure Services"
5-
author: Jeff McCune ([[email protected]])
5+
authors: ["Jeff McCune"]
66
resources:
77
- src: "**nate*.jpg"
88
title: "Nate McCurdy"

content/en/blog/news/liftoff/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
date: 2015-10-06 13:39:00
33
title: "Lift Off!"
4-
author: Jeff McCune ([[email protected]])
4+
authors: ["Jeff McCune"]
55
resources:
66
- src: "**liftoff*.png"
77
title: "Lift off!"

content/en/blog/news/new-logo/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
date: 2016-02-27 17:53:00
33
title: "Logo"
44
description: "New company logo for Open Infrastructure Services"
5-
author: Jeff McCune ([[email protected]])
5+
authors: ["Jeff McCune"]
66
resources:
77
- src: "**logorectangle*.png"
88
title: "New Logo"

content/en/blog/news/we-are-hiring/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
date: 2018-04-18 12:00:00
33
title: "Help Wanted"
44
description: "We're Hiring!"
5-
author: Jeff McCune ([[email protected]])
5+
authors: ["Jeff McCune"]
66
resources:
77
- src: "**now-hiring*.jpg"
88
title: "Now Hiring"

content/en/blog/technical/announcing-ncio.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ date: 2016-08-21 12:48:00
33
title: "Puppet Enterprise Node Classification Backup & Restore with ncio"
44
linkTitle: "Puppet Enterprise Node Classification Backup & Restore with ncio"
55
description: "Utility to backup and restore PE Node Classification data"
6-
author: Jeff McCune ([[email protected]])
6+
authors: ["Jeff McCune"]
77
---
88

99
I'm happy to announce [ncio][ncio], a small command line utility to backup and

content/en/blog/technical/esxi-single-usb-boot/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
date: 2017-11-22 15:06:00
33
title: "ESXi 6.5 Single USB Thumb Drive"
44
description: "Make full use of a single USB thumb drive with ESXi 6.5"
5-
author: Jeff McCune ([[email protected]])
5+
authors: ["Jeff McCune"]
66
resources:
77
- src: "**datastores*.png"
88
title: "Empty ESX Data Stores"

content/en/blog/technical/esxi-update-command-line/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
date: 2017-11-22 17:18:00
33
title: "Update ESXi 6.5 to U1 over SSH"
44
description: "Overcome No space left on device by enabling swap"
5-
author: Jeff McCune ([[email protected]])
5+
authors: ["Jeff McCune"]
66
resources:
77
- src: "**swap*.png"
88
title: "Enable Swap"

layouts/blog/content.html

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<div class="td-content">
2+
<h1>{{ .Title }}</h1>
3+
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
4+
<div class="td-byline mb-4">
5+
{{ with .Params.authors }}
6+
{{ $md_names := apply . "markdownify" "." }}
7+
{{ $bold_names := apply $md_names "printf" "<b>%s</b>" "." }}
8+
{{ T "post_byline_by" }} {{ delimit $bold_names ", " }} |
9+
{{end}}
10+
{{ with .Params.author }}{{ T "post_byline_by" }} <b>{{ . | markdownify }}</b> |{{ end}}
11+
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
12+
</div>
13+
<header class="article-meta">
14+
{{ partial "taxonomy_terms_article_wrapper.html" . }}
15+
{{ if (and (not .Params.hide_readingtime) (.Site.Params.ui.readingtime.enable)) }}
16+
{{ partial "reading-time.html" . }}
17+
{{ end }}
18+
</header>
19+
{{ .Content }}
20+
{{ if (.Site.Params.DisqusShortname) }}
21+
<br />
22+
{{ partial "disqus-comment.html" . }}
23+
<br />
24+
{{ end }}
25+
26+
{{ partial "pager.html" . }}
27+
</div>

0 commit comments

Comments
 (0)