Skip to content

Commit bd3ceee

Browse files
WEB-321 - Build error fix
1 parent c36a2d8 commit bd3ceee

1 file changed

Lines changed: 16 additions & 23 deletions

File tree

src/templates/page.jsx

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ import SearchInputBox from "../components/SearchInputBox";
1313
import MobileView from "../components/MobileView";
1414
import Footer from "../components/Footer"
1515
import {environment} from "../environment";
16-
import Index from "../pages/tutorials/index";
17-
18-
const isIndexPage = window.location.pathname === '/tutorials/';
1916

2017
export default ({ data, pageContext }) => {
2118

@@ -106,29 +103,25 @@ export default ({ data, pageContext }) => {
106103
<LeftNav />
107104
</nav>
108105
<div className="flex-auto w-4/5">
109-
{isIndexPage ? (
110-
<Index/>
111-
) : (
112-
<div className="flex items-stretch w-full">
113-
<main className="w-4/5">
114-
<div className="doc-page px-20 py-14">
115-
<h1>{post.frontmatter.title}</h1>
116-
<span dangerouslySetInnerHTML={{ __html: post.html }} />
106+
<div className="flex items-stretch w-full">
107+
<main className="w-4/5">
108+
<div className="doc-page px-20 py-14">
109+
<h1>{post.frontmatter.title}</h1>
110+
<span dangerouslySetInnerHTML={{ __html: post.html }} />
117111

118-
</div>
112+
</div>
119113

120-
</main>
121-
<aside className="w-1/5">
122-
<hr className="d-block lg:hidden"/>
123-
<div className="top-0 top-1 border-l pl-4 py-16 sticky">
124-
<div className="edit-button">
125-
<EditDoc className="items-end btn edit-button-styles flex inline-flex items-center" />
126-
</div>
127-
{contextualLinks}
128-
</div>
129-
</aside>
114+
</main>
115+
<aside className="w-1/5">
116+
<hr className="d-block lg:hidden"/>
117+
<div className="top-0 top-1 border-l pl-4 py-16 sticky">
118+
<div className="edit-button">
119+
<EditDoc className="items-end btn edit-button-styles flex inline-flex items-center" />
120+
</div>
121+
{contextualLinks}
130122
</div>
131-
)}
123+
</aside>
124+
</div>
132125
<div className="pagination_buttons">
133126
<div className={prev ? 'flex justify-between' : 'overflow-hidden'}>
134127
{prev && (

0 commit comments

Comments
 (0)