Add trailing slashes to nav links

gatsby@0.12.5 enforces trailing slashes

https://github.com/gatsbyjs/gatsby/pull/378
This commit is contained in:
jmsmrgn 2016-08-24 14:52:28 -07:00
parent 58f879350d
commit 480cf55663

View File

@ -14,11 +14,11 @@ class SiteNav extends React.Component {
</Link> </Link>
</li> </li>
<li> <li>
<Link to="/about" className={ location.pathname === prefixLink('/about') ? "current" : null }> About me <Link to="/about/" className={ location.pathname === prefixLink('/about/') ? "current" : null }> About me
</Link> </Link>
</li> </li>
<li> <li>
<Link to="/contact" className={ location.pathname === prefixLink('/contact') ? "current" : null }> Contact me <Link to="/contact/" className={ location.pathname === prefixLink('/contact/') ? "current" : null }> Contact me
</Link> </Link>
</li> </li>
</ul> </ul>