Fixes #2787 as an alternative to #2969. It was getting too cumbersome to have 2 different data sources for CV and also a lot of different layout files, so I decided to unify them all. Main changes: - synchronized the information inside RenderCV (`_data/cv.yml`) and JSONResume (`assets/json/resume.json`) - unified layout files for CV information - added the option to set the "data source" in the CV page --------- Signed-off-by: George Araújo <george.gcac@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
29 lines
805 B
Plaintext
29 lines
805 B
Plaintext
{% comment %}
|
|
Unified languages entry renderer for both formats
|
|
- RenderCV uses: name, summary
|
|
- JSONResume uses: language, fluency
|
|
{% endcomment %}
|
|
|
|
<div class="card-text font-weight-light">
|
|
{% for entry in entries %}
|
|
<div class="language-item">
|
|
{% if entry.icon %}
|
|
<i class="{{ entry.icon }}"></i>
|
|
{% endif %}
|
|
{% capture lang_name %}
|
|
{% if entry.name %}{{ entry.name }}{% elsif entry.language %}{{ entry.language }}{% endif %}
|
|
{% endcapture %}
|
|
{% capture fluency %}
|
|
{% if entry.summary %}{{ entry.summary }}{% elsif entry.fluency %}{{ entry.fluency }}{% endif %}
|
|
{% endcapture %}
|
|
<strong>{{ lang_name }}:</strong> {{ fluency }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<style>
|
|
.language-item {
|
|
padding: 0.5rem 0;
|
|
}
|
|
</style>
|