-
Notifications
You must be signed in to change notification settings - Fork 25.6k
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
Add responsive video header and include with docs #788
Conversation
Quick look and this looks great. I'll have a closer look and let you know. Appreciate you documenting and adding examples too 😄 |
* tag '4.2.1': (22 commits) Bump version to 4.2.1 Update CHANGELOG and history Document moving paginated home page to an alternate location Pagination now works for index.html files in subfolders. Links to next page consider baseurl now. (#764) Pagination now works for index.html files in subfolders. Links to next page consider baseurl now. (#764) Add https prefix to google-universal embed code. (#772) Add https prefix to google-universal embed code. (#772) Bump version to 4.2.0 Bump jekyll-sitemap to (1.0) Update CHANGELOG and history Improve video helper documentation Add video header support to `archive` and `splash` layouts Rename `responsive_video` helper to `video` Add some white-space below video embeds Add Nepali (Nepalese) text Add page hero video for vimeo/youtube using embedresponsively.com code (#788) Nepalese Language (#785) invalid `analytics` example fix (#783) Remove borders from table elements found in Google Custom Search Engine widget - Close #759 Complete Simplified Chinese Translation of Theme UI (#747) ...
…into gh-pages * 'master' of https://github.com/mmistakes/minimal-mistakes: (22 commits) Bump version to 4.2.1 Update CHANGELOG and history Document moving paginated home page to an alternate location Pagination now works for index.html files in subfolders. Links to next page consider baseurl now. (mmistakes#764) Pagination now works for index.html files in subfolders. Links to next page consider baseurl now. (mmistakes#764) Add https prefix to google-universal embed code. (mmistakes#772) Add https prefix to google-universal embed code. (mmistakes#772) Bump version to 4.2.0 Bump jekyll-sitemap to (1.0) Update CHANGELOG and history Improve video helper documentation Add video header support to `archive` and `splash` layouts Rename `responsive_video` helper to `video` Add some white-space below video embeds Add Nepali (Nepalese) text Add page hero video for vimeo/youtube using embedresponsively.com code (mmistakes#788) Nepalese Language (mmistakes#785) invalid `analytics` example fix (mmistakes#783) Remove borders from table elements found in Google Custom Search Engine widget - Close mmistakes#759 Complete Simplified Chinese Translation of Theme UI (mmistakes#747) ... # Conflicts: # CHANGELOG.md # README.md # docs/_data/ui-text.yml # docs/_docs/05-configuration.md # docs/_docs/08-ui-text.md # docs/_docs/10-layouts.md # docs/_docs/14-helpers.md # docs/_docs/17-javascript.md # docs/_docs/18-history.md # docs/_includes/analytics-providers/google-universal.html # docs/_includes/page__hero.html # docs/_includes/paginator.html # docs/_layouts/archive.html # docs/_layouts/single.html # docs/_layouts/splash.html # docs/_pages/about.md # docs/_pages/home.md # docs/_sass/_utilities.scss # docs/assets/js/_main.js # docs/assets/js/main.min.js # minimal-mistakes-jekyll.gemspec # test/_data/ui-text.yml
<!-- Courtesy of embedresponsively.com //--> | ||
<div class="responsive-video-container"> | ||
{% if video_provider == "vimeo" %} | ||
<iframe src="http://player.vimeo.com/video/{{ video_id }}" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey should these be protocol relative? This breaks when served over HTTPS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it should be protocol relative.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incoming pull
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just do https://
, I just checked the embeds on Vimeo and that's what they default to. The YouTube one is that way as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Follow-up fixes for #781:
Additional enhancements:
_includes/page__hero_video.html
into_includes/responsive_video
_includes/page__hero_video.html
to use{% include responsive_video id="..." provider="..." %}
Let me know if there's any further modifications required for merging. Thanks! =)