From 5b143089e21db9544fb4fe8dea2f837f3148104b Mon Sep 17 00:00:00 2001 From: Calvin Date: Fri, 6 Sep 2019 06:09:12 +0800 Subject: [PATCH] docs: add _layouts/post.html to Jekyll guide (#2628) --- website/content/docs/jekyll.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/website/content/docs/jekyll.md b/website/content/docs/jekyll.md index dd84dfbb..c0b87154 100644 --- a/website/content/docs/jekyll.md +++ b/website/content/docs/jekyll.md @@ -113,7 +113,7 @@ display_name: Jill Smith position: Chief Editor ``` -then update `_layouts/author.html` and `staff.html` accordingly. +then update `_layouts/author.html`, `_layouts/post.html` and `staff.html` accordingly. ```html @@ -135,6 +135,23 @@ then update `_layouts/author.html` and `staff.html` accordingly. ``` +```html + +--- layout: default --- + +

{{ page.title }}

+ +

+ {{ page.date | date_to_string }} + {% assign author = site.authors | where: 'name', page.author | first %} + {% if author %} + - {{ author.display_name }} + {% endif %} +

+ +{{ content }} +``` + ```html --- layout: default ---