Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Commit

Permalink
feat(Photos): add media description
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed May 23, 2017
1 parent 0c8e6c9 commit 42f6935
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const buildPostContent = (post, locale) => {
case 'hero':
content[k] = {
title: post.fields[k][locale].fields.title[locale],
description: post.fields[k][locale].fields.description ? markdownConverter.makeHtml(post.fields[k][locale].fields.description[locale]) : undefined,
file: post.fields[k][locale].fields.file[locale]
}
break
Expand All @@ -72,6 +73,7 @@ const buildAuthorContent = (author, locale) => {
case 'photo':
content[k] = {
title: author.fields[k][locale].fields.title[locale],
description: author.fields[k][locale].fields.description ? markdownConverter.makeHtml(author.fields[k][locale].fields.description[locale]) : undefined,
file: author.fields[k][locale].fields.file[locale]
}
break
Expand Down

0 comments on commit 42f6935

Please sign in to comment.