From 2ba5689a7699c5184b0361b63dfc9f63aaec2566 Mon Sep 17 00:00:00 2001 From: Avinal Kumar Date: Wed, 14 Sep 2022 00:16:32 +0530 Subject: [PATCH] fix yaml parsing error Signed-off-by: Avinal Kumar --- content/posts/development/lovely-dangerous-things-redhat.md | 6 +----- src/Blog.elm | 6 +++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/content/posts/development/lovely-dangerous-things-redhat.md b/content/posts/development/lovely-dangerous-things-redhat.md index 7aacf37..fd4333c 100644 --- a/content/posts/development/lovely-dangerous-things-redhat.md +++ b/content/posts/development/lovely-dangerous-things-redhat.md @@ -4,11 +4,7 @@ date: 2022-02-27 20:47 modified: 2022-03-07 22:47 category: development tags: [tekton, go, kubernetes, openshift, redhat, intern, golang, openshift-pipelines] -description: This blog is a descreptive account of the development of Minimal Tekton Server. -This is highly technical in nature, so please make sure that you have sufficient -knowledge about Golang, Docker, Kubernetes and TektonCD. You can refer to my -[previous blog]("https://avinal.space/posts/development/i-am-loving-it-redhat.html") -to know about these topics. +description: This blog is a descreptive account of the development of Minimal Tekton Server. This is highly technical in nature, so please make sure that you have sufficient knowledge about Golang, Docker, Kubernetes and TektonCD. You can refer to my [previous blog]("https://avinal.space/posts/development/i-am-loving-it-redhat.html") to know about these topics. --- # Developing Minimal Tekton Server diff --git a/src/Blog.elm b/src/Blog.elm index bfc624d..d3db20e 100644 --- a/src/Blog.elm +++ b/src/Blog.elm @@ -302,8 +302,8 @@ metaDecoder = Yaml.map7 YamlMeta (field "title" string) (field "date" string) - (field "description" (Yaml.maybe string)) + (Yaml.maybe (field "description" string)) (field "tags" (list string)) (field "category" string) - (field "image" (Yaml.maybe string)) - (field "modified" (Yaml.maybe string)) + (Yaml.maybe (field "image" string)) + (Yaml.maybe (field "modified" string))