1
0
mirror of https://github.com/JuanCanham/fresh-themes.git synced 2025-05-04 12:57:07 +01:00

Allow user-specified section headings.

This commit is contained in:
hacksalot
2016-01-04 17:07:30 -05:00
parent 4954079a6f
commit f49df02d6a
30 changed files with 247 additions and 187 deletions

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>{{ RAW.name }}</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
{{{styleSheet "compact-html.css"}}}
{{{styleSheet "compact-html.css"}}}
</head>
<body>
<main>
@ -28,7 +28,7 @@
{{#if r.skills}}
<section id="skills">
<header>
<h2><span class="fa fa-code"></span> Skills</h2><hr>
<h2><span class="fa fa-code"></span> {{{sectionTitle "Skills"}}}</h2><hr>
</header>
<table>
<thead>
@ -54,7 +54,7 @@
{{#if r.employment}}
<section id="employment">
<header>
<h2><span class="fa fa-building" style="vertical-align: top;"></span> Employment</h2><hr>
<h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr>
</header>
{{#each r.employment.history}}
@ -97,7 +97,7 @@
{{# if r.education}}
<section id="education">
<header>
<h2><span class="fa fa-mortar-board"></span> Education</h2><hr>
<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' }} &mdash; {{formatDate safe.end 'YYYY' }}<span></h3>
@ -109,7 +109,7 @@
{{#if r.service}}
<section id="volunteer">
<header>
<h2><span class="fa fa-child" style="vertical-align: top;"></span> Service</h2><hr>
<h2><span class="fa fa-child" style="vertical-align: top;"></span> {{{sectionTitle "Service"}}}</h2><hr>
</header>
{{#each r.service.history}}
<h3><em>{{ position }}</em>,
@ -135,7 +135,7 @@
{{#if r.writing}}
<section id="publications">
<header>
<h2><span class="fa fa-book"></span> Writing</h2><hr>
<h2><span class="fa fa-book"></span> {{{sectionTitle "Writing"}}}</h2><hr>
</header>
{{#each r.writing }}
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
@ -148,7 +148,7 @@
{{# if r.recognition}}
<section id="awards">
<header>
<h2><span class="fa fa-trophy"></span> Awards</h2><hr>
<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>

View File

@ -15,7 +15,7 @@
{{/if}}
{{#if r.employment}}
## EMPLOYMENT
## {{{sectionTitle "EMPLOYMENT"}}}
{{#each r.employment.history }}
{{#compare @index 4 operator="<"}}
@ -39,7 +39,7 @@ Prior to {{{ employer }}}, I worked on a range of projects for companies large a
{{/if}}
{{#if r.education}}
## EDUCATION
## {{{sectionTitle "EDUCATION"}}}
{{#each r.education.history}}
### {{{ institution }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }})
@ -61,7 +61,7 @@ Prior to {{{ employer }}}, I worked on a range of projects for companies large a
{{/if}}
{{#if r.service }}
## SERVICE
## {{{sectionTitle "SERVICE"}}}
{{#each r.service.history}}
### {{{ organization }}} ({{formatDate safe.start 'YYYY-MM' }} — {{formatDate safe.end 'YYYY-MM' }})
@ -75,7 +75,7 @@ Prior to {{{ employer }}}, I worked on a range of projects for companies large a
{{/each}}
{{/if}}
{{#if r.recognition}}
## RECOGNITION
## {{{sectionTitle "RECOGNITION"}}}
{{#each r.recognition}}
### {{{ title }}}, {{{ from }}} ({{formatDate safe.date 'MMM YYYY' }})

View File

@ -29,7 +29,7 @@
{{#if r.skills}}
<section id="skills">
<header>
<h2><span class="fa fa-code"></span> Skills</h2><hr>
<h2><span class="fa fa-code"></span> {{{sectionTitle "Skills"}}}</h2><hr>
</header>
<table>
<thead>
@ -55,7 +55,7 @@
{{#if r.employment}}
<section id="employment">
<header>
<h2><span class="fa fa-building" style="vertical-align: top;"></span> Employment</h2><hr>
<h2><span class="fa fa-building" style="vertical-align: top;"></span> {{{sectionTitle "Employment"}}}</h2><hr>
</header>
{{#each r.employment.history}}
@ -98,7 +98,7 @@
{{# if r.education}}
<section id="education">
<header>
<h2><span class="fa fa-mortar-board"></span> Education</h2><hr>
<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' }} &mdash; {{formatDate safe.end 'YYYY' }}<span></h3>
@ -110,7 +110,7 @@
{{#if r.service}}
<section id="volunteer">
<header>
<h2><span class="fa fa-child" style="vertical-align: top;"></span> Service</h2><hr>
<h2><span class="fa fa-child" style="vertical-align: top;"></span> {{{sectionTitle "Service"}}}</h2><hr>
</header>
{{#each r.service.history}}
<h3><em>{{ position }}</em>,
@ -136,7 +136,7 @@
{{#if r.writing}}
<section id="publications">
<header>
<h2><span class="fa fa-book"></span> Writing</h2><hr>
<h2><span class="fa fa-book"></span> {{{sectionTitle "Writing"}}}</h2><hr>
</header>
{{#each r.writing }}
<h3><em>{{#if url}}<a href="{{{ url }}}">{{{ title }}}</a>{{else}}{{{ title }}}{{/if}}</em>,
@ -149,7 +149,7 @@
{{# if r.recognition}}
<section id="awards">
<header>
<h2><span class="fa fa-trophy"></span> Awards</h2><hr>
<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>

View File

@ -4,7 +4,7 @@
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:r wsp:rsidRPr="00C146CA">
<w:t>EDUCATION</w:t>
<w:t>{{{sectionTitle "EDUCATION"}}}</w:t>
</w:r>
</w:p>

View File

@ -4,7 +4,7 @@
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:r wsp:rsidRPr="00C146CA">
<w:t>EMPLOYMENT</w:t>
<w:t>{{{sectionTitle "EMPLOYMENT"}}}</w:t>
</w:r>
</w:p>

View File

@ -5,7 +5,7 @@
<w:pStyle w:val="Heading1"/>
</w:pPr>
<w:r wsp:rsidRPr="00C146CA">
<w:t>SKILLS</w:t>
<w:t>{{{sectionTitle "SKILLS"}}}</w:t>
</w:r>
</w:p>
<w:tbl>