Skip to content

feature: Add "Featured Video" Support for Blog Posts - #198

Open
robert-viquez wants to merge 5 commits into
gurusabarish:masterfrom
robert-viquez:feature/blogs_video_support
Open

feature: Add "Featured Video" Support for Blog Posts#198
robert-viquez wants to merge 5 commits into
gurusabarish:masterfrom
robert-viquez:feature/blogs_video_support

Conversation

@robert-viquez

@robert-viquez robert-viquez commented Sep 6, 2024

Copy link
Copy Markdown

This feature adds support for embedding videos in blog posts on the. It introduces the featuredVideo parameter in the config.yaml, allowing videos to be displayed as featured media on both the blog listing and individual blog post pages.

Key Changes:

  • Updated config.yaml to include the featuredVideo parameter for managing blog post videos.
  • Modified layouts/_default/list.html to display videos on the blog list view when available.
  • Updated layouts/_default/single.html to support video embedding on individual blog post pages.
  • Videos will be displayed prominently when the featuredVideo parameter is specified in the blog's front matter.

Tested

  • Verified that adding a featuredVideo parameter to a blog post successfully embeds the video in both list and single views.
  • Ensured that blog posts without a featuredVideo parameter continue to display as expected.

Demo

HnVideoEditor_2024_09_10_165542468.mp4

- Added support for featured videos in blog posts.
- Introduced `disableFeaturedVideo`  parameter in `config.yaml` to enable video inclusion as featured media.
- Updated rendering logic to display featured videos in blog cards.
@robert-viquez robert-viquez changed the title Add "Featured Video" Support for Blog Posts feature: Add "Featured Video" Support for Blog Posts Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant