mirror of
https://github.com/mgrove36/bbc-young-reporter.git
synced 2026-03-03 11:27:06 +00:00
Enable auto-population & remove author pages
Make the navbar, main article list and content of articles (images, dates and authors) populate automatically, and remove pages for each author.
This commit is contained in:
@@ -3,11 +3,13 @@ title: Title1
|
||||
description: An article description1
|
||||
layout: article
|
||||
categories: articles
|
||||
date: 2019-01-01 7:01
|
||||
authors: Name
|
||||
---
|
||||
|
||||
<h3 class="mdc-typography--subtitle1">
|
||||
<time class="timeago" datetime="2019-03-06T07:08:0Z">Wednesday 6th March 2019</time>
|
||||
| by <a href="/authors/name">Name</a>
|
||||
<time class="timeago" datetime="{{ page.date | date: '%Y-%m-%d' }}T{{ page.date | date: '%H:%M:%S' }}">{{ page.date | date: '%A %e %B %Y' }}</time>
|
||||
| by {{ page.authors }}
|
||||
</h3>
|
||||
<figure>
|
||||
<img src="/images/article_name--cover.jpg" style="width:100%;">
|
||||
@@ -1,18 +0,0 @@
|
||||
---
|
||||
title: Title1
|
||||
description: An article description1
|
||||
layout: article
|
||||
icon: home
|
||||
categories: articles
|
||||
date: 2019-01-01 9:00
|
||||
---
|
||||
|
||||
<h3 class="mdc-typography--subtitle1">
|
||||
<time class="timeago" datetime="2019-03-06T07:08:0Z">Wednesday 6th March 2019</time>
|
||||
| by <a href="/authors/name">Name</a>
|
||||
</h3>
|
||||
<figure>
|
||||
<img src="/images/article_name--cover.jpg" style="width:100%;">
|
||||
<figcaption class="mdc-typography--caption-text">A brass statue of a child, in a garden</figcaption>
|
||||
</figure>
|
||||
Content
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
title: Title
|
||||
description: An article description
|
||||
layout: article
|
||||
categories: articles
|
||||
---
|
||||
|
||||
<h3 class="mdc-typography--subtitle1">
|
||||
<time class="timeago" datetime="2019-03-06T07:08:0Z">Wednesday 6th March 2019</time>
|
||||
| by <a href="/authors/name">Name</a>
|
||||
</h3>
|
||||
<figure>
|
||||
<img src="/images/article_name--cover.jpg" style="width:100%;">
|
||||
<figcaption class="mdc-typography--caption-text">A brass statue of a child, in a garden</figcaption>
|
||||
</figure>
|
||||
Content
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
title: Title
|
||||
description: An article description
|
||||
layout: article
|
||||
icon: home
|
||||
categories: articles
|
||||
---
|
||||
|
||||
<h3 class="mdc-typography--subtitle1">
|
||||
<time class="timeago" datetime="2019-03-06T07:08:0Z">Wednesday 6th March 2019</time>
|
||||
| by <a href="/authors/name">Name</a>
|
||||
</h3>
|
||||
<figure>
|
||||
<img src="/images/article_name--cover.jpg" style="width:100%;">
|
||||
<figcaption class="mdc-typography--caption-text">A brass statue of a child, in a garden</figcaption>
|
||||
</figure>
|
||||
Content
|
||||
Reference in New Issue
Block a user