Skip to content

Instantly share code, notes, and snippets.

@Miouyouyou
Created July 30, 2017 18:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Miouyouyou/7515ff58f4891d1957eb13e20f429a9f to your computer and use it in GitHub Desktop.
Save Miouyouyou/7515ff58f4891d1957eb13e20f429a9f to your computer and use it in GitHub Desktop.
Quick and dirty Hugo Shortcode for Google Forms
<iframe src="https://docs.google.com/forms/d/e/{{ .Get "src" }}/viewform?embedded=true" width="{{ .Get "width" }}" height="{{ .Get "height" }}" frameborder="0" marginheight="0" marginwidth="0">Chargement en cours…</iframe>
@pianosaurus
Copy link

Thanks! For my use, I replaced the contents (Chargement[…]) with a parameter ({{ .Get "alt" }}).

@Miouyouyou
Copy link
Author

Ah, nice one.

You did it like this ? marginwidth="0"> {{ .Get "alt" }} </iframe>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment