diff --git a/src/virtualTemplate.js b/src/virtualTemplate.js index ce0226d..d689b41 100644 --- a/src/virtualTemplate.js +++ b/src/virtualTemplate.js @@ -23,7 +23,12 @@ ${stylesheet ? `\n` : ""} {{ post.data.title }} {{ absolutePostUrl }} + {%- if (post.data.description) -%} + {{ post.data.description }} + {{ post.content | renderTransforms(post.data.page, metadata.base) }} + {%- else -%} {{ post.content | renderTransforms(post.data.page, metadata.base) }} + {%- endif -%} {{ post.date | dateToRfc822 }} {{ metadata.author.name }} {{ absolutePostUrl }} @@ -56,6 +61,9 @@ ${stylesheet ? `\n` : ""} {{ post.date | dateToRfc3339 }} {{ absolutePostUrl }} + {%- if post.data.description %} + {{ post.data.description }} + {%- endif %} {{ post.content | renderTransforms(post.data.page, metadata.base) }} {%- endfor %}