escape institution & name, make studyType optional

This commit is contained in:
Juan Canham 2020-03-17 03:05:29 +00:00
parent dcbfafeb5c
commit 20ca05be16
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<h3 class="{{headerClass}}"><span class="fa fa-fw fa-mortar-board"></span>&nbsp;{{{sectionTitle "Education"}}}</h3> <h3 class="{{headerClass}}"><span class="fa fa-fw fa-mortar-board"></span>&nbsp;{{{sectionTitle "Education"}}}</h3>
<div class="{{contentClass}}"> <div class="{{contentClass}}">
{{#each r.education.history}} {{#each r.education.history}}
<h4><strong>{{studyType}}</strong>, {{#if url}}<a href="{{{url}}}">{{institution}}</a>{{else}}{{institution}}{{/if}}</h4> {{#if studyType}}<h4><strong>{{studyType}}</strong>, {{/if}}{{#if url}}<a href="{{{url}}}">{{institution}}</a>{{else}}{{{institution}}}{{/if}}</h4>
{{#if area}}<h5>{{area}}</h5>{{/if}} {{#if area}}<h5>{{area}}</h5>{{/if}}
{{formatDate safe.start 'YYYY-MM'}}&mdash;{{formatDate safe.end 'YYYY-MM'}} {{formatDate safe.start 'YYYY-MM'}}&mdash;{{formatDate safe.end 'YYYY-MM'}}
{{#if curriculum}} {{#if curriculum}}

View File

@ -4,7 +4,7 @@
<h3 class="{{headerClass}}"><span class="fa fa-fw fa-heart"></span>&nbsp;{{{sectionTitle "Interests"}}}</h3> <h3 class="{{headerClass}}"><span class="fa fa-fw fa-heart"></span>&nbsp;{{{sectionTitle "Interests"}}}</h3>
<div class="{{contentClass}}"> <div class="{{contentClass}}">
{{#each r.interests}} {{#each r.interests}}
<h4>{{name}}</h4> <h4>{{{name}}}</h4>
{{{summary}}} {{{summary}}}
{{#unless @last}}<div>&nbsp;</div>{{/unless}} {{#unless @last}}<div>&nbsp;</div>{{/unless}}
{{/each}} {{/each}}