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

Embed Youtube video & new post not deployed #58

Open
neo-art opened this issue Apr 21, 2024 · 4 comments
Open

Embed Youtube video & new post not deployed #58

neo-art opened this issue Apr 21, 2024 · 4 comments

Comments

@neo-art
Copy link

neo-art commented Apr 21, 2024

Hello,

First of all, thank you for the great project. :)

Just deployed "Astro-paper" to CloudFlare using your config file here: https://github.com/pages-cms/astro-blog-example
It looks like everything works fine except ...

I have two issues and I hope I can get some help:

  1. How to embed a video in the blog post ? Tried this way:

Also this one:

<iframe width="640" height="480" src="https://youtu.be/r6gy0m86j34?si=k8V1VkEdq8f_i5wd" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen > </iframe>

But I haven't had any luck.

  1. Second issue I have - when I create a new blog post it appears on GitHub but doesn't show on the website. CloudFlare deploys with no errors.

You can see the config file here:
https://github.com/neo-art/astro-paper-2AQ/blob/main/.pages.yml

I really appreciate any help you can provide.

UPDATE: I can remove old posts or update their content.

@neo-art
Copy link
Author

neo-art commented Apr 22, 2024

Ok, that's weird but the post appeared just now (14 hours later).
I haven't changed anything.
Maybe there is something to do with CloudFlare?

@hunvreus
Copy link
Member

I'm assuming you're using Cloudflare Pages? If so, maybe check the build logs for your site.

@neo-art
Copy link
Author

neo-art commented Apr 23, 2024

It was missing from the build, so the issue was with CloudFlare. Not sure what happened but now it works.
Do you have any idea how to embed a YouTube video to the post? This way it works everywhere but in PagesCms:

[![IMAGE ALT TEXT HERE]([https://img.youtube.com/vi/6XzyobQYQVQ/0.jpg)](https://www.youtube.com/watch?v=6XzyobQYQVQ](https://img.youtube.com/vi/6XzyobQYQVQ/0.jpg)%5D(https://www.youtube.com/watch?v=6XzyobQYQVQ))

@neo-art
Copy link
Author

neo-art commented Apr 27, 2024

@hunvreus any ideas about the YouTube embedded video?

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

No branches or pull requests

2 participants