Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
O
official
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吕祺
official
Commits
958d8d43
Commit
958d8d43
authored
Mar 21, 2021
by
吕祺
⛹🏽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix article
parent
e2799a1d
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
post.js
pages/post.js
+3
-1
No files found.
pages/post.js
View file @
958d8d43
import
React
from
'react'
import
marked
from
'marked'
import
newsPage
from
'../content/newsPage.md'
import
newsList
from
'../content/newsList.md'
import
ronghuiPage
from
'../content/ronghuiPage.md'
/* eslint-disable no-unused-vars */
import
Link
from
'next/link'
...
...
@@ -38,7 +39,8 @@ export default class PostPage extends React.Component {
type
=
type
[
0
].
slice
(
2
)
const
{
attributes
:
{
news
}
}
=
newsPage
}
=
newsList
let
ReadArticleList
=
window
.
localStorage
.
getItem
(
'read'
)
||
''
ReadArticleList
=
ReadArticleList
.
split
(
' '
)
const
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment