mirror of
				https://github.com/JuanCanham/fresh-themes.git
				synced 2025-10-31 04:47:28 +00:00 
			
		
		
		
	Introduce global theme partials.
This commit is contained in:
		| @@ -515,6 +515,7 @@ | ||||
|       {{{wpml RAW.info.brief }}} | ||||
|       {{#section "skills"}}{{> skills }}{{/section}} | ||||
|       {{#section "employment"}}{{> employment }}{{/section}} | ||||
|       {{#section "projects"}}{{> projects }}{{/section}} | ||||
|       {{#section "education"}}{{> education }}{{/section}} | ||||
|       <w:sectPr wsp:rsidR="00B43FDC" wsp:rsidRPr="000A3AF0" wsp:rsidSect="001B7422"> | ||||
|         <w:pgSz w:w="12240" w:h="15840"/> | ||||
|   | ||||
| @@ -17,6 +17,8 @@ | ||||
|         </div> | ||||
|       </header> | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#has "info.brief"}} | ||||
| <section id="summary"> | ||||
|   {{{ r.info.brief }}} | ||||
| @@ -24,6 +26,7 @@ | ||||
| {{/has}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "skills"}} | ||||
| <section id="skills"> | ||||
|   <header> | ||||
| @@ -55,7 +58,6 @@ | ||||
|   <header> | ||||
|   <h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr> | ||||
|   </header> | ||||
|  | ||||
|   {{#each r.employment.history}} | ||||
|       <h3><em>{{ position }}</em>, | ||||
|         {{#if url }} | ||||
| @@ -63,7 +65,7 @@ | ||||
|         {{else}} | ||||
|         {{ employer }} | ||||
|         {{/if}} | ||||
|         <span class="tenure">{{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}<span></h3> | ||||
|         <span class="tenure">{{dateRange .}}<span></h3> | ||||
|       <p style="clear: both;">{{{ summary }}}</p> | ||||
|       {{#if highlights}} | ||||
|         <ul> | ||||
| @@ -73,10 +75,11 @@ | ||||
|         </ul> | ||||
|       {{/if}} | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section 'projects'}} | ||||
| <hr> | ||||
| <section id="projects"> | ||||
| @@ -84,12 +87,13 @@ | ||||
|   <h2><span class="fa fa-star"></span>{{{sectionTitle "Projects"}}}</h2> | ||||
|   </header> | ||||
|   {{#each r.projects}} | ||||
|     <h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}} | ||||
|     {{#if url}} | ||||
|     <h4><span class="res-label">{{ role }}</span>, <a href="{{{ url }}}">{{ title }}</a></h4> | ||||
|     <a href="{{{ url }}}">{{ title }}</a> | ||||
|     {{else}} | ||||
|     <h4><span class="res-label">{{ role }}</span>, <span class="defunct">{{ title }}</span></h4> | ||||
|     {{ title }} | ||||
|     {{/if}} | ||||
|     <span class="tenure">{{formatDate safe.start 'YYYY-MM' }}—{{formatDate safe.end 'YYYY-MM' }}</span> | ||||
|     <span class="tenure">{{dateRange .}}</span></h3> | ||||
|     {{{ summary }}} | ||||
|     {{#if proj.highlights}} | ||||
|       <ul> | ||||
| @@ -99,22 +103,24 @@ | ||||
|       </ul> | ||||
|     {{/if}} | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "education"}} | ||||
| <section id="education"> | ||||
|   <header> | ||||
|   <h2><span class="fa fa-mortar-board"></span> {{{sectionTitle "Education"}}}</h2><hr> | ||||
|   </header> | ||||
|   {{#each r.education.history}} | ||||
|     <h3>{{{ institution }}} <span class="tenure">{{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}<span></h3> | ||||
|     <h3>{{{ institution }}} <span class="tenure">{{dateRange .}}<span></h3> | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "service"}} | ||||
| <section id="volunteer"> | ||||
|   <header> | ||||
| @@ -127,7 +133,7 @@ | ||||
|       {{else}} | ||||
|       {{ organization }} | ||||
|       {{/if}} | ||||
|       <span class="tenure">{{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}<span></h3> | ||||
|       <span class="tenure">{{dateRange .}}<span></h3> | ||||
|     <p style="clear: both;">{{{ summary }}}</p> | ||||
|     {{#if highlights}} | ||||
|       <ul> | ||||
| @@ -137,10 +143,11 @@ | ||||
|       </ul> | ||||
|     {{/if}} | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "writing"}} | ||||
| <section id="publications"> | ||||
|   <header> | ||||
| @@ -148,24 +155,28 @@ | ||||
|   </header> | ||||
|   {{#each r.writing }} | ||||
|     <h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>, | ||||
|       {{ publisher }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3> | ||||
|       {{ publisher.name }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3> | ||||
|   {{# if summary}}{{{ summary }}}{{/if}} | ||||
|   {{/each}} | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "recognition"}} | ||||
| <section id="awards"> | ||||
|   <header> | ||||
|   <h2><span class="fa fa-trophy"></span> {{{sectionTitle "recognition" "Awards"}}}</h2><hr> | ||||
|   </header> | ||||
|   {{#each r.recognition}} | ||||
|     <h4><span class="res-label">{{ title }}</span>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h4> | ||||
|     <h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3> | ||||
|     {{ summary }} | ||||
|   {{/each}} | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
|     </main> | ||||
|   </body> | ||||
| </html> | ||||
|   | ||||
| @@ -18,6 +18,8 @@ | ||||
|         </div> | ||||
|       </header> | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#has "info.brief"}} | ||||
| <section id="summary"> | ||||
|   {{{ r.info.brief }}} | ||||
| @@ -25,6 +27,7 @@ | ||||
| {{/has}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "skills"}} | ||||
| <section id="skills"> | ||||
|   <header> | ||||
| @@ -56,7 +59,6 @@ | ||||
|   <header> | ||||
|   <h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr> | ||||
|   </header> | ||||
|  | ||||
|   {{#each r.employment.history}} | ||||
|       <h3><em>{{ position }}</em>, | ||||
|         {{#if url }} | ||||
| @@ -64,7 +66,7 @@ | ||||
|         {{else}} | ||||
|         {{ employer }} | ||||
|         {{/if}} | ||||
|         <span class="tenure">{{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }}<span></h3> | ||||
|         <span class="tenure">{{dateRange .}}<span></h3> | ||||
|       <p style="clear: both;">{{{ summary }}}</p> | ||||
|       {{#if highlights}} | ||||
|         <ul> | ||||
| @@ -74,10 +76,11 @@ | ||||
|         </ul> | ||||
|       {{/if}} | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section 'projects'}} | ||||
| <hr> | ||||
| <section id="projects"> | ||||
| @@ -85,12 +88,13 @@ | ||||
|   <h2><span class="fa fa-star"></span>{{{sectionTitle "Projects"}}}</h2> | ||||
|   </header> | ||||
|   {{#each r.projects}} | ||||
|     <h3>{{#if role}}<em>{{camelCase role }}</em>,{{/if}} | ||||
|     {{#if url}} | ||||
|     <h4><span class="res-label">{{ role }}</span>, <a href="{{{ url }}}">{{ title }}</a></h4> | ||||
|     <a href="{{{ url }}}">{{ title }}</a> | ||||
|     {{else}} | ||||
|     <h4><span class="res-label">{{ role }}</span>, <span class="defunct">{{ title }}</span></h4> | ||||
|     {{ title }} | ||||
|     {{/if}} | ||||
|     <span class="tenure">{{formatDate safe.start 'YYYY-MM' }}—{{formatDate safe.end 'YYYY-MM' }}</span> | ||||
|     <span class="tenure">{{dateRange .}}</span></h3> | ||||
|     {{{ summary }}} | ||||
|     {{#if proj.highlights}} | ||||
|       <ul> | ||||
| @@ -100,22 +104,24 @@ | ||||
|       </ul> | ||||
|     {{/if}} | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "education"}} | ||||
| <section id="education"> | ||||
|   <header> | ||||
|   <h2><span class="fa fa-mortar-board"></span> {{{sectionTitle "Education"}}}</h2><hr> | ||||
|   </header> | ||||
|   {{#each r.education.history}} | ||||
|     <h3>{{{ institution }}} <span class="tenure">{{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}<span></h3> | ||||
|     <h3>{{{ institution }}} <span class="tenure">{{dateRange .}}<span></h3> | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "service"}} | ||||
| <section id="volunteer"> | ||||
|   <header> | ||||
| @@ -128,7 +134,7 @@ | ||||
|       {{else}} | ||||
|       {{ organization }} | ||||
|       {{/if}} | ||||
|       <span class="tenure">{{formatDate safe.start 'YYYY' }} — {{formatDate safe.end 'YYYY' }}<span></h3> | ||||
|       <span class="tenure">{{dateRange .}}<span></h3> | ||||
|     <p style="clear: both;">{{{ summary }}}</p> | ||||
|     {{#if highlights}} | ||||
|       <ul> | ||||
| @@ -138,10 +144,11 @@ | ||||
|       </ul> | ||||
|     {{/if}} | ||||
|   {{/each}} | ||||
|  | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "writing"}} | ||||
| <section id="publications"> | ||||
|   <header> | ||||
| @@ -149,24 +156,28 @@ | ||||
|   </header> | ||||
|   {{#each r.writing }} | ||||
|     <h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>, | ||||
|       {{ publisher }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3> | ||||
|       {{ publisher.name }} <span class="tenure">{{formatDate safe.date 'YYYY'}}</span></h3> | ||||
|   {{# if summary}}{{{ summary }}}{{/if}} | ||||
|   {{/each}} | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
| {{#section "recognition"}} | ||||
| <section id="awards"> | ||||
|   <header> | ||||
|   <h2><span class="fa fa-trophy"></span> {{{sectionTitle "recognition" "Awards"}}}</h2><hr> | ||||
|   </header> | ||||
|   {{#each r.recognition}} | ||||
|     <h4><span class="res-label">{{ title }}</span>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h4> | ||||
|     <h3><em>{{ title }}</em>, {{ from }} <span class="tenure">{{formatDate safe.date 'YYYY' }}</span></h3> | ||||
|     {{ summary }} | ||||
|   {{/each}} | ||||
| </section> | ||||
| {{/section}} | ||||
|  | ||||
|  | ||||
|  | ||||
|     </main> | ||||
|   </body> | ||||
| </html> | ||||
|   | ||||
							
								
								
									
										84
									
								
								themes/compact/src/partials/projects.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										84
									
								
								themes/compact/src/partials/projects.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,84 @@ | ||||
| <wx:sub-section> | ||||
|   <w:p wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA" wsp:rsidRDefault="00C146CA" wsp:rsidP="00C146CA"> | ||||
|     <w:pPr> | ||||
|       <w:pStyle w:val="Heading1"/> | ||||
|     </w:pPr> | ||||
|     <w:r wsp:rsidRPr="00C146CA"> | ||||
|       <w:t>{{{sectionTitle "PROJECTS"}}}</w:t> | ||||
|     </w:r> | ||||
|   </w:p> | ||||
|  | ||||
|   {{#each r.projects}} | ||||
|  | ||||
|   <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> | ||||
|         <w:t>{{ role }}, </w:t> | ||||
|       </w:r> | ||||
|       {{#if url}}<w:hlink w:dest="{{ url }}">{{/if}} | ||||
|         <w:r wsp:rsidR="009452CA" wsp:rsidRPr="00606071"> | ||||
|           {{#if url}} | ||||
|           <w:rPr> | ||||
|             <w:rStyle w:val="Hyperlink"/> | ||||
|           </w:rPr> | ||||
|           {{/if}} | ||||
|           <w:t>{{ title }}</w:t> | ||||
|         </w:r> | ||||
|       {{#if url}}</w:hlink>{{/if}} | ||||
|       <w:r wsp:rsidR="00EA0B64"> | ||||
|         <w:tab/> | ||||
|       </w:r> | ||||
|       <w:r wsp:rsidR="00C146CA" wsp:rsidRPr="00C146CA"> | ||||
|         <w:t>{{formatDate safe.start 'YYYY-MM'}} — {{formatDate safe.end 'YYYY-MM'}}</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:r wsp:rsidRPr="000A3AF0"> | ||||
|         <w:rPr> | ||||
|           <w:sz-cs w:val="20"/> | ||||
|         </w:rPr> | ||||
|         <w:t>{{ summary }}</w:t> | ||||
|       </w:r> --> | ||||
|     </w:p> | ||||
|  | ||||
|     {{#each highlights }} | ||||
|     <w:p wsp:rsidR="00C146CA" wsp:rsidRDefault="009452CA" wsp:rsidP="00C146CA"> | ||||
|       <w:pPr> | ||||
|         <w:pStyle w:val="ListParagraph"/> | ||||
|         <w:listPr> | ||||
|           <w:ilvl w:val="0"/> | ||||
|           <w:ilfo w:val="1"/> | ||||
|           <wx:t wx:val="•"/> | ||||
|           <wx:font wx:val="Calibri"/> | ||||
|         </w:listPr> | ||||
|         <w:rPr> | ||||
|           <w:sz-cs w:val="20"/> | ||||
|         </w:rPr> | ||||
|       </w:pPr> | ||||
|       {{{wpml this true}}} | ||||
|       <!-- <w:r> | ||||
|         <w:rPr> | ||||
|           <w:sz-cs w:val="20"/> | ||||
|         </w:rPr> | ||||
|         <w:t>{{ this }}</w:t> | ||||
|       </w:r> --> | ||||
|     </w:p> | ||||
|     {{/each}} | ||||
|  | ||||
|   </wx:sub-section> | ||||
|  | ||||
|   {{/each}} | ||||
|  | ||||
| </wx:sub-section> | ||||
		Reference in New Issue
	
	Block a user