diff --git a/src/templates/contributor.js b/src/templates/contributor.js
index 8b547d1347..da8b03598c 100644
--- a/src/templates/contributor.js
+++ b/src/templates/contributor.js
@@ -87,9 +87,17 @@ class ContributorTemplate extends React.Component {
Contributions
{docs.map(({ node }) => {
+
+ var linkPath = '';
+ if (node.frontmatter.permalink) {
+ linkPath = "/" + node.frontmatter.permalink;
+ }else {
+ linkPath = "/" + node.id;
+ }
+
return (
-
-
+
{node.frontmatter.title}
@@ -137,6 +145,7 @@ export const pageQuery = graphql`
id
frontmatter {
title
+ permalink
}
fileAbsolutePath
}