Skip to content

Commit e963dde

Browse files
selbekkTimer
authored andcommitted
Removing blog from Docusaurus (#5239)
* Remove the blog link from the header * Remove blog link from the site footer * Remove blog translation, as we no longer have a blog * Remove all sample blog-content * Remove blog info from the website readme
1 parent a9c09d4 commit e963dde

9 files changed

+1
-118
lines changed

website/README.md

-49
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ my-docusaurus/
3434
doc-2.md
3535
doc-3.md
3636
website/
37-
blog/
38-
2016-3-11-oldest-post.md
39-
2017-10-24-newest-post.md
4037
core/
4138
node_modules/
4239
pages/
@@ -67,22 +64,6 @@ Edit me...
6764

6865
For more information about docs, click [here](https://docusaurus.io/docs/en/navigation)
6966

70-
## Editing an existing blog post
71-
72-
Edit blog posts by navigating to `website/blog` and editing the corresponding post:
73-
74-
`website/blog/post-to-be-edited.md`
75-
```markdown
76-
---
77-
id: post-needs-edit
78-
title: This Blog Post Needs To Be Edited
79-
---
80-
81-
Edit me...
82-
```
83-
84-
For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog)
85-
8667
# Adding Content
8768

8869
## Adding a new docs page to an existing sidebar
@@ -116,36 +97,6 @@ My new content here..
11697

11798
For more information about adding new docs, click [here](https://docusaurus.io/docs/en/navigation)
11899

119-
## Adding a new blog post
120-
121-
1. Make sure there is a header link to your blog in `website/siteConfig.js`:
122-
123-
`website/siteConfig.js`
124-
```javascript
125-
headerLinks: [
126-
...
127-
{ blog: true, label: 'Blog' },
128-
...
129-
]
130-
```
131-
132-
2. Create the blog post with the format `YYYY-MM-DD-My-Blog-Post-Title.md` in `website/blog`:
133-
134-
`website/blog/2018-05-21-New-Blog-Post.md`
135-
136-
```markdown
137-
---
138-
author: Frank Li
139-
authorURL: https://twitter.com/foobarbaz
140-
authorFBID: 503283835
141-
title: New Blog Post
142-
---
143-
144-
Lorem Ipsum...
145-
```
146-
147-
For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog)
148-
149100
## Adding items to your site's top navigation bar
150101

151102
1. Add links to docs, custom pages or external links by editing the headerLinks field of `website/siteConfig.js`:

website/blog/2016-03-11-blog-post.md

-18
This file was deleted.

website/blog/2017-04-10-blog-post-two.md

-18
This file was deleted.

website/blog/2017-09-25-testing-rss.md

-11
This file was deleted.

website/blog/2017-09-26-adding-rss.md

-10
This file was deleted.

website/blog/2017-10-24-new-version-1.0.0.md

-8
This file was deleted.

website/core/Footer.js

-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class Footer extends React.Component {
6565
</div>
6666
<div>
6767
<h5>More</h5>
68-
<a href={`${this.props.config.baseUrl}blog`}>Blog</a>
6968
<a href="https://github.com/">GitHub</a>
7069
<a
7170
className="github-button"

website/i18n/en.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
"links": {
2626
"Docs": "Docs",
2727
"API": "API",
28-
"Help": "Help",
29-
"Blog": "Blog"
28+
"Help": "Help"
3029
},
3130
"categories": {
3231
"Docusaurus": "Docusaurus",

website/siteConfig.js

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ const siteConfig = {
4141
{doc: 'doc1', label: 'Docs'},
4242
{doc: 'doc4', label: 'API'},
4343
{page: 'help', label: 'Help'},
44-
{blog: true, label: 'Blog'},
4544
],
4645

4746
// If you have users set above, you add it here:

0 commit comments

Comments
 (0)