Skip to content

Commit 611c93f

Browse files
committed
use same frontmatter as Dev.to
1 parent ac89f7d commit 611c93f

File tree

9 files changed

+228
-208
lines changed

9 files changed

+228
-208
lines changed

content/posts/a-post-with-a-poster.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
---
22
title: A post with a poster
33
date: 2019-01-07
4+
published: true
45
tags: ['Markdown']
5-
poster: ./images/alexandr-podvalny-220262-unsplash.jpg
6-
excerpt: "Markdown is intended to be as easy-to-read and easy-to-write as is feasible. Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions."
6+
series: false
7+
cover_image: ./images/alexandr-podvalny-220262-unsplash.jpg
8+
canonical_url: false
9+
description: "Markdown is intended to be as easy-to-read and easy-to-write as is feasible. Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions."
710
---
811

912
## Overview

content/posts/markdown-test-file.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
---
22
title: Markdown test files
33
date: 2019-02-06
4+
published: true
45
tags: ['Markdown']
5-
excerpt: "Markdown is intended to be as easy-to-read and easy-to-write as is feasible. Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions."
6+
canonical_url: false
7+
description: "Markdown is intended to be as easy-to-read and easy-to-write as is feasible. Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it's been marked up with tags or formatting instructions."
68
---
79

810
## Overview

content/posts/say-hello-to-gridsome.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
title: Say hello to Gridsome 🎉
33
date: 2019-02-07
44
tags: ['Markdown', 'Releases']
5-
excerpt: "A new static site generator baby is born. It's highly inspired by Gatsby.js (React based) but built on top of Vue.js. We have been working on it for a year and will have a beta ready soon. You can expect this baby to grow up fast!"
5+
canonical_url: false
6+
description: "A new static site generator baby is born. It's highly inspired by Gatsby.js (React based) but built on top of Vue.js. We have been working on it for a year and will have a beta ready soon. You can expect this baby to grow up fast!"
7+
68
---
79

810
We think **Gridsome** is a missing piece to the Vue.js ecosystem. What Gatsby.js does for React.js is a game changer in how we build websites. React.js is excellent, but we think Vue.js is more approachable for most web designers and devs getting started with JAMstack. Gridsome is the Vue.js alternative to Gatsby.

src/assets/style/_base.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,9 @@ img {
3030
h1,h2,h3,h4,h5,h6 {
3131
transition: color .6s;
3232
color: var(--title-color);
33+
}
34+
35+
36+
li {
37+
list-style: disc;
3338
}

src/components/PostCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
22
<div class="post-card content-box" :class="{'post-card--has-poster' : post.poster}">
33
<div class="post-card__header">
4-
<g-image v-if="post.poster" class="post-card__image" :src="post.poster" />
4+
<g-image v-if="post.coverImage" class="post-card__image" :src="post.coverImage" />
55
</div>
66
<div class="post-card__content">
77
<h2 class="post-card__title" v-html="post.title" />
8-
<p class="post-card__excerpt" v-html="post.excerpt" />
8+
<p class="post-card__description" v-html="post.description" />
99
<PostMeta class="post-card__meta" :post="post" />
1010
<g-link class="post-card__link" :to="post.path">Link</g-link>
1111
</div>

src/pages/Index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ query {
2929
path
3030
date (format: "D. MMMM YYYY")
3131
timeToRead
32-
excerpt
33-
poster (width: 770, height: 380, blur: 10)
32+
description
33+
coverImage (width: 770, height: 380, blur: 10)
3434
}
3535
}
3636
}

src/templates/Post.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
<div class="post content-box">
1212
<div class="post__header">
13-
<g-image v-if="$page.post.poster" :src="$page.post.poster" />
13+
<g-image v-if="$page.post.coverImage" :src="$page.post.coverImage" />
1414
</div>
15-
<p v-if="$page.post.excerpt" class="post__excerpt" v-html="$page.post.excerpt" />
1615
<div class="post__content" v-html="$page.post.content" />
1716
<div class="post__footer">
1817
<!-- Add anything here -->
@@ -46,9 +45,9 @@ query Post ($path: String!) {
4645
path
4746
date (format: "D. MMMM YYYY")
4847
timeToRead
49-
excerpt
48+
description
5049
content
51-
poster (width: 860, blur: 10)
50+
coverImage (width: 860, blur: 10)
5251
}
5352
}
5453
</page-query>

src/templates/Tag.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ query Tag ($id: String!) {
2020
path
2121
date (format: "D. MMMM YYYY")
2222
timeToRead
23-
excerpt
23+
description
24+
coverImage (width: 860, blur: 10)
2425
content
2526
}
2627
}

0 commit comments

Comments
 (0)