1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2024-11-24 17:10:12 +00:00

Improve "references" coverage.

1. Introduce TXT, MD, and DOC section partials for "references".
2. Reference TXT/MD partials from Basis theme so inherited themes
(Modern, Compact, Positive) see the changes.
This commit is contained in:
hacksalot 2016-01-19 23:25:50 -05:00
parent bc77d70ed5
commit fe6046a107
7 changed files with 87 additions and 0 deletions

View File

@ -0,0 +1,49 @@
<wx:sub-section>
{{#> header-references }}
{{> header-simple _title="REFERENCES" _section="references" }}
{{/header-references}}
{{#each r.references}}
<wx:sub-section>
<w:p wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA" wsp:rsidRDefault="00606071" wsp:rsidP="00E578D4">
<w:pPr>
<w:pStyle w:val="Heading2"/>
<w:tabs>
<w:tab w:val="right" w:pos="9360"/>
</w:tabs>
</w:pPr>
<w:r wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA">
<w:t>{{{ name }}}</w:t>
</w:r>
{{#if role}}
<w:r wsp:rsidR="009452CA" wsp:rsidRPr="00606071">
<w:t>, {{{ role }}}</w:t>
</w:r>
{{/if}}
{{#if category}}
<w:r wsp:rsidR="009452CA" wsp:rsidRPr="00606071">
<w:t> ({{{ category }}})</w:t>
</w:r>
{{/if}}
<w:r wsp:rsidR="00EA0B64">
<w:tab/>
</w:r>
<w:r wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA">
<w:t>{{formatDate safe.start 'MMM YYYY'}} — {{formatDate safe.end 'MMM YYYY'}}</w:t>
</w:r>
</w:p>
<w:p wsp:rsidR="00C146CA" wsp:rsidRPr="000A3AF0" wsp:rsidRDefault="00C146CA" wsp:rsidP="00C146CA">
<w:pPr>
<w:rPr>
<w:sz-cs w:val="20"/>
</w:rPr>
</w:pPr>
{{{wpml summary true}}}
</w:p>
</wx:sub-section>
{{/each}}
</wx:sub-section>

View File

@ -0,0 +1,14 @@
{{#section "references"}}
## {{{sectionTitle "REFERENCES"}}}
{{#each r.references }}
### *{{{ name }}}*{{#if role}}, {{{ role }}}{{/if}}{{#if category}} ({{{ category }}}){{/if}}
{{#if summary }}
{{{ summary }}}
{{/if}}
{{#if contact}}{{#each contact }}{{{ label }}}: {{{ value }}}
{{/each}}
{{/if}}
{{/each}}
{{/section}}

View File

@ -0,0 +1,14 @@
{{#section "references"}}
{{{sectionTitle "REFERENCES"}}} ---------------------------------------------------------------------
{{#each r.references }}
{{{ name }}}{{#if role}}, {{{ role }}}{{/if}}{{#if category}} ({{{ category }}}){{/if}}
{{#if summary }}
{{{ summary }}}
{{/if}}
{{#if contact}}{{#each contact }}{{{ label }}}: {{{ value }}}
{{/each}}
{{/if}}
{{/each}}
{{/section}}

View File

@ -23,3 +23,5 @@
{{> section/recognition }}
{{> section/speaking }}
{{> section/references }}

View File

@ -21,3 +21,5 @@
{{> section/service }}
{{> section/recognition }}
{{> section/references }}

View File

@ -202,6 +202,7 @@
{{#*inline "header-writing"}}{{> header-icon _title="WRITING" _section="writing" _icon="pict/wri" }}{{/inline}}
{{#*inline "header-recognition"}}{{> header-icon _title="RECOGNITION" _section="recognition" _icon="pict/rec" }}{{/inline}}
{{#*inline "header-speaking"}}{{> header-icon _title="SPEAKING" _section="speaking" _icon="pict/arrow" }}{{/inline}}
{{#*inline "header-references"}}{{> header-icon _title="REFERENCES" _section="references" _icon="pict/arrow" }}{{/inline}}
{{!<!--
@ -223,6 +224,7 @@
{{#section "writing"}}{{> section/writing }}{{/section}}
{{#section "recognition"}}{{> section/recognition }}{{/section}}
{{#section "speaking"}}{{> section/speaking }}{{/section}}
{{#section "references"}}{{> section/references }}{{/section}}
{{!<!--
And we're done! Close off the word document and go home.

View File

@ -562,6 +562,10 @@
{{/inline}}
{{#section "speaking"}}{{> section/speaking }}{{/section}}
{{#*inline "header-references"}}
{{> header-icon _title="REFERENCES" _section="references" _icon="pict/arrow" }}
{{/inline}}
{{#section "references"}}{{> section/references }}{{/section}}
<w:sectPr wsp:rsidR="00B43FDC" wsp:rsidRPr="000A3AF0" wsp:rsidSect="001B7422">
<w:pgSz w:w="12240" w:h="15840"/>