| author | 2025-09-10 13:55:30 +0700 | |
|---|---|---|
| committer | 2025-09-10 13:55:30 +0700 | |
| commit | f9a621d56c54110d5938ad0071bbace325773070 (patch) | |
| tree | 13709c592639b13838eb072b31f743382d0a2712 /internal/router/api-v1-blog-search.go | |
| parent | f219d4ac0e8d8f6f9dd7cd9be9e8038939863233 (diff) | |
| download | web-f9a621d56c54110d5938ad0071bbace325773070.tar.gz web-f9a621d56c54110d5938ad0071bbace325773070.zip | |
feat: add page views
feat: more responsive header size to keep it in one row
refactor: move like and view count into separate row in blog card
Diffstat (limited to 'internal/router/api-v1-blog-search.go')
| -rw-r--r-- | internal/router/api-v1-blog-search.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/router/api-v1-blog-search.go b/internal/router/api-v1-blog-search.go index 946b830..69be651 100644 --- a/internal/router/api-v1-blog-search.go +++ b/internal/router/api-v1-blog-search.go @@ -79,6 +79,7 @@ func Api_V1_BlogSearch(l map[string]*locale.LocaleConfig, langs []string, b2Clie "Thumbnail": page.Metadata.Thumbnail, "Tags": page.Metadata.Tags, "LikeCount": CCache.GetLikeCount(page.FileName), + "ViewCount": CCache.GetViewCount(page.FileName), }) break } |