Skip to content

Commit

Permalink
Change the use of picture to image according to JSON schema. (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfbn authored and Francesco Esposito committed Jun 15, 2019
1 parent eb18fd0 commit 8be50a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ section .location {
font-weight: 300;
}

#header .picture {
#header .image {
width: 11em;
float: right;
border-radius: 4px;
Expand Down
34 changes: 17 additions & 17 deletions theme/partials/basics.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{#resume.basics}}
<header id="header" class="clear">
{{#if picture}}
<img class="picture" src="{{picture}}" alt="{{name}}" />
{{#if image}}
<img class="image" src="{{image}}" alt="{{name}}" />
<div class="middle">
<h1 class="name">{{name}}</h1>
<h2 class="label">{{label}}</h2>
Expand All @@ -11,28 +11,28 @@
<h1 class="name">{{name}}</h1>
<h2 class="label">{{label}}</h2>
</div>
{{/if}}
{{/if}}

{{#location}}
<span class="location">
{{#if address}}
<span class="address">{{address}},</span>
<span class="address">{{address}},</span>
{{/if}}
{{#if postalCode}}
<span class="postalCode">{{postalCode}},</span>
{{/if}}
<span class="postalCode">{{postalCode}},</span>
{{/if}}
{{#if city}}
<span class="city">{{city}},</span>
{{/if}}
<span class="city">{{city}},</span>
{{/if}}
{{#if region}}
<span class="region">{{region}}</span>
{{/if}}
<span class="region">{{region}}</span>
{{/if}}
{{#if countryCode}}
<span class="countryCode">{{countryCode}}</span>
<span class="countryCode">{{countryCode}}</span>
{{/if}}
</span>
{{/location}}
{{/location}}

{{#birthDate birth}}
{{/birthDate}}

Expand All @@ -42,13 +42,13 @@
<span class="fas fa-external-link-alt"></span>
<a target="_blank" target="_blank" href="{{website}}">{{website}}</a>
</div>
{{/if}}
{{/if}}
{{#if email}}
<div class="email">
<span class="far fa-envelope"></span>
<a href="mailto:{{email}}">{{email}}</a>
</div>
{{/if}}
{{/if}}
{{#if phone}}
<div class="phone">
<span class="fas fa-mobile-alt"></span>
Expand All @@ -67,7 +67,7 @@
{{#if url}}
<span class="url">
<a target="_blank" href="{{url}}">{{username}}</a>
</span>
</span>
{{else}}
<span>{{username}}</span>
{{/if}}
Expand Down

0 comments on commit 8be50a8

Please sign in to comment.