Commit ec5a1246 authored by Seth A Johnson's avatar Seth A Johnson
Browse files

fix news page reloading

parent 03b246c0
......@@ -15,10 +15,10 @@ const LinkFileComponent = {
};
},
toBlock: function({file, text}) {
return `<a target="_blank" rel="noopener noreferrer" href="${file}">${text}</a>`
return `<a href="${file}">${text}</a>`
},
toPreview: function({file, text}) {
return `<a target="_blank" rel="noopener noreferrer" href="${file}">${text}</a>`
return `<a href="${file}">${text}</a>`
}
}
......
......@@ -14,7 +14,7 @@ const News = ({data}) => {
<h1 className="mb-3">{title}</h1>
<Img fluid={image.childImageSharp.fluid} />
<h4 className="mt-4">{date}</h4>
<p dangerouslySetInnerHTML={{ __html: html }} />
<div dangerouslySetInnerHTML={{ __html: html }} />
</div>
</Layout>
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment