Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move eleven labe to only new posts #255

Merged
merged 4 commits into from
Jan 30, 2025
Merged

Conversation

MrHinsh
Copy link
Member

@MrHinsh MrHinsh commented Jan 30, 2025

No description provided.

…ecent posts

The Elevenlabs AudioNative Player is now only included for blog posts published within the last 5 years. This change optimizes the page load time for older posts by not loading unnecessary scripts and widgets, enhancing the user experience for readers accessing archived content.
…ility

Add the `AudioNative` parameter to blog posts to enable audio
rendering. This change enhances accessibility by providing an audio
version of the content, making it more inclusive for users who prefer
or require audio content. The layout logic is updated to conditionally
render the audio player based on the `AudioNative` flag and the
environment, ensuring that audio is only rendered in production.
…ring

The condition checking if the publish date is within the last year is removed. The audio rendering logic now solely relies on the presence of the AudioNative parameter. This change simplifies the logic and ensures that audio rendering is not inadvertently skipped due to date constraints, aligning with the current content strategy.
The addition of the `AudioNative: true` flag to the blog posts enables audio versions of the content, making it more accessible to users who prefer listening over reading. This change supports inclusivity and caters to a wider audience, including those with visual impairments or those who consume content on-the-go.
@nkdagility-actions-bot
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://yellow-pond-042d21b03-255.westeurope.5.azurestaticapps.net

@MrHinsh MrHinsh merged commit 10e5998 into main Jan 30, 2025
8 checks passed
@MrHinsh MrHinsh deleted the move-eleven-labe-to-only-new-posts branch January 30, 2025 11:27
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