mirror of
				https://github.com/JuanCanham/fresh-themes.git
				synced 2025-10-31 21:07:27 +00:00 
			
		
		
		
	Introduce global theme partials.
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user