FIX readme
This commit is contained in:
parent
3141d18615
commit
2400138b0c
28
index.html
28
index.html
@ -1,17 +1,19 @@
|
||||
<p><html></p>
|
||||
<p><head>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link href="public/style.min.css" rel=" stylesheet">
|
||||
<title> Best resume ever </title>
|
||||
</head></p>
|
||||
<p><body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<a href="https://github.com/SalamiMitPizza/best-resume-ever" target="_blank">
|
||||
<div id="forkme">View on Github <img src="public/github.png" /></div>
|
||||
</a>
|
||||
<div id="readme">
|
||||
# best-resume-ever</p>
|
||||
<h1 id="bestresumeever">best-resume-ever</h1>
|
||||
<p>Build your best resume ever!</p>
|
||||
<p>A collection of beautiful resumes build with LESS and Mustache Templates. Choose your favorite Curriculum Vitae and easily export it as pdf.</p>
|
||||
<h2 id="resumes">Resumes</h2>
|
||||
@ -40,11 +42,11 @@
|
||||
<p>Feel free to create your own templates!</p>
|
||||
<hr />
|
||||
<p>Icons made by <a href="http://www.flaticon.com/authors/vectors-market" title="Vectors Market">Vectors Market</a> from <a href="http://www.flaticon.com" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0">CC 3.0 BY</a></p>
|
||||
<pre><code></div>
|
||||
<script>
|
||||
var headline = document.getElementsByTagName('h1')[0];
|
||||
headline.innerHTML += '<img src="public/suitcase.png" width="150" />';
|
||||
</script>
|
||||
</code></pre>
|
||||
<p></body></p>
|
||||
<p></html></p>
|
||||
</div>
|
||||
<script>
|
||||
var headline = document.getElementsByTagName('h1')[0];
|
||||
headline.innerHTML += '<img src="public/suitcase.png" width="150" />';
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@ -17,12 +17,12 @@ function readFileContent(fileName) {
|
||||
|
||||
async function renderReadMe() {
|
||||
const readmeContent = await readFileContent('README.md');
|
||||
const readmeHTML = converter.makeHtml(readmeContent);
|
||||
const githubPagesTemplate = await readFileContent('resumes/views/githubPages.mustache');
|
||||
const readme = Mustache.render(githubPagesTemplate, {
|
||||
content: readmeContent
|
||||
content: readmeHTML
|
||||
});
|
||||
const html = converter.makeHtml(readme);
|
||||
writeFile('index.html', html, err => {
|
||||
writeFile('index.html', readme, err => {
|
||||
if (err) console.log(err)
|
||||
else console.log('Github pages index.html was successfully generated from README.');
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user