Commit Graph

6 Commits

Author SHA1 Message Date
Rico van Zelst
55a72607e2 refactor: improve filtering of hidden posts in PostsController
- Refactored the code in `PostsController.php` to filter out hidden posts before sorting by date for better performance and accuracy.
- Updated the blade template `listposts.blade.php` to adjust formatting and structure for displaying posts.
2024-04-01 16:27:07 +02:00
Rico van Zelst
4f22451be3 style: Update CSS classes for video aspect ratio
- Updated CSS classes in grid_info.blade.php to use 'aspect-video' for maintaining video aspect ratio styling.
2024-03-26 11:27:28 +01:00
Shift
2541825a1d Sort Tailwind classes 2024-03-18 17:55:31 +00:00
Rico van Zelst
266b5f6a92 feat(posts): add privacy policy and terms of use pages
- Added new files `privacy-policy.md` and `terms-of-use.md` to the `content/posts` directory.
- Updated the footer component to include links to the privacy policy and terms of use pages.
- Updated the listposts component to exclude hidden posts from being displayed.
2024-01-20 14:01:02 +01:00
Rico van Zelst
0a06f1f7cc refactor: Update import statement for Carbon library
The import statement for the Carbon library in the listposts.blade.php file has been updated to use the @use directive instead of the @php directive. This change improves code readability and follows best practices.
2023-12-13 09:01:30 +01:00
Rico van Zelst
5fe3fcac61 feat: add working posts index
This commit adds pagination functionality to the posts index page. The code changes include:
- Sorting the posts by descending date
- Paginating the posts with 6 items per page
- Creating a new component called "Listposts" for rendering the paginated posts
- Adding a new view file for the "Listposts" component
- Updating the blade template of the posts index page to use the "Listposts" component and pass in the paginated posts

The purpose of these changes is to improve user experience by displaying a limited number of posts per page and providing navigation links for easier browsing.
2023-12-12 12:32:42 +01:00