feat: index JSON #249

Merged
jolheiser merged 2 commits from jolheiser/blog:feats into main 2023-04-11 14:30:14 +00:00
Owner

This will expose a JSON endpoint with all the pages and some meta.

It would allow us to, for example, filter posts by tag and maybe link to them from our main docs.

e.g. a follow-up PR to tag any "feature preview"-style posts and then link to them from our docs.

This will expose a JSON endpoint with all the pages and some meta. It would allow us to, for example, filter posts by `tag` and maybe link to them from our main docs. e.g. a follow-up PR to tag any "feature preview"-style posts and then link to them from our docs.
jolheiser added 1 commit 2023-04-04 16:58:07 +00:00
feat: index JSON
All checks were successful
continuous-integration/drone/pr Build is passing
7c2578d856
Signed-off-by: jolheiser <john.olheiser@gmail.com>
First-time contributor
Website preview: http://preview-gitea-org-blog-blog-249.s3-website.eu-central-1.amazonaws.com/ New endpoint: http://preview-gitea-org-blog-blog-249.s3-website.eu-central-1.amazonaws.com/index.json
delvh reviewed 2023-04-04 17:02:09 +00:00
config.yaml Outdated
@ -22,0 +23,4 @@
home:
- HTML
- RSS
- JSON
Owner

Will that still work when we switch to Docusaurus?

Will that still work when we switch to Docusaurus?
Author
Owner

afaik the blog isn't switching to docusaurus, or at least not that I know of currently

afaik the blog isn't switching to docusaurus, or at least not that I know of currently
Owner

Ah. You're absolutely right.
I confused it with docs.gitea.io.

Ah. You're absolutely right. I confused it with `docs.gitea.io`.
delvh marked this conversation as resolved
Author
Owner

fwiw I'm not entirely sure we want all of each page's content, it would come in handy for searching but otherwise may just blow up the JSON payload.

We can use anything in the page variable, so I'm open to ideas. Perhaps Summary? Or just omitting content altogether.

fwiw I'm not entirely sure we want _all_ of each page's content, it would come in handy for searching but otherwise may just blow up the JSON payload. We can use anything in the [page variable](https://gohugo.io/variables/page/#page-variables), so I'm open to ideas. Perhaps `Summary`? Or just omitting content altogether.
delvh approved these changes 2023-04-10 23:07:01 +00:00
lunny approved these changes 2023-04-11 00:20:21 +00:00
lunny added 1 commit 2023-04-11 00:20:27 +00:00
Merge branch 'main' into feats
All checks were successful
continuous-integration/drone/pr Build is passing
4954671a44
jolheiser merged commit 9978b12eac into main 2023-04-11 14:30:14 +00:00
jolheiser deleted branch feats 2023-04-11 14:30:14 +00:00
jolheiser referenced this issue from a commit 2023-04-11 14:30:14 +00:00
Sign in to join this conversation.
No description provided.