We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2c6d10 commit f98d4e2Copy full SHA for f98d4e2
1 file changed
src/pages/books.js
@@ -4,6 +4,7 @@ import { graphql } from 'gatsby';
4
import { GatsbyImage } from 'gatsby-plugin-image';
5
import { MDXRenderer } from 'gatsby-plugin-mdx';
6
import { useIntl } from 'react-intl';
7
+import { slugify } from '../utils';
8
9
import HeadMatter from '../components/HeadMatter';
10
import Layout from '../components/Layout';
@@ -39,7 +40,7 @@ const Books = ({ data }) => {
39
40
)}
41
</div>
42
<div className={classnames(grid.col, css.book)}>
- <h3>{book.title}</h3>
43
+ <h3 id={slugify(book.title)}>{book.title}</h3>
44
{book.author && (
45
<p className={css.author}>
46
{intl.formatMessage({ id: 'by' })} {book.author}
0 commit comments