mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
Adding condition for link configs so that whichever is not present will not render
This commit is contained in:
parent
0468cc151d
commit
afe4b31854
@ -6,36 +6,56 @@ import './style.css'
|
|||||||
import '../../static/fonts/fontawesome/style.css'
|
import '../../static/fonts/fontawesome/style.css'
|
||||||
|
|
||||||
class SiteLinks extends React.Component {
|
class SiteLinks extends React.Component {
|
||||||
render() {
|
render () {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='blog-social'>
|
<div className="blog-social">
|
||||||
<ul>
|
<ul>
|
||||||
|
{config.siteTwitterUrl && (
|
||||||
<li>
|
<li>
|
||||||
<a href={ config.siteTwitterUrl }><i className='fa fa-twitter'></i></a>
|
<a href={config.siteTwitterUrl}>
|
||||||
|
<i className="fa fa-twitter" />
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
)}
|
||||||
|
{config.siteGithubUrl && (
|
||||||
<li>
|
<li>
|
||||||
<a href={ config.siteGithubUrl }><i className='fa fa-github-alt'></i></a>
|
<a href={config.siteGithubUrl}>
|
||||||
|
<i className="fa fa-github-alt" />
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
)}
|
||||||
|
{config.siteVkUrl && (
|
||||||
<li>
|
<li>
|
||||||
<a href={ config.siteVkUrl }><i className='fa fa-vk'></i></a>
|
<a href={config.siteVkUrl}><i className="fa fa-vk" /></a>
|
||||||
</li>
|
</li>
|
||||||
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
|
{config.siteEmailUrl && (
|
||||||
<li>
|
<li>
|
||||||
<a href={ config.siteEmailUrl }><i className='fa fa-envelope-o'></i></a>
|
<a href={config.siteEmailUrl}>
|
||||||
|
<i className="fa fa-envelope-o" />
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
)}
|
||||||
|
{config.siteTelegramUrl && (
|
||||||
<li>
|
<li>
|
||||||
<a href={ config.siteTelegramUrl }><i className='fa fa-paper-plane'></i></a>
|
<a href={config.siteTelegramUrl}>
|
||||||
|
<i className="fa fa-paper-plane" />
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
<ul>
|
||||||
|
{config.siteRssUrl && (
|
||||||
<li>
|
<li>
|
||||||
<a href={ config.siteRssUrl }><i className='fa fa-rss'></i></a>
|
<a href={config.siteRssUrl}><i className="fa fa-rss" /></a>
|
||||||
</li>
|
</li>
|
||||||
|
)}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
);
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user