Commit 45ed6f78 authored by Juan's avatar Juan
Browse files

Updated json2md file

parent 94ab47f8
Pipeline #2062 passed with stages
in 2 minutes and 45 seconds
......@@ -8,7 +8,7 @@ layout: main
<div class="contributors-list-container">
{% for contributor in site.contributors %}
<div class="contributor-element">
<a href="{{ site.baseurl }}/{{ contributor.permalink }}">
<a href="{{ site.baseurl }}{{ contributor.permalink }}">
<img src="{{ contributor.img_src }}" />
<h5>{{ contributor.name }}</h5>
</a>
......
......@@ -33,13 +33,13 @@ const createContributorsMD = (data) => {
layout: contributor
img_src: https://radical-openness.org${contributorImgSrc}
profile_src: https://radical-openness.org${contributorHref}
permalink: /contributors/${contributorNameSlug}/
name: ${contributorName}
permalink: /contributor/${contributorNameSlug}/
name: "${contributorName}"
text: '${contributorText}'
--- `;
fs.writeFile(
`${__dirname}/contributors/${contributorNameSlug}.md`,
`${__dirname}/_contributors/${contributorNameSlug}.md`,
mdFrontMatter,
function (err) {
if (err) throw err;
......@@ -79,7 +79,7 @@ permalink: /program/${programNameSlug}/
name: "${programName}"
format: ${programFormat}
program_src: ${programSrc}
contributors: ${programContributors}
contributors: "${programContributors}"
---
${programText}`;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment