From acd0776cf1a07640411c3a2e378eca2a2bf14cf4 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 11 Jan 2016 12:02:06 -0500 Subject: [PATCH] Basis: MD: Refactor to global partials. --- themes/basis/src/md.txt | 108 +++------------------------------------- 1 file changed, 8 insertions(+), 100 deletions(-) diff --git a/themes/basis/src/md.txt b/themes/basis/src/md.txt index 4d7aafa..c231d2b 100644 --- a/themes/basis/src/md.txt +++ b/themes/basis/src/md.txt @@ -6,103 +6,11 @@ {{#has "info.brief" }}{{{ r.info.brief }}}{{/has}} -{{#section "skills"}} -## {{{sectionTitle "SKILLS"}}} - -{{#each r.skills.sets}} - - {{{ name }}}: {{#each this.skills}}{{{ this }}} {{/each}} -{{/each}} -{{/section}} - -{{#section "employment"}} -## {{{sectionTitle "EMPLOYMENT"}}} - -{{#each r.employment.history }} - -{{#if url}} -### *{{{ position }}}*, [{{{ employer }}}]({{{ url }}}) ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{else}} -### *{{{ position }}}*, {{{ employer }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{/if}} -{{{ summary }}} -{{#if highlights}} -{{#each highlights}} - - {{{ this }}} -{{/each}} -{{/if}} - -{{/each}} -{{/section}} - -{{#section 'projects'}} -## {{{sectionTitle "PROJECTS"}}} - -{{#each r.projects }} -{{#if url }} -### *{{{camelCase role }}}*, [{{{ title }}}]({{{ url }}}) ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{else}} -### *{{{camelCase role }}}*, {{{ title }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{/if}} -{{{ description }}} -{{{ summary }}} -{{#if highlights}} -{{#each highlights}} - - {{{ . }}} - -{{/each}} -{{/if}} -{{/each}} -{{/section}} - -{{#section 'education'}} -## {{{sectionTitle "EDUCATION"}}} - -{{#each r.education.history}} -{{#if url}} -### [{{{ institution }}}]({{{ url }}}) ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{else}} -### {{{ institution }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{/if}} -{{#if summary }} -{{{ summary }}} -{{/if}} -{{#if courses}} -{{#each courses}} - - {{{ this }}}{{/each}}{{/if}} -{{/each}} -{{/section}} -{{#section 'writing'}} -## WRITING - -{{#each r.writing}} -### {{{ title }}} ({{formatDate safe.date 'YYYY-MM' }}) -{{{ summary }}} -{{/each}} -{{/section}} - -{{#section 'service'}} -## {{{sectionTitle "SERVICE"}}} - -{{#each r.service.history }} -{{#if url}} -### [{{{ organization }}}]({{{ url }}}) ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{else}} -### {{{ organization }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}) -{{/if}} -{{{ summary }}} -{{#if highlights}} -{{#each highlights}} - - {{{ this }}} -{{/each}} -{{/if}} -{{/each}} -{{/section}} - -{{#section 'recognition'}} -## {{{sectionTitle "RECOGNITION"}}} - -{{#each r.recognition}} -### *{{{ title }}}*, {{{ from }}} ({{formatDate safe.date 'MMM YYYY' }}) -{{{ summary }}} -{{/each}} -{{/section}} +{{> section/skills }} +{{> section/employment }} +{{> section/projects }} +{{> section/education }} +{{> section/samples }} +{{> section/writing }} +{{> section/service }} +{{> section/recognition }}