Skip to content

Commit

Permalink
support speaker url & twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
crtr0 committed Jun 24, 2020
1 parent e97029f commit 8346880
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/speaker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let SocialTemplate = function(speaker) {
}

let Template = function(speaker) {
const { key, name, location, company, /*url, twitter,*/ title, topics, pronouns, abstract } = speaker
const { key, name, location, company, url, twitter, title, topics, pronouns, abstract } = speaker
return /*html*/`
<div id="page">
<div id="page-title">
Expand All @@ -48,6 +48,9 @@ let Template = function(speaker) {
<p>${ location }</p>
<h3>Company</h3>
<p>${ company }</p>
<h3>Links</h3>
${ twitter ? `<i class="fab fa-twitter"></i> <a href="https://twitter.com/${ twitter }">@${ twitter }</a> ` : '' }
${ url ? `<i class="fa fa-globe"></i> <a href="${ url }">${ url.split("://")[1] }</a></p>` : '' }
</div>
</div>
<h2>Talk: ${ title }</h2>
Expand Down

0 comments on commit 8346880

Please sign in to comment.