Merge branch 'master' into fix/default-page-image
This commit is contained in:
commit
b96e06068e
7 files changed
-65
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import dynamic from 'next/dynamic'
|
||||
import Comments from '../Comments'
|
||||
import { Wrapper } from '../Wrapper'
|
||||
import { ConfigContext } from 'src/context/ConfigContext'
|
||||
import config from 'src/config'
|
||||
@@ -61,8 +60,6 @@ export const App: React.FC<IAppProps> = props => {
|
||||
{props.children}
|
||||
</Content>
|
||||
</Block>
|
||||
|
||||
{/* <Comments /> */}
|
||||
</Wrapper>
|
||||
</ConfigContext.Provider>
|
||||
)
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
const React = require('react')
|
||||
const Paginator = require('./Paginator')
|
||||
const Article = require('./Article')
|
||||
|
||||
const ArticleList = ({articles, nextPage, prevPage}) => (
|
||||
<div>
|
||||
{!prevPage ? null : (
|
||||
<Paginator url={`/articles/${prevPage}`} type="top"/>
|
||||
)}
|
||||
|
||||
{articles.map(article => (
|
||||
<Article
|
||||
key={article.url}
|
||||
url={article.url}
|
||||
title={article.title}
|
||||
date={article.date}
|
||||
data={article.post}
|
||||
shareable={false}
|
||||
/>
|
||||
))}
|
||||
|
||||
{!nextPage ? null : (
|
||||
<Paginator url={`/articles/${nextPage}`} type="bottom"/>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
|
||||
module.exports = ArticleList
|
||||
@@ -1,9 +0,0 @@
|
||||
const React = require('react')
|
||||
|
||||
const Comments = ({contentClass = 'content_thin'}) => (
|
||||
<div className={`content ${contentClass}`}>
|
||||
<div id="disqus_thread"/>
|
||||
</div>
|
||||
)
|
||||
|
||||
module.exports = Comments
|
||||
Reference in new issue
Block a user