{{- $cellSize := .cellSize | default 8 -}}
{{- $lang := .page.Lang | default "en" -}}
{{- $label := i18n "contrib_widget_label" -}}
{{- $heading := i18n "contrib_heading" -}}

<div class="sidebar-widget contrib-widget">
  <p class="sidebar-widget-label"># {{ $heading }}</p>
  <div
    id="contrib-graph-{{ $cellSize }}"
    class="contrib-container"
    style="display:none"
    data-cell-size="{{ $cellSize }}"
    data-lang="{{ $lang }}"
    data-aria-label="{{ $label }}"
  ></div>
</div>

{{- $js := resources.Get "js/contribution-graph.js" | minify -}}
<script src="{{ $js.RelPermalink }}"></script>
