TheNeuralBit commented on a change in pull request #13596:
URL: https://github.com/apache/beam/pull/13596#discussion_r569635688
##########
File path: website/www/site/layouts/blog/single.html
##########
@@ -12,26 +12,73 @@
{{ define "main" }}
{{ $authors := .Params.authors }}
+ {{ $data := index $.Site.Data.authors }}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
-
+ <div class="post-content">
+ <div class="post-info">
+ <p>
+ {{ delimit .Params.categories ", " " & " }}
+ </p>
+ <p>{{ .Date.Format "2006/01/02" }}</p>
+ </div>
<header class="post-header">
- <h1 class="post-title" itemprop="name headline">{{ .Title }}</h1>
- <p class="post-meta"><time datetime="{{ .Date.Format
"2006-01-02T15:04:05Z07:00" }}" itemprop="datePublished">{{ .Date.Format "Jan
2, 2006" }}</time>
- {{ with $authors }} •
- {{ $count := len . }}
- {{ range $index, $authorId := . }}
- {{ if not (isset $.Site.Data.authors $authorId) }} {{ errorf
"Author '%s' is not defined. Please add them to
'website/www/site/data/authors.yml'" $authorId }} {{end}}
Review comment:
Thanks!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]