Commit Graph

13 Commits

Author SHA1 Message Date
Rico van Zelst
45cb08c4d9 refactor: remove ad scripts from views
Cleaned up multiple view files by removing Google AdSense script inclusions.
2025-02-26 22:25:14 +01:00
Rico van Zelst
4c8ff4a7ec chore: remove ads from various views
Cleaned up the code by removing ad placeholders from multiple view files.
2025-02-26 21:16:50 +01:00
Rico van Zelst
4a4573922e chore: ads 2024-08-06 22:35:59 +02:00
Rico van Zelst
7ad53814d3 feat: Enhance social media sharing meta image for blogpost
- Update OpenGraph and Twitter meta tags in app.blade.php to dynamically set og:image based on content.
- Modify show.blade.php to include post thumbnail as og_image for better social media sharing.
2024-04-01 16:22:23 +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
5aef60fc5e refactor(posts): update thumbnail image class
fixes #59
2023-12-28 15:06:09 +01:00
Rico van Zelst
c95d28164f feat: Add meta tag for thumbnail URL
Added a new meta tag with the property "thumbnailUrl" to the show.blade.php file. The content of the meta tag is set to the value of `$post->thumbnail`. This will help improve SEO by providing search engines with information about the thumbnail image associated with the post.
2023-12-14 14:29:24 +01:00
Rico van Zelst
20bdb09a8e feat: Add post thumbnail to show page
This commit adds a post thumbnail to the show page of a post. The thumbnail is displayed below the date and above the post title. It is an image with the source set to the URL of the post's thumbnail and alt text set to the post's title. The image has a fixed height, rounded corners, and a semi-transparent border.
2023-12-14 14:20:55 +01:00
Rico van Zelst
b88cdc1f07 feat: SEO Improvements
- Added `APP_STAGING` variable to `.env.example`
- Updated `config/app.php` to use `APP_STAGING` for determining the value of `IS_STAGING`
- Updated `resources/views/layouts/app.blade.php` and `resources/views/posts/show.blade.php` to include additional meta tags for SEO and attribution
2023-12-14 14:11:08 +01:00
Rico van Zelst
83eb1421f7 refactor: Update itemid attribute in show.blade.php
The commit updates the itemid attribute in the show.blade.php file to dynamically set it based on the current URL. This change improves the accuracy of metadata for search engine optimization.
2023-12-12 14:40:52 +01:00
Rico van Zelst
3de5f42860 feat: blog post show page 2023-12-12 14:32:44 +01:00
Rico van Zelst
25c3675c2b feat: Add PostsController and configure routes
- Added a new file `PostsController.php` in the `app/Http/Controllers` directory.
- Implemented the `index()` method to retrieve all posts using the Sheets facade.
- Implemented the `show()` method to display a single post using route model binding with Sheets.
- Updated the `RouteServiceProvider.php` file to bind the 'post' route parameter to retrieve posts from the Sheets collection.
- Created a new configuration file `sheets.php` in the `config` directory, defining default settings for collections and their corresponding sheet classes, path parsers, content parsers, and extensions.
- Added a new markdown file `hello-world.md` in the `content/posts` directory as an example post.
- Created two new blade view files: `index.blade.php` and `show.blade.php`, under the `resources/views/posts` directory, for displaying lists of posts and individual post details respectively.
- Modified the existing web routes (`web.php`) to include routes for accessing posts.

The changes enable users to view all posts on `/posts`, as well as access individual post details at `/post/{post}`.
2023-12-12 10:23:15 +01:00