From c4d2d9d146a7b4c884ecacad90cc00ad520fe4f4 Mon Sep 17 00:00:00 2001 From: Marco Biedermann Date: Sun, 23 Aug 2020 11:27:10 +0200 Subject: [PATCH 1/5] feat: Blog Markup Enhance blog HTML markup by displaying all blog posts as ordered list --- starters/blog/src/pages/index.js | 64 +++++++++++++++++--------------- 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/starters/blog/src/pages/index.js b/starters/blog/src/pages/index.js index 262a33889b9cc..229b2bf372a0a 100644 --- a/starters/blog/src/pages/index.js +++ b/starters/blog/src/pages/index.js @@ -1,6 +1,5 @@ +import { graphql, Link } from "gatsby" import React from "react" -import { Link, graphql } from "gatsby" - import Bio from "../components/bio" import Layout from "../components/layout" import SEO from "../components/seo" @@ -27,34 +26,39 @@ const BlogIndex = ({ data, location }) => { - {posts.map(post => { - const title = post.frontmatter.title || post.fields.slug - return ( -
-
-

- - {title} - -

- {post.frontmatter.date} -
-
-

-

-
- ) - })} +
    + {posts.map(post => { + const title = post.frontmatter.title || post.fields.slug + + return ( +
  1. +
    +
    +

    + + {title} + +

    + {post.frontmatter.date} +
    +
    +

    +

    +
    +
  2. + ) + })} +
) } From 384b76399017ffdd53e069de221876516faadbf4 Mon Sep 17 00:00:00 2001 From: Lennart Date: Mon, 28 Sep 2020 11:23:18 +0200 Subject: [PATCH 2/5] remove margin & padding styling --- starters/blog/src/pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starters/blog/src/pages/index.js b/starters/blog/src/pages/index.js index 229b2bf372a0a..f7bd3188f5c58 100644 --- a/starters/blog/src/pages/index.js +++ b/starters/blog/src/pages/index.js @@ -26,7 +26,7 @@ const BlogIndex = ({ data, location }) => { -
    +
      {posts.map(post => { const title = post.frontmatter.title || post.fields.slug From 077477c3050f57e6ccc7b8cccd7571c7b75326ee Mon Sep 17 00:00:00 2001 From: Lennart Date: Mon, 28 Sep 2020 11:23:45 +0200 Subject: [PATCH 3/5] revert import change --- starters/blog/src/pages/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starters/blog/src/pages/index.js b/starters/blog/src/pages/index.js index f7bd3188f5c58..15b60544cb18c 100644 --- a/starters/blog/src/pages/index.js +++ b/starters/blog/src/pages/index.js @@ -1,5 +1,5 @@ -import { graphql, Link } from "gatsby" import React from "react" +import { Link, graphql } from "gatsby" import Bio from "../components/bio" import Layout from "../components/layout" import SEO from "../components/seo" From 1a42aa900b77ac0bf27d56d11923f2c0415cc070 Mon Sep 17 00:00:00 2001 From: Lennart Date: Mon, 28 Sep 2020 11:24:08 +0200 Subject: [PATCH 4/5] revert whitespace change --- starters/blog/src/pages/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/starters/blog/src/pages/index.js b/starters/blog/src/pages/index.js index 15b60544cb18c..074f77aec7100 100644 --- a/starters/blog/src/pages/index.js +++ b/starters/blog/src/pages/index.js @@ -1,5 +1,6 @@ import React from "react" import { Link, graphql } from "gatsby" + import Bio from "../components/bio" import Layout from "../components/layout" import SEO from "../components/seo" From 6d316b8973347542628da5a8f6427689d145101a Mon Sep 17 00:00:00 2001 From: Lennart Date: Mon, 28 Sep 2020 11:28:47 +0200 Subject: [PATCH 5/5] remove duplicate "key" --- starters/blog/src/pages/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/starters/blog/src/pages/index.js b/starters/blog/src/pages/index.js index 074f77aec7100..7dfcaab704bb5 100644 --- a/starters/blog/src/pages/index.js +++ b/starters/blog/src/pages/index.js @@ -34,7 +34,6 @@ const BlogIndex = ({ data, location }) => { return (