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 ...@@ -8,7 +8,7 @@ layout: main
<div class="contributors-list-container"> <div class="contributors-list-container">
{% for contributor in site.contributors %} {% for contributor in site.contributors %}
<div class="contributor-element"> <div class="contributor-element">
<a href="{{ site.baseurl }}/{{ contributor.permalink }}"> <a href="{{ site.baseurl }}{{ contributor.permalink }}">
<img src="{{ contributor.img_src }}" /> <img src="{{ contributor.img_src }}" />
<h5>{{ contributor.name }}</h5> <h5>{{ contributor.name }}</h5>
</a> </a>
......
...@@ -33,13 +33,13 @@ const createContributorsMD = (data) => { ...@@ -33,13 +33,13 @@ const createContributorsMD = (data) => {
layout: contributor layout: contributor
img_src: https://radical-openness.org${contributorImgSrc} img_src: https://radical-openness.org${contributorImgSrc}
profile_src: https://radical-openness.org${contributorHref} profile_src: https://radical-openness.org${contributorHref}
permalink: /contributors/${contributorNameSlug}/ permalink: /contributor/${contributorNameSlug}/
name: ${contributorName} name: "${contributorName}"
text: '${contributorText}' text: '${contributorText}'
--- `; --- `;
fs.writeFile( fs.writeFile(
`${__dirname}/contributors/${contributorNameSlug}.md`, `${__dirname}/_contributors/${contributorNameSlug}.md`,
mdFrontMatter, mdFrontMatter,
function (err) { function (err) {
if (err) throw err; if (err) throw err;
...@@ -79,7 +79,7 @@ permalink: /program/${programNameSlug}/ ...@@ -79,7 +79,7 @@ permalink: /program/${programNameSlug}/
name: "${programName}" name: "${programName}"
format: ${programFormat} format: ${programFormat}
program_src: ${programSrc} program_src: ${programSrc}
contributors: ${programContributors} contributors: "${programContributors}"
--- ---
${programText}`; ${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