Commit Graph

12 Commits

Author SHA1 Message Date
Lunny Xiao 4d72c9ed8a Add release of v1.21.10 (#360)
This PR also fixed some wrong links of previous blogs.

Reviewed-on: https://gitea.com/gitea/blog/pulls/360
Reviewed-by: Jason Song <i@wolfogre.com>
Reviewed-by: Zettat123 <zettat123@noreply.gitea.com>
2024-03-28 10:46:39 +00:00
techknowlogick 41164abf27 fixup some syntax issues due to v3 update 2023-11-11 01:46:43 -05:00
techknowlogick e5db90d48e update some of the URLs to use .com URLs 2023-09-10 15:00:43 -04:00
Denys Konovalov d9f499f9e7 dynamic release cover image (#285) (#287)
See #285
This time with (hopefully...) fixed CSP & fonts.

Reviewed-on: https://gitea.com/gitea/blog/pulls/287
Reviewed-by: delvh <dev.lh@web.de>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-committed-by: Denys Konovalov <kontakt@denyskon.de>
2023-08-05 20:14:11 +00:00
Lunny Xiao d790666d78 Revert "dynamic release cover image (#285)" (#286)
This reverts commit 5ab8ec9c86.

Reviewed-on: https://gitea.com/gitea/blog/pulls/286
2023-07-29 13:26:18 +00:00
Denys Konovalov 5ab8ec9c86 dynamic release cover image (#285)
This PR introduces a dynamic, autogenerated release cover image, which is generated from a svg object. It can be used by setting `coverImageRelease: "VERSION"` in frontmatter and will be used instead of a cover image if set.
![grafik](/attachments/cb740632-efd6-47ac-b7fc-9b07e4ba915d)
![grafik](/attachments/c193f2c3-c417-4b1e-bb20-1f3694a3a049)

Reviewed-on: https://gitea.com/gitea/blog/pulls/285
Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
Co-committed-by: Denys Konovalov <kontakt@denyskon.de>
2023-07-29 08:42:03 +00:00
HesterG 06cdcbce75 some adjustments (#268)
- Found one author whose account is 404 on gitea.com now, so removed url and image url
- Fix blog links
- Use svg instead of png for favicon
- Changed number of post per page to 12
- Hide toc and show "recent post" sidebar on post pages

  ![Screen Shot 2023-07-12 at 13.49.21](/attachments/826c7e1e-1c85-430b-af19-3e90b0e38bdc)

- Fix active status missing for tags when on pagination

  Before (active status missing if not on first page of certain tag's page)

  ![Screen Shot 2023-07-12 at 14.07.10](/attachments/11803673-e7ed-41a0-8a18-918c9df5217f)

  After:

  ![Screen Shot 2023-07-12 at 13.52.08](/attachments/3d5a8271-9c89-4ee6-b758-e59066d62564)

Reviewed-on: https://gitea.com/gitea/blog/pulls/268
Co-authored-by: HesterG <hestergong@gmail.com>
Co-committed-by: HesterG <hestergong@gmail.com>
2023-07-12 06:43:19 +00:00
HesterG dab0be78b2 docusaurus blog (#266)
# Notes

- date must not have double quotes, e.g., should be like `date: 2022-10-30T18:25:00+09:15`

- Updated header.

  ![Screen Shot 2023-07-11 at 17.27.49](/attachments/d14b0c62-3630-47a9-bcda-25c6459d4e8b)

- Used customized blog plugin to get all tags with reference to [plugins/blog/index.js](https://github.com/questdb/questdb.io/blob/master/plugins/blog/index.js). Filter by tag section, tag list page.

  ![Screen Shot 2023-07-11 at 18.10.28](/attachments/59561940-a2f7-4ab5-b99a-1d5b84fdbcad)

  ![Screen Shot 2023-07-11 at 17.31.20](/attachments/d6d82976-12c0-4c0f-acfe-218e30c7c627)

- 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.,

   ![Screen Shot 2023-07-11 at 17.33.09](/attachments/c27e7971-11db-4241-bc53-9e43df235fbc)

  ![Screen Shot 2023-07-11 at 17.33.20](/attachments/552dd9cf-fc55-4547-8014-864aeb0e5050)

- authors are managed by the `authors.yml` file. [reference](https://docusaurus.io/docs/blog#global-authors)
- [ejected](https://docusaurus.io/docs/swizzling#ejecting) `@docusaurus/theme-classic BlogListPage` and `@docusaurus/theme-classic BlogPostPage`, which are marked as `unsafe` by docusaurus, so need to maintain these components. ([original BlogListPage](https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-theme-classic/src/theme/BlogListPage/index.tsx), [original BlogPostPage](https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-theme-classic/src/theme/BlogPostPage/index.tsx))
- [referenced repo](https://github.com/questdb/questdb.io)

# How to test

```
npm i
npm run start
```

# Build and serve

```
npm run build
npm run serve
```

# Help Needed

Deploy and preview steps

# More Screenshots

![Screen Shot 2023-07-11 at 17.34.54](/attachments/ee9d46ac-72ac-49de-90df-38e2afc6db02)

Mobile:

![Screen Shot 2023-07-11 at 18.16.54](/attachments/8f1471a3-27cc-459a-a2ce-c0e5bdf604d3)

![Screen Shot 2023-07-10 at 17.53.18](/attachments/992d9f24-e130-41a9-8b55-86744539524c)

![Screen Shot 2023-07-06 at 11.02.21](/attachments/af1632b8-6a61-47f7-b15d-4a6080bebadb)

![Screen Shot 2023-07-11 at 18.17.43](/attachments/af0df617-27a4-46f9-a8a3-037be268e1cd)

![Screen Shot 2023-07-03 at 15.32.45](/attachments/ad2c1217-e82d-434c-81c8-5d4058e18591)

# TODO

- [x] Add Banner to blog page

Reviewed-on: https://gitea.com/gitea/blog/pulls/266
Co-authored-by: HesterG <hestergong@gmail.com>
Co-committed-by: HesterG <hestergong@gmail.com>
2023-07-12 03:25:19 +00:00
jolheiser a225064b9a Add/modify tags on posts (#259)
Now that we have a JSON endpoint for posts, tagging posts can aid in filtering that data in the future.

For example, the docs could list any posts tagged `tutorial` or `feature` somewhere.

Reviewed-on: https://gitea.com/gitea/blog/pulls/259
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: pat-s <pat-s@noreply.gitea.io>
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-committed-by: jolheiser <john.olheiser@gmail.com>
2023-04-19 18:31:43 +08:00
John Olheiser 6ec0f0a971 Blog 1.19 corrections (#244)
Draft PR for corrections.

Reviewed-on: https://gitea.com/gitea/blog/pulls/244
Reviewed-by: yardenshoham <yardenshoham@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john+gitea@jolheiser.com>
Co-committed-by: John Olheiser <john+gitea@jolheiser.com>
2023-03-20 23:16:36 +08:00
delvh d84f798d35 Fix release date of 1.19.0 blog (#242)
Reviewed-on: https://gitea.com/gitea/blog/pulls/242
Reviewed-by: John Olheiser <john+gitea@jolheiser.com>
Co-authored-by: delvh <leon@kske.dev>
Co-committed-by: delvh <leon@kske.dev>
2023-03-20 21:49:58 +08:00
delvh 877b472768 Blog post for 1.19.0 (#241)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/gitea/blog/pulls/241
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: yardenshoham <yardenshoham@noreply.gitea.io>
Reviewed-by: jolheiser <john+gitea@jolheiser.com>
Reviewed-by: lafriks <lafriks@noreply.gitea.io>
Reviewed-by: noerw <git@nroo.de>
Co-authored-by: delvh <leon@kske.dev>
Co-committed-by: delvh <leon@kske.dev>
2023-03-20 21:37:34 +08:00