{"id":13612162,"url":"https://github.com/dommmel/jekyll-youtube","last_synced_at":"2025-04-13T11:31:33.577Z","repository":{"id":42223987,"uuid":"41297485","full_name":"dommmel/jekyll-youtube","owner":"dommmel","description":":tv: Generate embed html snippets for Youtube URLs","archived":false,"fork":false,"pushed_at":"2022-04-09T20:32:44.000Z","size":5,"stargazers_count":91,"open_issues_count":1,"forks_count":20,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T16:24:42.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dommmel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-24T10:37:24.000Z","updated_at":"2024-02-23T20:05:16.000Z","dependencies_parsed_at":"2022-08-20T08:22:03.821Z","dependency_job_id":null,"html_url":"https://github.com/dommmel/jekyll-youtube","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dommmel%2Fjekyll-youtube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dommmel%2Fjekyll-youtube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dommmel%2Fjekyll-youtube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dommmel%2Fjekyll-youtube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dommmel","download_url":"https://codeload.github.com/dommmel/jekyll-youtube/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705667,"owners_count":21148574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:00:23.651Z","updated_at":"2025-04-13T11:31:33.140Z","avatar_url":"https://github.com/dommmel.png","language":"Ruby","funding_links":[],"categories":["Videos \u0026 Screencasts","Ruby"],"sub_categories":[],"readme":"# Jekyll Youtube\n\nThis Jekyll pluging provides a tag that takes a Youtube URL and generates a (responsive) html snippet to embed the video into your site.\n\n## Installation\n\nAdd this line to your Gemfile:\n\n```ruby\ngroup :jekyll_plugins do\n  gem \"jekyll-youtube\"\nend\n```\n\nAnd then execute:\n\n    $ bundle\n\nAlternatively install the gem yourself as:\n\n    $ gem install jekyll-youtube\n\nand put this in your ``_config.yml`` \n\n```yaml\nplugins: [jekyll-youtube]\n # This will require each of these gems automatically.\n```\n\n## Usage\n\n```\n {% youtube \"https://www.youtube.com/watch?v=ho8-vK0L1_8\" %}\n```\nor using variables/front matter\n\n```\n{% youtube page.youtubeurl %}\n```\n\n## Result\n\nBy default the plugin will output the following code\n\n\n```markup\n\u003cstyle\u003e\n.embed-container {\n  position: relative;\n  padding-bottom: 56.25%;\n  height: 0;\n  overflow: hidden;\n  max-width: 100%;\n}\n.embed-container iframe,\n.embed-container object,\n.embed-container embed {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n}\n\u003c/style\u003e\n\u003cdiv class='embed-container'\u003e\n  \u003ciframe title=\"YouTube video player\" width=\"640\" height=\"390\" src=\"http://www.youtube.com/embed/ho8-vK0L1_8\" frameborder=\"0\" allowfullscreen\u003e\u003c/iframe\u003e\n\u003c/div\u003e\n```\n\nYou can specify your own snippet by creating a partial ``_includes/youtube.html``. Inside that partial the Youtube ID is available as ``{{ youtube_id }}``.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdommmel%2Fjekyll-youtube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdommmel%2Fjekyll-youtube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdommmel%2Fjekyll-youtube/lists"}