Skip to content

Instantly share code, notes, and snippets.

View MWDelaney's full-sized avatar

Michael W. Delaney MWDelaney

View GitHub Profile
@MWDelaney
MWDelaney / uploads.yml
Created April 9, 2016 03:36 — forked from louim/uploads.yml
Drop-in playbook for Trellis to push and pull uploads from the server to your local machine.
---
- name: Sync uploads between environments
hosts: web
remote_user: "{{ web_user }}"
vars:
project: "{{ wordpress_sites[site] }}"
project_root: "{{ www_root }}/{{ site }}"
tasks:
@MWDelaney
MWDelaney / .eleventy.js
Last active January 2, 2023 08:33 — forked from freshyill/.eleventy.js
YouTube Editor component for Netlify CMS
eleventyConfig.addNunjucksShortcode("youtube", function (youtubeId, aspectRatio) {
return `<div class="aspect-ratio" style="--aspect-ratio: ${aspectRatio}"><iframe class="youtube-player video video--youtube" src="https://www.youtube.com/embed/${youtubeId}/" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`;
});