lib/assets/cv.mustache in yaml-cv-0.1.1 vs lib/assets/cv.mustache in yaml-cv-0.1.8
- old
+ new
@@ -1,12 +1,17 @@
+<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> {{ full_name }} - {{{ details.title }}} </title>
<style>
{{ css }}
+
+ {{# is_pdf}}
+ {{ pdf_css }}
+ {{/ is_pdf}}
</style>
</head>
<body>
<div class="cv-wrapper">
@@ -46,27 +51,30 @@
| |_/ / |_/ / | | | |_ | | | | | |__
| __/| /| | | | _| | | | | | __|
| | | |\ \\ \_/ / | _| |_| |____| |___
\_| \_| \_|\___/\_| \___/\_____/\____/
-->
- <tr class="section">
+ {{# has_profile}}
+ <tr class="section section-profile">
<td class="title-wrapper">
<p class="title cyan">Profile</p>
</td>
<td class="content-wrapper">
<p class="content">{{{ profile }}}</p>
</td>
</tr>
+ {{/ has_profile}}
<!--
_____ _ _______ _ _ _____
/ ___| | / /_ _| | | | / ___|
\ `--.| |/ / | | | | | | \ `--.
`--. \ \ | | | | | | `--. \
/\__/ / |\ \_| |_| |____| |____/\__/ /
\____/\_| \_/\___/\_____/\_____/\____/
-->
+ {{# has_skills}}
<tr class="section">
<td class="title-wrapper">
<p class="title cyan">Skills</p>
</td>
<td class="content-wrapper skills-section">
@@ -81,34 +89,37 @@
{{/ skills.fields}}
</ul>
</div>
</td>
</tr>
+ {{/ has_skills}}
<!--
_____ _____ _____ _ _ _ _ _____ _____ ___ _
|_ _| ___/ __ \| | | || \ | |_ _/ __ \ / _ \ | |
| | | |__ | / \/| |_| || \| | | | | / \// /_\ \| |
| | | __|| | | _ || . ` | | | | | | _ || |
| | | |___| \__/\| | | || |\ |_| |_| \__/\| | | || |____
\_/ \____/ \____/\_| |_/\_| \_/\___/ \____/\_| |_/\_____/
-->
+ {{# has_technical}}
<tr class="section">
<td class="title-wrapper">
<p class="title cyan">Technical</p>
</td>
<td class="content-wrapper">
- <ul class="skill-list no-list">
+ <table class="technical-list">
{{# technical}}
- <li>
- <span class="skill-title">{{ category }}:</span>
- <span class="content">{{{ items }}}</span>
- </li>
+ <tr>
+ <td class="skill-title">{{ category }}</td>
+ <td width="100%" class="content"><p>{{{ items }}}</p></td>
+ </tr>
{{/ technical}}
- </ul>
+ </table>
</td>
</tr>
+ {{/ has_technical}}
<!--
_____ _____ _____ _____ _____ _____ _ _ _____
/ ___| ___/ __ \_ _|_ _| _ | \ | |/ ___|
\ `--.| |__ | / \/ | | | | | | | | \| |\ `--.
@@ -126,34 +137,45 @@
<table class="subsection">
<tr>
<td>
<p class="title">
{{# logo}}
- <img class="logo" src="data:image/png;base64,{{ logo }}">
+ <img class="logo" src="data:image/png;base64,{{ logo_img }}">
{{/ logo}}
{{ title }}
</p>
</td>
<td class="period-wrapper">
<p>
{{# from}}
- {{ from.month }} <b>{{ from.year }}</b> -
- {{# to}}{{ to.month }} <b>{{ to.year }}</b>{{/ to}}
- {{^ to}}Present{{/ to}}
+ {{ from.month_name }} <b>{{ from.year }}</b>
+ {{# to}}
+ -
+ {{# to.year}}
+ {{ to.month_name }} <b>{{ to.year }}</b>
+ {{/ to.year}}
+ {{^ to.year}}
+ {{ to }}
+ {{/ to.year}}
+ {{/ to}}
{{/ from}}
</p>
</td>
</tr>
<tr>
+ {{# subtitle}}
<td>
<p class="subtitle">
{{ subtitle }}
</p>
</td>
+ {{/ subtitle}}
+ {{# location}}
<td class="location-wrapper">
<p class="cyan">{{ location }}</p>
</td>
+ {{/ location}}
</tr>
<tr>
<td colspan="2">
<ul class="no-list">
{{# description}}
@@ -165,7 +187,9 @@
</table>
{{/ items}}
</td>
</tr>
{{/ sections}}
+ </table>
+ </div>
</body>
</html>
\ No newline at end of file