This commit is contained in:
thomasdavis 2014-07-31 12:38:52 +10:00
parent aaa836c047
commit 9e8cccd85c
3 changed files with 14 additions and 20 deletions

View File

@ -27,8 +27,8 @@ function render(resumeObject) {
e.endDateYear = 'Present' e.endDateYear = 'Present'
} }
}); });
if(resumeObject.bio && resumeObject.bio.email && resumeObject.bio.email.personal) { if(resumeObject.basics && resumeObject.basics.email) {
resumeObject.bio.gravatar = gravatar.url(resumeObject.bio.email.personal, { resumeObject.basics.gravatar = gravatar.url(resumeObject.basics.email, {
s: '100', s: '100',
r: 'pg', r: 'pg',
d: 'mm' d: 'mm'

View File

@ -1,6 +1,6 @@
{ {
"name": "jsonresume-theme-modern", "name": "jsonresume-theme-modern",
"version": "0.0.16", "version": "0.0.17",
"description": "jsonresume-theme-modern =======================", "description": "jsonresume-theme-modern =======================",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{bio.firstName}} {{bio.lastName}}</title> <title>{{basics.firstName}} {{basics.lastName}}</title>
<link href="http://bootswatch.com/lumen/bootstrap.min.css" rel="stylesheet" /> <link href="http://bootswatch.com/lumen/bootstrap.min.css" rel="stylesheet" />
<style> <style>
section header h3 { section header h3 {
@ -31,12 +31,12 @@
<div class="col-md-8 col-md-offset-2"> <div class="col-md-8 col-md-offset-2">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<h1>{{bio.firstName}} {{bio.lastName}}</h1> <h1>{{basics.name}}<h1>
<h2>{{bio.location.city}}</h2> <h2>{{basics.location.city}}</h2>
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<img class="media-object img-circle pull-right" data-src="holder.js/64x64" alt="64x64" src="{{bio.gravatar}}" style="width: 100px; height: 100px; margin-top: 20px;"> <img class="media-object img-circle pull-right" data-src="holder.js/64x64" alt="64x64" src="{{basics.gravatar}}" style="width: 100px; height: 100px; margin-top: 20px;">
</div> </div>
</div> </div>
@ -46,19 +46,13 @@
<h3>About</h3> <h3>About</h3>
</header> </header>
<div class="col-md-9"> <div class="col-md-9">
<p>{{bio.summary}}</p> <p>{{basics.summary}}</p>
{{#bio.phone.personal}} {{#basics.phone}}
<strong>Phone:</strong> {{bio.phone.personal}} <br /> <strong>Phone:</strong> {{basics.phone}} <br />
{{/bio.phone.personal}} {{/basics.phone}}
{{#bio.email.personal}} {{#basics.email}}
<strong>Email:</strong> {{bio.email.personal}}<br /> <strong>Email:</strong> {{basics.email}}<br />
{{/bio.email.personal}} {{/basics.email}}
{{#bio.profiles.twitter}}
<strong>Twitter:</strong> <a href="https://twitter.com/{{bio.profiles.twitter}}">@{{bio.profiles.twitter}}</a><br />
{{/bio.profiles.twitter}}
{{#bio.profiles.github}}
<strong>Github:</strong> <a href="https://github.com/{{bio.profiles.github}}">{{bio.profiles.github}}</a><br />
{{/bio.profiles.github}}
</div> </div>
</section> </section>
{{#work.length}} {{#work.length}}