From 9edb68bb67c721ad403cc477d3a19d3f75925f46 Mon Sep 17 00:00:00 2001 From: unpregnant Date: Sun, 5 Feb 2017 00:57:24 +0100 Subject: [PATCH] FIX rendering of readme --- index.html | 90 +++++++++++++++++++-------------------------- src/renderReadMe.js | 7 ++-- 2 files changed, 41 insertions(+), 56 deletions(-) diff --git a/index.html b/index.html index 2a9abca..eaf94d5 100755 --- a/index.html +++ b/index.html @@ -1,66 +1,50 @@ - - - +

+

Best resume ever - - - +

+

View on Github
- # best-resume-ever - -Build your best resume ever! - -A collection of beautiful resumes build with LESS and Mustache Templates. Choose your favorite Curriculum Vitae and easily export it as pdf. - -## Resumes - - + # best-resume-ever

+

Build your best resume ever!

+

A collection of beautiful resumes build with LESS and Mustache Templates. Choose your favorite Curriculum Vitae and easily export it as pdf.

+

Resumes

+

- - -## Install - -Follow these instructions to create your own CV: - -- Clone this repository. -- Switch to project directory and run `npm install`. -- Adjust your personal information in `person.js`. -- Replace placeholder image `/public/person.jpg` with your portrait. -- To preview your CV run `npm start`. Check out . -- Feel free to adjust styles in `/less` according to your needs. -- When finished, run `npm run pdf` to generate all CVs as pdf. You will find the generated pdfs in `/pdf`. - -## Adding a template - -TODO - -## How to add a font - -TODO - -## Contribute - -Feel free to create your own templates! - --------------------------------------------------------------------------------- - -Icons made by [Vectors Market](http://www.flaticon.com/authors/vectors-market "Vectors Market") from [www.flaticon.com](http://www.flaticon.com "Flaticon") is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/ "Creative Commons BY 3.0") - -

- - - - +

+

Install

+

Follow these instructions to create your own CV:

+ +

Adding a template

+

TODO

+

How to add a font

+

TODO

+

Contribute

+

Feel free to create your own templates!

+
+

Icons made by Vectors Market from www.flaticon.com is licensed by CC 3.0 BY

+
</div>
+<script>
+    var headline = document.getElementsByTagName('h1')[0];
+    headline.innerHTML += '<img src="public/suitcase.png" width="150" />';
+</script>
+
+

+

\ No newline at end of file diff --git a/src/renderReadMe.js b/src/renderReadMe.js index e8938e9..9193018 100755 --- a/src/renderReadMe.js +++ b/src/renderReadMe.js @@ -16,11 +16,12 @@ function readFileContent(fileName) { } async function renderReadMe() { - const readme = await readFileContent('README.md'); + const readmeContent = await readFileContent('README.md'); const githubPagesTemplate = await readFileContent('resumes/views/githubPages.mustache'); - var html = Mustache.render(githubPagesTemplate, { - content: readme + const readme = Mustache.render(githubPagesTemplate, { + content: readmeContent }); + const html = converter.makeHtml(readme); writeFile('index.html', html, err => { if (err) console.log(err) else console.log('Github pages index.html was successfully generated from README.');