Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Head tags improved and more organized
  • Loading branch information
mmahalwy committed Jun 2, 2016
commit 743a4e78bc4463e7984c90b06c9485a4179c1ccf
51 changes: 25 additions & 26 deletions src/containers/Surah/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,36 +418,35 @@ export default class Surah extends Component {
return (
<div className="surah-body">
<Helmet
title={surah.name.simple}
{...makeHeadTags({
title: this.title(),
description: this.description()
})}
/>
<script type="application/ld+json" dangerouslySetInnerHTML={{
__html: `{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "http://quran.com/",
"name": "Quran"
}
},{
"@type": "ListItem",
"position": 2,
"item": {
"@id": "http://quran.com/${surah.id}",
"name": "${surah.name.simple}"
}
}]
}`
}} />
<style dangerouslySetInnerHTML={{
__html: `.text-arabic{font-size: ${options.fontSize.arabic}rem;} .text-translation{font-size: ${options.fontSize.translation}rem;}`
}}
script={[{
"type": "application/ld+json",
"innerHTML": `{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "http://quran.com/",
"name": "Quran"
}
},{
"@type": "ListItem",
"position": 2,
"item": {
"@id": "http://quran.com/${surah.id}",
"name": "${surah.name.simple}"
}
}]
}`
}]}
style={[{
"cssText": `.text-arabic{font-size: ${options.fontSize.arabic}rem;} .text-translation{font-size: ${options.fontSize.translation}rem;}`
}]}
/>
<Header surah={surah}>
<Row className="navbar-bottom">
Expand Down