We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ef42df commit 8009ad4Copy full SHA for 8009ad4
gatsby-theme-academic/src/templates/post/post.jsx
@@ -38,6 +38,7 @@ const Post = ({ data }) => {
38
date,
39
commit,
40
type,
41
+ links,
42
},
43
tableOfContents,
44
} = data.mdx;
@@ -139,6 +140,21 @@ const Post = ({ data }) => {
139
140
</FlexboxGrid.Item>
141
) : null}
142
</FlexboxGrid>
143
+
144
+ {links && links.length > 0 && (
145
+ <div style={{ marginBottom: '1rem' }}>
146
+ <h4>Links</h4>
147
+ <ul>
148
+ {links.map((link, index) => (
149
+ <li key={index}>
150
+ <a href={link.url} target="_blank" rel="noopener noreferrer">
151
+ {link.name}
152
+ </a>
153
+ </li>
154
+ ))}
155
+ </ul>
156
+ </div>
157
+ )}
158
159
{state.locked
160
? (
0 commit comments