feat: partials: improve consistency of MD & TXT formats

This commit is contained in:
hacksalot 2018-02-07 23:23:16 -05:00
parent 3ed791b1f4
commit ceb9901669
No known key found for this signature in database
GPG Key ID: 2F343EC247CA4B06
10 changed files with 20 additions and 22 deletions

View File

@ -8,7 +8,8 @@
{{#> body-writing }} {{#> body-writing }}
<div> <div>
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>, <h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
{{ publisher.name }}</h3>
{{stringOrObject publisher "name" }}</h3>
<span class="tenure">{{date date 'YYYY'}}</span> <span class="tenure">{{date date 'YYYY'}}</span>
{{{ summary }}} {{{ summary }}}
{{> highlights }} {{> highlights }}

View File

@ -6,10 +6,9 @@
{{{ summary }}} {{{ summary }}}
{{#if highlights}} {{#if highlights}}
{{#each highlights}} {{#each highlights}}
- {{{ this }}} - {{{ this }}}
{{/each}} {{/each}}{{/if}}
{{/if}}
{{/each}} {{/each}}
{{/section}} {{/section}}

View File

@ -1,13 +1,8 @@
{{#section 'writing'}} {{#section 'writing'}}
## WRITING ## {{{sectionTitle "WRITING"}}}
{{#each r.writing}} {{#each r.writing}}
{{#if url}} ### ***{{linkMD title url}}*** ({{#if publisher}}{{stringOrObject publisher "name"}}, {{/if}}{{date date}})
### [{{{ title }}}]({{{ url }}}) ({{date date}})
{{else}}
### {{{ title }}} ({{date date}})
{{/if}}
{{{ summary }}} {{{ summary }}}
{{/each}} {{/each}}

View File

@ -3,7 +3,8 @@
{{#each r.extracurricular }} {{#each r.extracurricular }}
{{{ title }}}, {{{ activity }}} ({{dateRange .}}) {{{ title }}}, {{{ activity }}} ({{dateRange .}})
{{{ summary }}} {{#if summary}}{{{ summary }}}
{{/if}}
{{#if highlights}} {{#if highlights}}
{{#each highlights}} {{#each highlights}}
- {{{ this }}} - {{{ this }}}

View File

@ -3,15 +3,13 @@
{{#each r.governance }} {{#each r.governance }}
{{#if role}}{{{ role }}}, {{/if}}{{{ organization }}}{{#has 'start'}} ({{dateRange .}}){{/has}} {{#if role}}{{{ role }}}, {{/if}}{{{ organization }}}{{#has 'start'}} ({{dateRange .}}){{/has}}
{{~#if summary}} {{#if summary}}{{{ summary }}}
{{/if}}
{{{ summary }}}{{/if}} {{#if highlights}}
{{~#if highlights}}
{{#each highlights}} {{#each highlights}}
- {{{ this }}} - {{{ this }}}
{{/each}}{{/if}} {{/each}}
{{/if}}
{{/each}} {{/each}}
{{/section}} {{/section}}

View File

@ -1 +1,4 @@
{{#has 'info.brief' }}{{{ r.info.brief }}}{{/has}} {{#has 'info.brief' }}
{{{ r.info.brief }}}
{{/has}}

View File

@ -3,7 +3,6 @@
{{#each r.samples }} {{#each r.samples }}
{{{ title }}} ({{date date}}) {{{ title }}} ({{date date}})
{{{ summary }}} {{{ summary }}}
{{#if highlights}} {{#if highlights}}
{{#each highlights}} {{#each highlights}}

View File

@ -4,4 +4,5 @@
{{#each r.skills.sets}} {{#each r.skills.sets}}
- {{{ name }}}: {{#each skills}}{{{ . }}} {{/each}} - {{{ name }}}: {{#each skills}}{{{ . }}} {{/each}}
{{/each}} {{/each}}
{{/section}} {{/section}}

View File

@ -2,7 +2,7 @@
{{{sectionTitle "WRITING"}}} ------------------------------------------------------------------------ {{{sectionTitle "WRITING"}}} ------------------------------------------------------------------------
{{#each r.writing}} {{#each r.writing}}
{{{ title }}}{{#if date}} ({{date date}}){{/if}} {{{ title }}} ({{#if publisher}}{{stringOrObject publisher "name" }}{{/if}}{{#if date}}, {{date date}}{{/if}})
{{#if summary}}{{{ summary }}} {{#if summary}}{{{ summary }}}
{{/if}} {{/if}}

View File

@ -4,6 +4,7 @@
{{#has 'contact.website' }}Web: {{{ r.contact.website }}}{{/has}} {{#has 'contact.website' }}Web: {{{ r.contact.website }}}{{/has}}
================================================================================ ================================================================================
{{> section/info }} {{> section/info }}
{{> section/skills }} {{> section/skills }}