img" $upleft.Red }}
  {{ $.Scratch.Set "pos" "upleft" }}
{{ else if eq $ribbon "white-upleft" }}
  {{ $.Scratch.Set "img" $upleft.White }}
  {{ $.Scratch.Set "pos" "upleft" }}
{{ end }}

{{ with .Params.github }}
<a class="ribbon git {{ $.Scratch.Get "pos" }}" href="https://github.com/{{ . }}">
  <img
    src="{{ $.Scratch.Get "img" }}"
    alt="Fork me on GitHub">
</a>
{{ end }}

{{ end }}
