File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ export default function ListItem({ i }) {
4949 shortname = 'youknowwhatblog'
5050 config = {
5151 {
52- url : `${ process . env . NEXT_PUBLIC_PROD_HOST } /articles/${ i . id . toString ( ) } ` ,
53- identifier : i . id . toString ( ) ,
54- title : i . title . toString ( ) ,
52+ url : `${ process . env . NEXT_PUBLIC_PROD_HOST } /articles/${ i . id } ` ,
53+ identifier : i . id ,
54+ title : i . title ,
5555 }
5656 }
5757 >
Original file line number Diff line number Diff line change 11import styled from 'styled-components'
22import { DiscussionEmbed } from 'disqus-react'
33
4- export default function DisqusComments ( { params } ) {
4+ export default function Comments ( { params } ) {
55 return (
66 < Footer >
77 < DiscussionEmbed
88 shortname = 'youknowwhatblog'
99 config = {
1010 {
11- url : `${ process . env . NEXT_PUBLIC_PROD_HOST } /articles/${ params . id . toString ( ) } ` ,
12- identifier : params . id . toString ( ) ,
13- title : params . title . toString ( ) ,
11+ url : `${ process . env . NEXT_PUBLIC_PROD_HOST } /articles/${ params . id } ` ,
12+ identifier : params . id ,
13+ title : params . title ,
1414 language : 'en_GB'
1515 }
1616 }
Original file line number Diff line number Diff line change 11import useSWR from 'swr'
22import styled from 'styled-components'
33import Head from 'next/head'
4- import dynamic from 'next/dynamic'
54
65import Markdown from '../../components/article/Markdown'
76import SocialButtons from '../../components/article/SocialButtons'
8- const Comments = dynamic ( ( ) => import ( '../../components/article/Comments' ) )
7+ import Comments from '../../components/article/Comments'
98
109const fetcher = url => fetch ( url ) . then ( r => r . json ( ) )
1110
You can’t perform that action at this time.
0 commit comments