docusaurus blog #266
Labels
No Label
in progress
kind/bug
kind/deployment
kind/docs
kind/enhancement
kind/feature
kind/lint
kind/proposal
kind/question
kind/security
kind/testing
kind/translation
kind/ui
lgtm/done
lgtm/need 1
lgtm/need 2
priority/critical
priority/low
priority/maybe
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
status/blocked
status/needs-feedback
status/wip
No Milestone
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/blog#266
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "HesterG/blog:docusaurus-blog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Notes
date must not have double quotes, e.g., should be like
date: 2022-10-30T18:25:00+09:15
Updated header.
Used customized blog plugin to get all tags with reference to plugins/blog/index.js. Filter by tag section, tag list page.
Added coverImage to frontmatter to assgin cover image, e.g.,
coverImage: "/img/blog-covers/test.jpeg"
And on blog page, cover image will appear on top if
coverImage
added to frontmatter, e.g.,authors are managed by the
authors.yml
file. referenceejected
@docusaurus/theme-classic BlogListPage
and@docusaurus/theme-classic BlogPostPage
, which are marked asunsafe
by docusaurus, so need to maintain these components. (original BlogListPage, original BlogPostPage)referenced repo
How to test
Build and serve
Help Needed
Deploy and preview steps
More Screenshots
Mobile:
TODO
@ -0,0 +9,4 @@
title: 'Gitea Blogs',
tagline: 'Git with a cup of tea',
favicon: 'img/favicon.png',
url: 'https://blog.gitea.io',
blog.gitea.com
@ -0,0 +29,4 @@
showReadingTime: true,
routeBasePath: '/',
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
?
Updates:
authors.yml
based on maintainersh2
titles.@ -0,0 +49,4 @@
Gusted:
name: Gusted
url: https://github.com/Gusted
image_url: https://github.com/Gusted.png
title: Former Gitea maintainer
url: https://gusted.xyz/
image_url: https://git.gusted.xyz/avatars/f069668bb7706c629bed11e2ae8b392c
He has left the maintainer team. So the title is not suitable for now.
url
andimage_url
updated@ -0,0 +170,4 @@
name: strk
title: Gitea maintainer
url: https://github.com/strk
image_url: https://github.com/strk.png
We should think of a strategy what to do for the people that are no (longer) Gitea maintainers.
Should we simply display nothing like at the moment, or rather something like I described for Gusted?
Looks like he is on the maintainers' list, maybe also need to update the maintainer file?
I all non-maintianer users who posted blog. Just display their name and avatar, I think it's OK. Any better idea? For strk, he's still in maintainer team.
@ -77,2 +76,3 @@
Gitea now supports `authors:`, `committer:`, `after:`, and `before:` search operators.
Example: `author:alice author:bob`
Example: `authors:alice authors:bob`
Erm… Looks like your regex caught false positives…
Thanks, fixed that in
5cfc82aa56
Oh, I think we can also add @yardenshoham to the
authors.yml
already. He'll appear soon too 😉I think yardenshoham is already in it. At line 60
@ -0,0 +40,4 @@
url: https://github.com/jolheiser
image_url: https://github.com/jolheiser.png
noerw:
could not find me :o
Check line 111.
Update: Blog Page shows banner
figure
of url set bycoverImage
insidefrontmatter
. IfcoverImage
not set, thefigure
won't show. (See updated screenshots in description)Updated author to match with the former logic:
former logic reference:
809d55ee6a
Except for the author specifically used github in the former version.
Update: Used customized blog plugin to get all tags with reference to plugins/blog/index.js
Updated screenshots for updated header and filter tag list page
What exactly is missing until this PR is ready for review?
I think the contents are ready now, just not very sure if deploy will be successful. (Should be successful theoretically)
WIP: docusaurus blogto docusaurus blogAwesome work!
(P. S.: Any chance to have me added to authors? :)
Sure, but you might need to post a blog first for your name card to be seen on the blog page.
Thanks! I will be a co-author of the 1.20 release blog post