Skip to content

Commit 8ba5780

Browse files
added fix for broken pdf files
1 parent 31aa1b9 commit 8ba5780

File tree

4 files changed

+44
-5
lines changed

4 files changed

+44
-5
lines changed

gatsby-config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ module.exports = {
3131
options: {
3232
plugins: [
3333
{
34-
resolve: `gatsby-remark-relative-images`,
34+
resolve: `gatsby-remark-copy-linked-files`,
35+
options: {
36+
ignoreFileExtensions: [`js`, `png`, `jpg`, `jpeg`],
37+
},
3538
},
39+
`gatsby-remark-relative-images`,
3640
{
3741
resolve: `gatsby-remark-images`,
3842
options: {

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"gatsby-plugin-offline": "^3.2.12",
1616
"gatsby-plugin-react-helmet": "^3.3.6",
1717
"gatsby-plugin-sharp": "^2.6.13",
18+
"gatsby-remark-copy-linked-files": "^2.3.7",
1819
"gatsby-remark-images": "^3.3.13",
1920
"gatsby-remark-relative-images": "^0.3.0",
2021
"gatsby-source-filesystem": "^2.3.14",
@@ -41,7 +42,7 @@
4142
"serve": "gatsby serve",
4243
"clean": "gatsby clean",
4344
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1",
44-
"update":"git submodule update --remote"
45+
"update": "git submodule update --remote"
4546
},
4647
"repository": {
4748
"type": "git",

src/pages/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const useStyles = makeStyles(() => ({
1616
card: {
1717
maxWidth: 350,
1818
padding: 10,
19+
borderRadius: 8,
20+
backgroundColor: "#F3F3F7",
1921
},
2022
gridRoot: {
2123
justifyContent: "center",
@@ -29,7 +31,7 @@ export default function Index({ data }) {
2931
const { edges: posts } = data.allMarkdownRemark
3032
return (
3133
<Layout>
32-
<div className="blog-posts" style={{ maxWidth: 1000, margin: "auto" }}>
34+
<div className="blog-posts" style={{ margin: "auto" }}>
3335
{/* <Helmet title={}/> */}
3436
<SEO title="Home" />
3537
<div style={{ margin: 10 }}>
@@ -38,7 +40,6 @@ export default function Index({ data }) {
3840
direction="row"
3941
spacing={2}
4042
className={classes.gridRoot}
41-
sm={12}
4243
>
4344
{posts
4445
.filter(
@@ -57,7 +58,7 @@ export default function Index({ data }) {
5758
direction="column"
5859
>
5960
<Grid container>
60-
<Paper className={classes.card} elevation={2}>
61+
<Paper className={classes.card} elevation={1}>
6162
<Grid item>
6263
<Typography variant="h4">
6364
<MaterialLink

0 commit comments

Comments
 (0)