Commit Graph

19 Commits

Author SHA1 Message Date
33c29ea1af update get_post_light to return none when no data is found, so not found error can happen 2025-05-12 22:37:58 +03:00
ngn
f8a1e6f79c general cleanup
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-20 04:31:15 +03:00
612001e570 fix: update default source code config param 2024-04-13 06:59:15 +05:30
2272eaa90c feat: use medium.com's URL patterns
closes: https://github.com/realaravinth/libmedium/issues/28
2023-12-07 16:54:47 +05:30
511ee3819c feat: test content rendering 2023-02-19 19:51:57 +05:30
bd401d888e fix: flatten content and then apply markup rules 2022-08-21 23:10:40 +05:30
1c1224b405 feat: bump deps and switch to actix-web-codegen-const-routes 2022-08-21 17:57:45 +05:30
574d14714d fix: render only specified gists, if specification is provided 2022-01-16 14:14:58 +05:30
9c5342a053 light weight graphql query to fetch data to construct post URL 2021-11-25 12:35:47 +05:30
32934c8353 get post from post id 2021-11-25 12:33:54 +05:30
33f02c2ece show post preview 2021-11-07 13:22:10 +05:30
9bf500f764 render gists inline 2021-11-04 23:51:59 +05:30
072e30cba3 proxy github gists and render them on posts 2021-11-04 19:36:37 +05:30
7fdf255678 show reading time 2021-11-02 21:04:02 +05:30
14c7225f82 proxy medium images 2021-11-02 17:56:39 +05:30
af3c43dbf5 Cache post data using sled
Each post fetch was taking 800ms TAT, so I'm using sled to fetch and
cache post data. This reduced TAT down to 2ms.

However, this could cause storage issues. I must design some sort of
resource manager to clean up cache.
2021-11-02 15:30:25 +05:30
c23943a796 add index page 2021-10-31 23:26:15 +05:30
f0853a4a64 implement rendering on medium-formatted data 2021-10-31 22:26:42 +05:30
adf85ea814 fetch details from medium endpoint 2021-10-31 15:13:04 +05:30